Regular readers are probably aware of sdm and perhaps even know about it's ability to build a bootable RasPiOS disk with a btrfs rootfs. This feature works great with Bookworm(IMG) burned on Bookworm(host).
An upward compatibility issue popped up that may be obvious to someone, or perhaps it jogs a memory, so posting here. I thought I saw something a while ago about a Bookworm-related btrfs incompatibility but the only remotely similar thing I can find is: https://github.com/raspberrypi/bookworm ... issues/107
The problem scenario is with Bookworm IMG burned on Bullseye host and burning the disk with a btrfs rootfs. The burn works fine. Booting that disk on a Pi5 without changing config.txt gets:Adding kernel=kernel8.img to config.txt also fails, but differently.
In the failing scenarios the btrfs rootfs is created while running on Bullseye. At the moment there are no special switches used with mkfs.btrfs. I did try using 'mkfs.btrfs -s 4096' but had the same errors as above.
On Bookworm burned on Bookworm the comparable log is:Since RasPiOS Bookworm has been out 9 months, I'm not overly concerned if I can't fix it, but if there's a config fix of some sort, in my mind that's easier than documenting the problem
Thanks!
An upward compatibility issue popped up that may be obvious to someone, or perhaps it jogs a memory, so posting here. I thought I saw something a while ago about a Bookworm-related btrfs incompatibility but the only remotely similar thing I can find is: https://github.com/raspberrypi/bookworm ... issues/107
The problem scenario is with Bookworm IMG burned on Bullseye host and burning the disk with a btrfs rootfs. The burn works fine. Booting that disk on a Pi5 without changing config.txt gets:
Code:
<all good until...>BTRFS warning (device mmcblk0p2): v1 space cache is not supported for page size 16304 with sectorsize 4096BTRFS error (device mmcblk0p2): open_ctree failedmount: mounting /dev/mmcblk0p2 on /root failed: Invalid argumentfailed to mount /dev/mmcblk0p2 as root filesystemCode:
Begin: Running /scripts/local-premount ... Scanning for Btrfs filesystemsregistered: /dev/mmcblk0p2WARNING: failed to open /dev/btrfs-control, skipping device registration: No such file or directoryERROR there were 1 errors while registering devicesmount: mounting /dev/mmcblk0p2 on /root failed: No such deviceFailed to mount /dev/mmcblk0p2 as root filesystemOn Bookworm burned on Bookworm the comparable log is:
Code:
[ 4.834589] Btrfs loaded, zoned=no, fsverity=no[ 4.892494] BTRFS: device fsid ee0f90f2-4a93-4d72-af6c-8bb3c131aa14 devid 1 transid 51 /dev/mmcblk0p2 scanned by btrfs (226)[ 4.935263] BTRFS info (device mmcblk0p2): first mount of filesystem ee0f90f2-4a93-4d72-af6c-8bb3c131aa14[ 4.945407] BTRFS info (device mmcblk0p2): using crc32c (crc32c-generic) checksum algorithm[ 4.954310] BTRFS info (device mmcblk0p2): using free space tree[ 4.960817] BTRFS warning (device mmcblk0p2): read-write for sector size 4096 with page size 16384 is experimental[ 4.979914] BTRFS info (device mmcblk0p2): enabling ssd optimizations[ 4.986879] BTRFS info (device mmcblk0p2): auto enabling async discardThanks!
Statistics: Posted by bls — Thu Jul 25, 2024 3:34 am