[U-Boot-Users] MPC8280 mkimage: "...has invalid buffer for XIP"

KokHow Teh KokHow.Teh at marconi.com
Tue Sep 6 05:11:01 CEST 2005


Hi;
      I read the mkimage output again and found out the "-x" option. I
tried it out and have the following error.

[teh at ShrekII inetutil 67]$ $OBJCOPY -O binary -R .note -R .comment -S rom.elf inetutil.bin
[teh at ShrekII inetutil 68]$ mkimage -x -A ppc -O psos -T kernel -C none -a 0xff800000 -e 0xff800040 -n uImage.psos -d inetutil.bin uImage.psos
mkimage: Bad file: "inetutil.bin" has invalid buffer for XIP
[teh at ShrekII inetutil 69]$

      Any insight is appreciated.

Regards,
TEH



"KokHow Teh" <KokHow.Teh at marconi.com>@lists.sourceforge.net on 09/06/2005
10:56:35 AM

Sent by:    u-boot-users-admin at lists.sourceforge.net


To:    u-boot-users at lists.sourceforge.net
cc:

Subject:    [U-Boot-Users] MPC8280 bootm XIP


Hi;
      My initial binary image for MPC8280 has .text begin at 0xff800000 and
_START (entry point) at 0xff801004. However, after mkimage, this original
memory locations have been offset by 64 bytes. The image is loaded into
flash memory at 0xff800000. My question is how, if it is possible that I
can execute-in-place my application+psos kernel with bootm from u-boot?
Isn't "-a <load address>" of `mkimage` command meaningless in XIP
situation?

[teh at ShrekII inetutil 59]$ mkimage -A ppc -O psos -T kernel -C none -a
0xff800000 -e 0xff801004 -n uImage.psos -d inetutil.bin uImage.psos
Image Name:   uImage.psos
Created:      Wed Sep  7 02:33:00 2005
Image Type:   PowerPC pSOS Kernel Image (uncompressed)
Data Size:    1002024 Bytes = 978.54 kB = 0.96 MB
Load Address: 0xFF800000
Entry Point:  0xFF801004
[teh at ShrekII inetutil 60]$ !cp
cp uImage.psos /tftpboot/
[teh at ShrekII inetutil 61]$
u-boot> imi 0xff800000

## Checking Image at ff800000 ...
   Image Name:   uImage.psos
   Image Type:   PowerPC Unknown OS Kernel Image (uncompressed)
   Data Size:    1002024 Bytes = 978.5 kB
   Load Address: ff800000
   Entry Point:  ff801004
   Verifying Checksum ... OK
u-boot> bootm 0xff800000
## Booting image at ff800000 ...
   Image Name:   uImage.psos
   Image Type:   PowerPC Unknown OS Kernel Image (uncompressed)
   Data Size:    1002024 Bytes = 978.5 kB
   Load Address: ff800000
   Entry Point:  ff801004
   Verifying Checksum ... OK
   XIP Kernel Image ... OK
NIP: FF801004 XER: 20000000 LR: 01F846D0 REGS: 01af7bb8 TRAP: 0700 DAR:
01F8CE78
MSR: 00083002 EE: 0 PR: 0 FP: 1 ME: 1 IR/DR: 00

GPR00: 00000002 01AF7CA8 FF8A0720 007FFEB0 00000000 00000000 007FFF00
007FFF13
GPR08: 17D78400 01AF800C 01FB1168 F4700088 01FB90D8 000151D8 01FC5000
FF801004
GPR16: 00000001 00000001 FFFFFFFF 007FFF00 01FC0DE8 00000000 00000002
01B78978
GPR24: 00800000 00000000 00000000 00000000 00000000 01AF7F6C 01FC5614
007FFEB0
Call backtrace:
01F84408 01F84268 01F92E30 01F93150 01F933D8 01F94448 01F94638
01F82FB4 01F7CDB8 01F7B494
Program Check Exception


      Thanks.

Regards,
TEH




-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users








More information about the U-Boot mailing list