[U-Boot-Users] How to build a usable xipuImage?
phantom yang
dalalilala at hellokitty.com
Tue Nov 22 22:04:30 CET 2005
Hi,
I trying to implement "Kernel XIP"
I have done the xipuImage patch and set CONFIG_XIP_PHYS_ADDR=0x00100000.
And have wrote xipuImage on 0x00100000 (reference to omap5912 memory map).
My build xipuImage command:
arm-linux-objcopy -O binary -R .note -R .comment -S vmlinux arch/arm/boot/xipImage
mkimage -x -A arm -O linux -T kernel -C none -a 0x00100000 -e 0x00100040 -n '2.6.12-omap1-xip' -d arch/arm/boot/xipImage arch/arm/boot/xipuImage
Because of the message, "xipImage has invalid buffer for XIP"
I marked the header check from mkimage.c and rebuild mkimage:
/*
for (p=ptr; p < ptr+sizeof(image_header_t); p++) {
if ( *p != 0xff ) {
fprintf (stderr, "%s: Bad file: \"%s\" has invalid buffer for XIP\n",
cmdname, datafile);
exit (EXIT_FAILURE);
}
}
*/
While booting:
## Booting image at 00100000 ...
Image Name: 2.6.12-omap1-xip
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2321352 Bytes = 2.2 MB
Load Address: 00100000
Entry Point: 00100040
Verifying Checksum ... OK
XIP Kernel Image ... OK
Starting kernel ...
[halt!!]
--------------------------------------------------
If I don't remove header check.
And build xipuImage using:
arm-linux-objcopy -O binary -R .note -R .comment -S vmlinux arch/arm/boot/xipImage
mkimage -A arm -O linux -T kernel -C none -a 0x00100000 -e 0x00100040 -n '2.6.12-omap1-xip' -d arch/arm/boot/xipImage arch/arm/boot/xipuImage
While booting:
## Booting image at 00100000 ...
Image Name: 2.6.12-omap1-xip-4
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2321352 Bytes = 2.2 MB
Load Address: 00100000
Entry Point: 00100040
Verifying Checksum ... OK
OK
Starting kernel ...
[halt!!]
Thus, how to build a usable xinuImage?
Thanks,
phantom yang
--
____________________________________________________
Get your own Hello Kitty email @ www.sanriotown.com
More information about the U-Boot
mailing list