raspberrypi / linux

Kernel source tree for Raspberry Pi-provided kernel builds. Issues unrelated to the linux kernel should be posted on the community forum at https://forums.raspberrypi.com/
Other
11.01k stars 4.95k forks source link

f2fs support missing in Pi 5 kernel #6006

Open wscheicher opened 6 months ago

wscheicher commented 6 months ago

Describe the bug

When booting the kernel linux-image-6.1.0-rpi8-rpi-2712 , f2fs is not available. This works fine with kernel linux-image-6.1.0-rpi8-rpi-v8

The f2fs related settings in /boot/config-6.1.0-rpi8-rpi-v8 and /boot/config-6.1.0-rpi8-rpi-2712 are identical.

Steps to reproduce the behaviour

grep f2fs /proc/filesystems

Or try to mount a f2fs filesystem

Device (s)

Raspberry Pi 5

System

OS: Raspberry Pi reference 2024-03-02

Firmware: 2023/10/30 16:45:10 Copyright (c) 2012 Broadcom version 30de0ba5 (release) (embedded)

Kernel Version: Fail: Linux pi64 6.1.0-rpi8-rpi-2712 #1 SMP PREEMPT Debian 1:6.1.73-1+rpt1 (2024-01-25) aarch64 GNU/Linux Good: Linux pi64 6.1.0-rpi8-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.73-1+rpt1 (2024-01-25) aarch64 GNU/Linux

Logs

No response

Additional context

No response

popcornmix commented 6 months ago

f2fs is not compatible with a 16K page size (at least prior to 6.7 kernel). You'll need to run with kernel=kernel8.img until this is fixed.

Guiorgy commented 1 month ago

@popcornmix do you mean I should add that anywhere in cmdline.txt, for example:

... rootfstype=f2fs kernel=kernel8.img ...

What about the initramfs8?

Edit: I think I found it in the config.txt docs

popcornmix commented 1 month ago

Yes, it goes in config.txt

pelwell commented 1 month ago

Note that kernel=kernel.img goes in config.txt.