Hi,
I suspected the error I was getting, No space left on the device, had to do with the root file system. A quick check with df -H:
root@orangepi-r1:~# df -H
Filesystem Size Used Avail Use% Mounted on
udev 92M 0 92M 0% /dev
tmpfs 25M 1.7M 24M 7% /run
/dev/mmcblk0p2 336M 292M 0 100% /
tmpfs 125M 0 125M 0% /dev/shm
tmpfs 5.3M 0 5.3M 0% /run/lock
tmpfs 125M 0 125M 0% /sys/fs/cgroup
tmpfs 125M 4.1k 125M 1% /tmp
/dev/mmcblk0p1 244M 39M 194M 17% /boot
/dev/zram1 51M 771k 47M 2% /var/log
tmpfs 25M 0 25M 0% /run/user/0
Then, I proceeded with a new build with
/root/build/compile.sh BOARD=orangepi-r1 BRANCH=current RELEASE=focal BUILD_MINIMAL=yes BUILD_DESKTOP=no KERNEL_ONLY=no KERNEL_CONFIGURE=no COMPRESS_OUTPUTIMAGE=sha,gpg,img ROOTFS_TYPE=btrfs EXTRAWIFI=no CARD_DEVICE=/dev/sdb FIXED_IMAGE_SIZE=15000
and df -H
root@orangepi-r1:~# df -H
Filesystem Size Used Avail Use% Mounted on
udev 92M 0 92M 0% /dev
tmpfs 25M 1.7M 24M 7% /run
/dev/mmcblk0p2 16G 240M 15G 2% /
tmpfs 125M 0 125M 0% /dev/shm
tmpfs 5.3M 0 5.3M 0% /run/lock
tmpfs 125M 0 125M 0% /sys/fs/cgroup
tmpfs 125M 4.1k 125M 1% /tmp
/dev/mmcblk0p1 244M 39M 194M 17% /boot
/dev/zram1 51M 791k 47M 2% /var/log
tmpfs 25M 0 25M 0% /run/user/0
This time it worked perfectly.
My take is that rootfs is not being resized during the first boot when building an image with BTFRS filesystem.