public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] 'filesize' env var - making U-Boot command more scriptable?
@ 2017-10-12 16:47 Tim Harvey
  2017-10-15 11:50 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Tim Harvey @ 2017-10-12 16:47 UTC (permalink / raw)
  To: u-boot

Greetings,

Various U-Boot commands that deal with files/blobs end up setting the
'filesize' env variable to be used for subsequent commands which is
very handy. I haven't found this documented anywhere but a scan of the
code looks like this is done by
ximg/unzip/load/ini/lzmadec/reiser/cramfs/pxe/cbfs/jffs2/zfs/nvedit/zip/bootm_os/dfu_mmc/fs/ubifs/net.

I've seen other commands that allow a usage that will allow specifying
a var name to put a result in.

I've noticed commands such as 'ubi' and 'nand' would benefit from
setting filesize when dealing with volume names and partition names.
I've also noticed how some commands (ie nand) are good about reporting
sizes in hex but others (ie ubi) report them in decimal only making it
difficult for someone to even cut-and-paste sizes to following
commands.

Has there been a desire or proposal to make this more standard or come
up with something different?

Regards,

Tim

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

end of thread, other threads:[~2017-10-15 11:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-12 16:47 [U-Boot] 'filesize' env var - making U-Boot command more scriptable? Tim Harvey
2017-10-15 11:50 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox