[Buildroot] [PATCH] configs/raspberrypi3_defconfig: fix filesystem size

Leon Anavi leon.anavi at konsulko.com
Sat Jun 30 18:03:01 UTC 2018


Hi Yann,

On 30.06.2018 20:43, Yann E. MORIN wrote:
> Leon, All,
>
> On 2018-06-29 12:23 +0300, Leon Anavi spake thusly:
>> Increase the filesystem size for raspberrypi3 by setting
>> BR2_TARGET_ROOTFS_EXT2_SIZE to "120M". The filesystem for
>> raspberrypi3_64 has the same size.
>>
>> Fixes:
>> Copying files into the device: __populate_fs: Could not allocate block in ext2 filesystem while writing file "services"
>> mkfs.ext4: Could not allocate block in ext2 filesystem while populating file system
> I don't have this issue here:

Thank you for the feedback. I have experienced this issue while building
branch master on Ubuntu 16.04. As discussed in the IRC channel on Friday
the same issue has been reproduced in the CI, Job #78257653 triggered by
Thomas Petazzoni: https://gitlab.com/buildroot.org/buildroot/-/jobs/78257653

I have noticed that the same fix has been already applied to
raspberrypi3_64_defconfig. I hope my patch will be merged to prevent
this issue in future for raspberrypi3_defconfig.

Thanks,
Leon

>
>     $ make raspberrypi3_defconfig
>     $ make
>     $ du -hs output/target/
>     57M     output/target/
>     $ ls -lsh output/images/
>     total 159M
>      24K -rw-r--r-- 1 ymorin ymorin  24K Jun 30 19:35 bcm2710-rpi-3-b.dtb
>      28K -rw-r--r-- 1 ymorin ymorin  25K Jun 30 19:35 bcm2710-rpi-3-b-plus.dtb
>      24K -rw-r--r-- 1 ymorin ymorin  23K Jun 30 19:35 bcm2710-rpi-cm3.dtb
>     8.0M -rw-r--r-- 1 ymorin ymorin  32M Jun 30 19:35 boot.vfat
>      54M -rw-r--r-- 1 ymorin ymorin  60M Jun 30 19:35 rootfs.ext2
>        0 lrwxrwxrwx 1 ymorin ymorin   11 Jun 30 19:35 rootfs.ext4 -> rootfs.ext2
>     4.0K drwxr-xr-x 3 ymorin ymorin 4.0K Jun 30 19:24 rpi-firmware
>      93M -rw-r--r-- 1 ymorin ymorin  93M Jun 30 19:35 sdcard.img
>     4.7M -rw-r--r-- 1 ymorin ymorin 4.7M Jun 30 19:35 zImage
>
> Regards,
> Yann E. MORIN.
>
>> Signed-off-by: Leon Anavi <leon.anavi at konsulko.com>
>> ---
>>  configs/raspberrypi3_defconfig | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/configs/raspberrypi3_defconfig b/configs/raspberrypi3_defconfig
>> index 856f321..0ef9afe 100644
>> --- a/configs/raspberrypi3_defconfig
>> +++ b/configs/raspberrypi3_defconfig
>> @@ -28,6 +28,7 @@ BR2_PACKAGE_HOST_MTOOLS=y
>>  # Filesystem / image
>>  BR2_TARGET_ROOTFS_EXT2=y
>>  BR2_TARGET_ROOTFS_EXT2_4=y
>> +BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
>>  # BR2_TARGET_ROOTFS_TAR is not set
>>  BR2_ROOTFS_POST_BUILD_SCRIPT="board/raspberrypi3/post-build.sh"
>>  BR2_ROOTFS_POST_IMAGE_SCRIPT="board/raspberrypi3/post-image.sh"
>> -- 
>> 2.7.4
>>
>> _______________________________________________
>> buildroot mailing list
>> buildroot at busybox.net
>> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
Leon Anavi
Software Engineer
konsulko.com





More information about the buildroot mailing list