Bug 12571 - ltp-testsuite : Build failure
Summary: ltp-testsuite : Build failure
Status: RESOLVED INVALID
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2019.11.1
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-20 12:37 UTC by learn2kab
Modified: 2020-02-28 15:56 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
".config" file for "beaglebone_defconfig" configuration (20.88 KB, application/gzip)
2020-02-20 12:39 UTC, learn2kab
Details

Note You need to log in before you can comment on or make changes to this bug.
Description learn2kab 2020-02-20 12:37:19 UTC
Hello,

While trying to prepare images for Beaglebone Black with "ltp-testsuite" included (keeping other parameters to their default values),the build process breaks .


-----------------------------
Error Message with Default Settings:
-----------------------------
Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (4096 blocks): done
Copying files into the device: __populate_fs: Could not allocate block in ext2 filesystem while writing file "fanotify10"
mkfs.ext4: Could not allocate block in ext2 filesystem while populating file system
*** Maybe you need to increase the filesystem size (BR2_TARGET_ROOTFS_EXT2_SIZE)
fs/ext2/ext2.mk:46: recipe for target '/home/workpc/dir_buildroot/buildroot-2019.11.1/output/images/rootfs.ext2' failed
make[1]: *** [/home/workpc/dir_buildroot/buildroot-2019.11.1/output/images/rootfs.ext2] Error 1
Makefile:84: recipe for target '_all' failed
make: *** [_all] Error 2
-----------------------------


Updated the value of "BR2_TARGET_ROOTFS_EXT2_SIZE" from 60M to 64G.
An error message mentioning 
"part rootfs size (536870912) too small for rootfs.ext4 (68719476736)"
 (as below) appears in the build log.
 

-------------------------------
Error Message with Modified Values:
-------------------------------
INFO: cmd: "find '/home/workpc/dir_buildroot/buildroot-2019.11.1/output/build/genimage.tmp/root' -depth -type d -printf '%P\0' | xargs -0 -I {} touch -r '/tmp/tmp.7ROXYVc0KU/{}' '/home/workpc/dir_buildroot/buildroot-2019.11.1/output/build/genimage.tmp/root/{}'" (stderr):
ERROR: hdimage(sdcard.img): part rootfs size (536870912) too small for rootfs.ext4 (68719476736)
Makefile:809: recipe for target 'target-post-image' failed
make[1]: *** [target-post-image] Error 1
Makefile:84: recipe for target '_all' failed
make: *** [_all] Error 2


--------------------------------

What would be the apt value for this parameter??
Should any other parameter be accordingly modified?? 
Please advice.

Regards,
Adarsh
Comment 1 learn2kab 2020-02-20 12:39:32 UTC
Created attachment 8366 [details]
".config" file for "beaglebone_defconfig" configuration
Comment 2 Thomas Petazzoni 2020-02-28 15:56:42 UTC
There is no bug here: your ext4 filesystem image is now larger, but you haven't adjusted your genimage configuration file to accommodate a larger ext4 filesystem. Your genimage configuration file has a rootfs partition of 512 MB, so trying to fit a 64 GB filesystem in there obviously doesn't work.