bootloader cannot access global vars in ce600,ARM926

18/05/2009 - 12:36 von vincent.tsai | Report spam
Hi:

i build a Ce600,ARM926 bootloader. after download to EV board.
bootloader work but cannot access global vars.
i print out some message from uart.
And found pTOC address wrong in KernelRelocate routine(bootloaderMain just
start).
in map and .nb0 we found that pTOC at 6ab0 (in map) then in nb0 get
00006ab0 :0x0001c8d0 (this correct entry)

0001:00005ab0 pTOC 00006ab0
oal_blcommon:blcommon.obj
0001:00005ab8 NKSignon 00006ab8
oal_blcommon:blcommon.obj

but code in KernelRelocate print out pTOC=>5ab0
bootloader seem not add the segment section address 0x1000 to pTOC
5ab0+1000(segment 1 adress)=6ab0 (correct value)
don't know what raised this error?
if anyone met such case? or could give any clue about this?

-
HW memory layout:

0x03000000
SRAM
0x02000000
xxxxxxxxxxxxxx unused
0x00100000

SRAM
0x00000000

ebootnand.bib :
MEMORY
EBOOTNAND 00000000 00080000 RAMIMAGE
RAM 02100000 00F00000 RAM
STACK 00090000 00070000 RESERVED
ARGS 00080000 00010000 RESERVED
NS 00100000 01F00000 RESERVED
NS2 02000000 00100000 RESERVED

CONFIG
PROFILE=OFF
KERNELFIXUPS=ON
SRE=ON
ROMSIZE€000
ROMSTART=0
ROMWIDTH2
ROMOFFSET=0

MODULES
; Name Path
Memory
; -- -

nk.exe $(_TARGETPLATROOT)\target\$(_TGTCPU)\$(WINCEDEBUG)\ebootnand.exe
EBOOTNAND

#define IMAGE_EBOOT_CODE_PA 0x00000000
#define IMAGE_EBOOT_CODE_SIZE 0x00080000

-
any comment would be very help to us.

Thanks and Best Regards.

vincent tsai
 

Lesen sie die antworten

#1 ReBoot
18/05/2009 - 13:32 | Warnen spam
How's that connected to the German IE newsgroup?

Ähnliche fragen