Jump to content

BTRFS support on U-Boot


m11k

Recommended Posts

Since there is a thread about adding ZFS support to the U-Boot build, I thought I'd post a similar request for btrfs.  I was looking through the helios u-boot repo a few days ago and noticed that it isn't built with btrfs support.  While I could make a separate ext4 /boot partition, it would be convenient to have the entire eMMC formatted as btrfs.  This allows for me to make easy and fast backups using btrfs send/receive, and also allows for snapshotting prior to upgrades (via e.g. snapper), and rolling back to a different snapshot at boot.

My turris onmia router uses u-boot with btrfs native root, and I've used the snapshot rollback support a couple of times.  They have a fancy snapshot selection that can be done via the reset button without a serial console, but just having the ability to select previous snapshots at the u-boot menu would be quite convenient.

 

I believe all that is needed is to enable CONFIG_CMD_BTRFS.  https://github.com/u-boot/u-boot/blob/832bfad7451e2e7bd23c96edff2be050905ac3f6/cmd/Kconfig#L2047

 

Thanks for your consideration!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines