]> git.baikalelectronics.ru Git - uboot.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)
commitad3e94445840217b2e92197dac24328c1b917262
treecb370025bcc386ef741cce94bda1b4dd58fe2d76
parent6d8eff05baa70613e6629f21918caf31d84d5448
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