]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: bootm: add subcommand preload
authorPhilippe Reynes <philippe.reynes@softathome.com>
Mon, 28 Mar 2022 20:57:07 +0000 (22:57 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 31 Mar 2022 18:12:23 +0000 (14:12 -0400)
commit7bebc11c42351c8f0364f0e3eb922f5af7b6e826
treecb370025bcc386ef741cce94bda1b4dd58fe2d76
parent776db4fa96bb606b88740ea2017c3c66a8394e86
cmd: bootm: add subcommand preload

Add a subcommand preload to bootm that execute the preload
stage on the image. Right now, it checks the signature
of the image with the pre-load header. If the check
succeed, the u-boot env variable 'loadaddr_verified'
is set to the address of the image (without the header).

It allows to run such commands:
tftp script.img && bootm preload $loadaddr && source $loadaddr_verified

Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
cmd/bootm.c