Skip to contentSkip to conversation

New: Buildroot 2016.2 for Raspberry Pi requires that ext4 rootfs is selected. Otherwise the error is reported

Buildroot bugzilla at busybox.net 1 participant 3 messages Mar 16, 2016

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=8806

Bug ID: 8806
Summary: Buildroot 2016.2 for Raspberry Pi requires that ext4
rootfs is selected. Otherwise the error is reported
Product: buildroot
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: wzab01 at gmail.com
CC: buildroot at uclibc.org
Target Milestone: ---

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:

Quoted 1 line
Quoted 1 line
Quoted 1 line

Executing post-image script board/raspberrypi/post-image.sh

Version: Linux version 4.1.15 (wzab at 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

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 8806] Buildroot 2016.2 for Raspberry Pi requires that ext4 rootfs is selected. Otherwise the error is reported

https://bugs.busybox.net/show_bug.cgi?id=8806

--- Comment #1 from Peter Korsgaard <[email protected]> ---
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.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 8806] Buildroot 2016.2 for Raspberry Pi requires that ext4 rootfs is selected. Otherwise the error is reported

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=8806

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID
Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.