Request: RaspberryPi 4 aarch64 xfs as built in kernel module

Ask questions about Arch Linux ARM. Please search before making a new topic.

Request: RaspberryPi 4 aarch64 xfs as built in kernel module

Postby jakethedog » Sat Apr 16, 2022 1:32 pm

Hi,

I wanted to switch to aarch64 on my raspberry pi 4 using xfs as filesystem for the rootfs.
But due to the default raspberry pi bootloader not using the initramfs this seems to get complicated.

Would it be possible to switch the xfs driver to be compiled in (y) instead of a module (m) like it currently is for the armv7h image?

https://archlinuxarm.org/packages/armv7h/linux-rpi/files/config
$this->bbcode_second_pass_code('', '
...
CONFIG_XFS_FS=y
CONFIG_XFS_SUPPORT_V4=y
..
')

https://archlinuxarm.org/packages/aarch64/linux-rpi/files/config8
$this->bbcode_second_pass_code('', '
...
CONFIG_XFS_FS=m
CONFIG_XFS_SUPPORT_V4=y
...
')

Thanks
Tobias
jakethedog
 
Posts: 11
Joined: Sat Jul 19, 2014 11:33 am

Re: Request: RaspberryPi 4 aarch64 xfs as built in kernel mo

Postby jakethedog » Wed Apr 20, 2022 7:43 am

I managed to get it to work took me a while to figure this out.
It was not clearly stated that the rasbperrypi-bootloader by default does not use and initial ramdisk.

If someone is interested, in the config.txt the following option needs to be set to use the initramfs.
$this->bbcode_second_pass_code('', 'initramfs initramfs-linux.img followkernel')
Otherwise the rasbperrypi-bootloader will directly mount the rootfs specified in the cmdline.txt ignoring the initramfs-linux.img

It would still be nice to have xfs supported out of the box in aarch64 like in armv7h, but I'm fine withe the current solution.
jakethedog
 
Posts: 11
Joined: Sat Jul 19, 2014 11:33 am


Return to User Questions

Who is online

Users browsing this forum: No registered users and 8 guests