Hi Davide,

On Tue, May 5, 2015 at 9:35 AM, Davide BONFANTI
<[email protected]> wrote:
> In order to perform a crc32 integrity check of a zImage, I would like to read 
> the zImage length from its header (offset 0x2C).
> To perform this I would need a command letting me to set an environment 
> variable to the value of a certain RAM address.
>
> If this command is not available (maybe I'm just not able to find it out!) 
> and if there is no other way for my purpose, I can try implementing it.
>
> I would need something like
> # m2v[.b, .w, .l] <variable_name> <ram address>

See the command called setexpr. Just #define CONFIG_CMD_SETEXPR

setexpr[.b, .w, .l] name [*]value
    - load a value into a variable

Cheers,
-Joe
_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to