Bcachefs in OpenWrt 25.12?

I have an OpenWrt One with a new Optane M10 16GB, plus a slow USB HDD. Want to set up a bcachefs for Optane (as cache) + the USB-drive. Can anybody let me know how to build kmod-fs-bcachefs and bcachefs-tools? I have Ubuntu VM on my PC and SDK is already there.

Thank you, S0nny

It has been removed from the kernel, so you need to build the kernel yourself:

Since you haven't provided much information, is this a case of an XY problem?

ext4, xfs and btrfs (mdadm/ lvm2, albeit not for the kernel/ rootfs) are possible are at your fingertips.

@Dante @slh

Thank you.

I thought that bcachefs code had been removed from the kernel 6.16 (or 6.17) and later whereas OpenWrt 25.12 code base was on 6.12 - hence I thought it was still in that OpenWrt release. Anyhow - thank you again for the information. ZFS seems memory eater. Separately I want to have Write-Back cache. Will look at BTRFS.

s0nny