[U-Boot] Command to Assign a RAM value to a variable

Joe Hershberger joe.hershberger at gmail.com
Tue May 5 20:10:38 CEST 2015


Hi Davide,

On Tue, May 5, 2015 at 9:35 AM, Davide BONFANTI
<davide.bonfanti at bticino.it> 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


More information about the U-Boot mailing list