]> git.baikalelectronics.ru Git - uboot.git/commit
Nokia RX-51: Fix invalidating zImage kernel format
authorPali Rohár <pali@kernel.org>
Thu, 11 Aug 2022 20:27:21 +0000 (22:27 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 20 Aug 2022 20:17:50 +0000 (16:17 -0400)
commite3e9caf53225a445b1c595b105fd79cd050a7e66
tree4ee4682916311c78c1eda7f12cc0a882d7a40854
parentc977d9312df9c4e61fd5a11ebeed41aa4cb0d981
Nokia RX-51: Fix invalidating zImage kernel format

Prior starting copy of kernel image to target location, invalidate also
zImage magic header. This ensures that on target location would be image
with valid header only in the case valid header was also in the source
location and copy from source to target finished successfully. Copy is
always skipped when kernel image in source location is invalid.

Add also comment to the code which explain what is the code doing.

Fixes: aeb095577820 ("Nokia RX-51: Add support for booting kernel in zImage format")
Signed-off-by: Pali Rohár <pali@kernel.org>
board/nokia/rx51/lowlevel_init.S