All of lore.kernel.org
 help / color / mirror / Atom feed
* BTRFS Support btrload, btrls
@ 2023-05-30 10:30 Ottinger Georg
  2023-05-31 12:12 ` Jonathan Liu
  0 siblings, 1 reply; 2+ messages in thread
From: Ottinger Georg @ 2023-05-30 10:30 UTC (permalink / raw)
  To: u-boot

[-- Attachment #1: Type: text/plain, Size: 1989 bytes --]


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);
}


U_BOOT_CMD(
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?

thanks,
Georg


Georg Ottinger

Software Engineer

RESEARCH & DEVELOPMENT

ABATEC GmbH

[https://abatec.at/email/phone.jpg]

+43767227720532<tel:+43767227720532>

[https://abatec.at/email/email.jpg]

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

[https://abatec.at/email/site.jpg]

www.abatec.at<https://www.abatec.at/>

[https://abatec.at/email/location.jpg]

Oberregauer Straße 48, 4844 Regau

[cid:1d2b374d-7ca8-4b52-8b3c-319d1b53c9aa]



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


[-- Attachment #2: Outlook-zr4izvxm.png --]
[-- Type: image/png, Size: 20615 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: BTRFS Support btrload, btrls
  2023-05-30 10:30 BTRFS Support btrload, btrls Ottinger Georg
@ 2023-05-31 12:12 ` Jonathan Liu
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Liu @ 2023-05-31 12:12 UTC (permalink / raw)
  To: Ottinger Georg; +Cc: u-boot

Hi Ottinger,

Perhaps you can enable CONFIG_CMD_FS_GENERIC=y in your config and try
to use the generic commands - size, load, save, ls, ln, fstype,
fstypes?

Regards,
Jonathan

On Tue, 30 May 2023 at 22:07, Ottinger Georg <g.ottinger@abatec.at> wrote:
>
>
> 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);
> }
>
>
> U_BOOT_CMD(
> 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?
>
> thanks,
> Georg
>
>
> Georg Ottinger
>
> Software Engineer
>
> RESEARCH & DEVELOPMENT
>
> ABATEC GmbH
>
> [https://abatec.at/email/phone.jpg]
>
> +43767227720532<tel:+43767227720532>
>
> [https://abatec.at/email/email.jpg]
>
> g.ottinger@abatec.at<mailto:c.gebetsroither@abatec.at>
>
> [https://abatec.at/email/site.jpg]
>
> www.abatec.at<https://www.abatec.at/>
>
> [https://abatec.at/email/location.jpg]
>
> Oberregauer Straße 48, 4844 Regau
>
> [cid:1d2b374d-7ca8-4b52-8b3c-319d1b53c9aa]
>
>
>
> UID-Nr.: ATU67696059  Firmenbuchnummer: FN 390305d  Firmenbuchgericht: Wels
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-05-31 12:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-30 10:30 BTRFS Support btrload, btrls Ottinger Georg
2023-05-31 12:12 ` Jonathan Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.