[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] netflash, checksum, and u-boot
Hi Jim,
Jim Van Vorst wrote:
I'm looking at netflash to upgrade my kernel and I wanted to add the
hmacmd5 hash to the image, but there seems to be an order of operations
problem. The vendor common.mak file appends version info to image.bin,
then runs the hmacmd5 tool, THEN prepends the u-boot header to create
image.ub. Now u-boot wants to load image.ub from flash (i.e. needs the
64 byte u-boot header) but when I run netflash on the image.ub image the
signature check fails since the u-boot header was added AFTER the
signature. I can netflash image.bin but u-boot doesn't like it.
Should the makefile be changed to sign the image.ub file, or should
netflash skip the u-boot header before the signature or what?
One way around this is to tell netflash not to do checksum validation -
just run it without any parameters and the help output will show you the
right option.
Another option is to tweak your u-boot boocmd so that it does a copy of
the image.bin from flash to the correct address in memory, and jumps
directly (u-boot 'go' cmd).
It may be possible to change the order of the operations, so the
netflash checksum is appended to the image.ub, however that may make
u-boot unhappy.
Regards,
John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/