Hi, When building my Raspberry Pi3 image with Buildroot an error was reported: "Could not allocate block in ext2 filesystem while writing file "aoe.ko"". Please advise me how to solve this problem. ere is the copy of the last couple of messages reported by Buildroot: mkdir -p /home/ptomov/buildroot/output/target/etc ( \ echo "NAME=Buildroot"; \ echo "VERSION=2017.08-git-01093-gf307f84-dirty"; \ echo "ID=buildroot"; \ echo "VERSION_ID=2017.08-git"; \ echo "PRETTY_NAME=\"Buildroot 2017.08-git\"" \ ) > /home/ptomov/buildroot/output/target/etc/os-release >>> Executing post-build script board/raspberrypi3/post-build.sh >>> Generating root filesystem image rootfs.ext2 rm -f /home/ptomov/buildroot/output/build/_fakeroot.fs rm -f /home/ptomov/buildroot/output/target/THIS_IS_NOT_YOUR_ROOT_FILESYSTEM rm -f /home/ptomov/buildroot/output/build/_users_table.txt echo '#!/bin/sh' > /home/ptomov/buildroot/output/build/_fakeroot.fs echo "set -e" >> /home/ptomov/buildroot/output/build/_fakeroot.fs echo "chown -h -R 0:0 /home/ptomov/buildroot/output/target" >> /home/ptomov/buildroot/output/build/_fakeroot.fs printf ' _ntp -1 _ntp -1 * - - - Network Time Protocol daemon\n sshd -1 sshd -1 * - - - SSH drop priv user\n\n' >> /home/ptomov/buildroot/output/build/_users_table.txt PATH="/home/ptomov/buildroot/output/host/bin:/home/ptomov/buildroot/output/host/sbin:/home/ptomov/bin:/home/ptomov/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" /home/ptomov/buildroot/support/scripts/mkusers /home/ptomov/buildroot/output/build/_users_table.txt /home/ptomov/buildroot/output/target >> /home/ptomov/buildroot/output/build/_fakeroot.fs cat system/device_table.txt > /home/ptomov/buildroot/output/build/_device_table.txt printf ' /bin/busybox f 4755 0 0 - - - - -\n /usr/bin/sudo f 4755 0 0 - - - - -\n /dev/console c 622 0 0 5 1 - - -\n\n' >> /home/ptomov/buildroot/output/build/_device_table.txt echo "/home/ptomov/buildroot/output/host/bin/makedevs -d /home/ptomov/buildroot/output/build/_device_table.txt /home/ptomov/buildroot/output/target" >> /home/ptomov/buildroot/output/build/_fakeroot.fs printf ' rm -f /home/ptomov/buildroot/output/images/rootfs.ext2\n /home/ptomov/buildroot/output/host/sbin/mkfs.ext4 -d /home/ptomov/buildroot/output/target -r 1 -N 0 -m 5 -L "" -O ^64bit /home/ptomov/buildroot/output/images/rootfs.ext2 "60M"\n' >> /home/ptomov/buildroot/output/build/_fakeroot.fs chmod a+x /home/ptomov/buildroot/output/build/_fakeroot.fs PATH="/home/ptomov/buildroot/output/host/bin:/home/ptomov/buildroot/output/host/sbin:/home/ptomov/bin:/home/ptomov/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" /home/ptomov/buildroot/output/host/bin/fakeroot -- /home/ptomov/buildroot/output/build/_fakeroot.fs rootdir=/home/ptomov/buildroot/output/target table='/home/ptomov/buildroot/output/build/_device_table.txt' mke2fs 1.43.4 (31-Jan-2017) Creating regular file /home/ptomov/buildroot/output/images/rootfs.ext2 Creating filesystem with 61440 1k blocks and 15360 inodes Filesystem UUID: 4057e19b-baec-4a33-af94-8e61b0e7af46 Superblock backups stored on blocks: 8193, 24577, 40961, 57345 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 "aoe.ko" mkfs.ext4: Could not allocate block in ext2 filesystem while populating file system fs/ext2/ext2.mk:44: recipe for target '/home/ptomov/buildroot/output/images/rootfs.ext2' failed make[1]: *** [/home/ptomov/buildroot/output/images/rootfs.ext2] Error 1 Makefile:79: recipe for target '_all' failed make: *** [_all] Error 2 Thanks, Pavel
You can increase the size of the ext2 filesystem by setting BR2_TARGET_ROOTFS_EXT2_SIZE (filesysystem images->ext2/3/4->exact size) to a bigger value.