[U-Boot] [PATCH] cmd_nand/cmd_ubi/cmd_nboot: Set environment variable 'filesize'

Wolfgang Denk wd at denx.de
Mon Jul 21 10:29:08 CEST 2014


Dear Lisovy,

In message <1405930094.30277.1.camel at lp-lvrv.comap.cz> you wrote:
> 
> One possible solution would be to add new environment variable called
> "datasize", but then there is the question if this variable should be
> updated any time the "filesize" is updated (+ in a few situations where
> the filesize will stay unchanged -- i.e. what adds this patch).

I have to admit that I don't even see the use case where such a new
variable would be helpful.

Your patch was adding this to commands like "nand read" etc.  All
these commands require you to pass the size to be read as argument,
so you already have the size information present.

Why would you want to store it in another variable?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I really hate this damned machine     It never does quite what I want
I wish that they would sell it.              But only what I tell it.


More information about the U-Boot mailing list