]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
tools: imx_header should not include flash_offset
authorStefano Babic <sbabic@denx.de>
Wed, 26 Jun 2013 15:26:27 +0000 (17:26 +0200)
committerStefano Babic <sbabic@denx.de>
Sat, 31 Aug 2013 13:06:28 +0000 (15:06 +0200)
commit4655d40f34c8141651d10c9e0b17511728618bda
tree7573f67d43b30928f5717493b713a9aebd4449dd
parent49b0415a80474eeb7876dede868c65764d6e973a
tools: imx_header should not include flash_offset

Doing a  make distclean; make mx6qsabresd_config; make
and      hexdump -C u-boot.imx | less

 ...
 00000360  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
 *
 000003f0  00 00 00 00 00 00 00 00  00 00 00 00 00 04 00 00  |................|
                                                ^^^^^^^^^^^
 00000400  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
 *
 00001000  13 00 00 ea 14 f0 9f e5  14 f0 9f e5 14 f0 9f e5  |...ê.ð.å.ð.å.ð.å|
 ...

shows the flash_offset value being written into the final
generated image, wich is not correct.

Instead create flash_offset as static variable such that the
generated image is "clean".

 00000360  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
 *
 00001000  13 00 00 ea 14 f0 9f e5  14 f0 9f e5 14 f0 9f e5  |...ê.ð.å.ð.å.ð.å|

Signed-off-by: Stefano Babic <sbabic@denx.de>
tools/imximage.c
tools/imximage.h