On Thu, 15 Mar 2001, John G Dorsey wrote:

> Interestingly, I noticed that when bootldr flashes a kernel image (of
> size n bytes), it writes n bytes beginning at the offset of the SDRAM
> buffer where the kernel was loaded from the modem subroutines.
> Unfortunately, bootldr adds 12 bytes of metadata at the beginning of
> that buffer, so the length should really be n+12.

Those bytes shouldn't be required anymore, since the kernel zImage file
already contains all the equivalent information:

offset          what
------          ----
0x24            0x016f2818 (magic number)
0x28            absolute load/run zImage address
0x2c            zImage end address

Those are defined in arch/arm/boot/compressed/head.S (at least in my tree,
RSN in Russell's tree according to the patch system).

So... to get the size of the zImage address, simply subscract the word at
0x2c from the one at 0x28.



Nicolas


_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.

Reply via email to