Bug 8806 - Buildroot 2016.2 for Raspberry Pi requires that ext4 rootfs is selected. Otherwise the error is reported
Summary: Buildroot 2016.2 for Raspberry Pi requires that ext4 rootfs is selected. Othe...
Status: RESOLVED INVALID
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-16 20:23 UTC by WZab
Modified: 2016-03-16 21:25 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description WZab 2016-03-16 20:23:01 UTC
I often use Raspberry Pi in a configuration, where only Initramfs is used.
It makes my system resistant to random power cuts.
Unfortunately with Buildroot 2016.2 if I do not create the Ext4 image the board/raspberrypi/post-image.sh script crashes and generates an error.
Probably this error can be ignored, as the essential files in the output/images are already created, but the compilation finished with ERROR doesn't look good.

Steps to duplicate the problem:
$ wget https://buildroot.org/downloads/buildroot-2016.02.tar.bz2
$ tar -xjf buildroot-2016.02.tar.bz2
$ cd buildroot-2016.02
$ make raspberrypi_defconfig
$ make menuconfig
In section "Filesystem images" deselect "ext2/3/4 root filesystem"
Select "initial RAM filesystem linked into linux kernel"
Select (optionally) Compression method (gzip)
Save configuration and exit
$make

After some time, you'll get:
>>>   Executing post-image script board/raspberrypi/post-image.sh
Version: Linux version 4.1.15 (wzab@wzab) (gcc version 4.9.3 (Buildroot 2016.02) ) #3 PREEMPT Wed Mar 16 20:43:58 CET 2016
DT: y
DDT: n
283x: n
file(rootfs.ext4): stat(/tmp/mmm/buildroot-2016.02/output/images/rootfs.ext4) failed: No such file or directory
hdimage(sdcard.img): could not setup rootfs.ext4
Makefile:667: recipe for target 'target-post-image' failed
make: *** [target-post-image] Error 1

That problem affects also those, who want to create ext2 rootfs or ext3 rootfs:
Even if you select "[*] ext2/3/4 root filesystem", the error will  occur if you select version ext2 or ext3.

Best regards,
Wojtek
Comment 1 Peter Korsgaard 2016-03-16 21:13:04 UTC
What do you suggest we do? If you change the defconfig (E.G. to use initramfs instead of ext4) then it is also your responsibility to ensure it makes sense. The raspberrypi post-image script creates as sdcard image with the ext4 filesystem the defconfig enables, so if you don't want that - Then just remove the post-image script from the .config.