[U-Boot-Users] Reading image header from linux

Hi Wolfgang,
I'm currently building in upgrade support for the linux kernel. My approach right now is just having 2 kernel partitions and communicate to u-boot via the u-boot environment the test a kernel in a partition and set a partition to default. One of the things that I like to be able to do is display the image information to the user from linux. Will mkimage have a feature to read /dev/mtdx for example to give me the image header info?
I don't know if you have considered displaying the CRC of the image as part of the info, this would help differentiate kernel builds even if the images name and size have not changed from previous builds. This is especially useful for managing multiple kernels in a system.
David

In message OF57508F94.3D951CD8-ON85256F0A.0052933B-85256F0A.00544136@nanometrics.ca you wrote:
Will mkimage have a feature to read /dev/mtdx for example to give me the image header info?
You'd have to change the code. Currently, mkimage tries to mmap() the file, but [f]stat() on a /dev/mtd partition does not give any useful size.
I don't know if you have considered displaying the CRC of the image as part of the info, this would help differentiate kernel builds even if the images name and size have not changed from previous builds. This is especially
That's what the timestamp is good for.
useful for managing multiple kernels in a system.
I think reading a cryptic CRC is less helpful than the actual build time of the image.
Best regards,
Wolfgang Denk
participants (2)
-
David Ho
-
Wolfgang Denk