BTRFS Support btrload, btrls

Ottinger Georg g.ottinger at
Tue May 30 12:30:43 CEST 2023

Hi Everybody,

I am currently evaluating filesystems that can be used reliable on eMMC storage, which support transparent compression.

I see that U-Boot supports btrfs. But I don't understand how to load for example a kernel image from the fs, I was expecting 'btrload' as an analog to 'ext4load' or 'fatload'.

Is there a reason why this commands are not implemented?

When I do patch the file cmd/btfs.c to add 'btrload' I do get a working U-Boot capable of loading DT and kernal image from btrfs.

char subvolname[1];

int do_btr_fsload(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])

      subvolname[0] = '\0';

      return do_load(cmdtp, flag, argc, argv, FS_TYPE_BTRFS);

btrload,        7,      0,      do_btr_fsload,
      "load binary file from a btr filesystem",
      "<interface> [<dev[:part]>]  <addr> <filename>\n"
      "    - Load binary file 'filename' from 'dev' on 'interface'\n"
      "      to address 'addr' from better filesystem.\n"
      "      the load stops on end of file.\n"
      "      All numeric parameters are assumed to be hex."

Are there any known stability issues, why 'btrload' and 'btrfs' are not included in the current U-Boot?
Or is there an alternative to 'btrload' to load a kernelimage from fs to ram?


Georg Ottinger

Software Engineer






g.ottinger at<mailto:c.gebetsroither at>



Oberregauer Straße 48, 4844 Regau


UID-Nr.: ATU67696059  Firmenbuchnummer: FN 390305d  Firmenbuchgericht: Wels

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-zr4izvxm.png
Type: image/png
Size: 20615 bytes
Desc: Outlook-zr4izvxm.png
URL: <>

More information about the U-Boot mailing list