BTRFS support for aarch64 rpi install

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

BTRFS support for aarch64 rpi install

Postby it9exm » Sun Sep 19, 2021 11:01 am

Hello,
I am trying to use btrfs as root filesystem on a rpi3 with the aarch64 version of archlinuxarm, but I get

mount: new_root/: unknown filesystem type 'btrfs'.

then I am thrown to an emergency shell. I remember it was possible using it in the standard armv7h install without doing anything else, can the support be included into aarch64 too?
it9exm
 
Posts: 12
Joined: Sat Aug 06, 2016 1:35 pm

Re: BTRFS support for aarch64 rpi install

Postby graysky » Sun Sep 19, 2021 12:06 pm

Which kernel are you using? linux-aarch64 or linux-raspberrypi4? I will say that in comparing the config from linux-raspberrypi4 (aarch64) to that of linux-raspberrypi4 (armv7h), I do have them configured differently for BTRFS (mistake on my part which could account for the difference.

$this->bbcode_second_pass_code('', '% grep -i btrfs core/linux-raspberrypi4/config8
CONFIG_BTRFS_FS=m
CONFIG_BTRFS_FS_POSIX_ACL=y
# CONFIG_BTRFS_FS_CHECK_INTEGRITY is not set
# CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not set
# CONFIG_BTRFS_DEBUG is not set
# CONFIG_BTRFS_ASSERT is not set
# CONFIG_BTRFS_FS_REF_VERIFY is not set

% grep -i btrfs core/linux-raspberrypi4/config
CONFIG_BTRFS_FS=y
CONFIG_BTRFS_FS_POSIX_ACL=y
# CONFIG_BTRFS_FS_CHECK_INTEGRITY is not set
# CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not set
# CONFIG_BTRFS_DEBUG is not set
# CONFIG_BTRFS_ASSERT is not set
# CONFIG_BTRFS_FS_REF_VERIFY is not set
')

I just pushed 46798bd3fc which corrects that. You can try updating via a chroot to that kernel when it hits the repos and see if it boots for you. If you remember having the ability on armv7h then the bootloader can do it and aarch64 should be consistent.
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: BTRFS support for aarch64 rpi install

Postby it9exm » Sun Sep 19, 2021 12:20 pm

Thank you, the kernel is the one included in ArchLinuxARM-rpi-aarch64-latest.tar.gz

I just got over this by using the fallback initramfs, rebuilt thereafter editing /etc/mkinitcpio.conf

Is it possible to have it also into the regular initramfs by default?
it9exm
 
Posts: 12
Joined: Sat Aug 06, 2016 1:35 pm

Re: BTRFS support for aarch64 rpi install

Postby graysky » Sun Sep 19, 2021 2:42 pm

I believe Kevin is shipping linux-raspberrypi4 in that image. If uname -a returns that it is true. Anyway, 5.10.63-9 should be out now with that option enabled. Please report back.
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: BTRFS support for aarch64 rpi install

Postby it9exm » Sun Sep 19, 2021 3:09 pm

Negative, after the install the kernel was linux-aarch64, so the mainline kernel, which is booted by das uboot and after the latest upgrade it takes almost 5 minutes to be read from the sdcard, not sure if that depends on uboot or the kernel itself. Meanwhile I switched to linux-raspberrypi4 because with the mainline kernel many entries from /boot/config.txt such as cma-512 are ignored, and I need that for Kodi.

(I also tried to set cma into the cmdline, then kodi starts, but the cec adapter is not recognized and the keyboard is not working)

With linux-raspberrypi4 everything is working fine

P.S: I also have an odroid c2 running linux-aarch64. Always run headless, I believe the same slow boot bug is also there, but I'm not sure
it9exm
 
Posts: 12
Joined: Sat Aug 06, 2016 1:35 pm

Re: BTRFS support for aarch64 rpi install

Postby graysky » Sun Sep 19, 2021 3:33 pm

Good that you are booting your btrfs root now.

FYI, Kodi with hardware decoding absolutely requires linux-raspberrypi4.

$this->bbcode_second_pass_code('', '% pacman -Si kodi-rpi
...
Optional Deps : afpfs-ng: Apple shares support
bluez: Blutooth support
linux-raspberrypi: HW accelerated decoding
linux-raspberrypi4: HW accelerated decoding
...')
graysky
Developer
 
Posts: 1728
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 12 guests