Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build (sd-)image with Btrfs root filesystem? #1318

Open
onny opened this issue Jan 16, 2025 · 3 comments
Open

How to build (sd-)image with Btrfs root filesystem? #1318

onny opened this issue Jan 16, 2025 · 3 comments

Comments

@onny
Copy link
Contributor

onny commented Jan 16, 2025

Hey,
would like to build an image with Btrfs as root filesystem for the VisionFive2 since I'm using NixOS on a NVME drive and would like to use Btrfs snapshot and send/receive features on the system.

My current approach will be compiling U-Boot with Btrfs FS support and converting the existing Ext4 rootfs to Btrfs using btrfs-convert.

Regards
Jonas

@Mic92
Copy link
Member

Mic92 commented Jan 17, 2025

Maybe disko-install assuming uboot is compatible with nixos-install?

@RadxaYuntian
Copy link

I think it is better to just use EFI boot from U-Boot if you want alternative rootfs filesystem. I'm currently experimenting this and got bcachefs working on ROCK 4C Plus.

@Mic92
Copy link
Member

Mic92 commented Jan 20, 2025

There is edk2 for UEFI: https://github.com/starfive-tech/edk2 but can't tell how easy and reliable it is to flash to the visionfive2. Given that these boards already have an EMMC, I wished they would just ship it with preflashed emmc/edk2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants