
I have built big standalone application for similar CPU (at92rm9200). I use some RAM address to do so, namely LOAD_ADDR=0x21000000.
See my make rules below.
######################################################################## # $(ELF): $(OBJS) $(LD) -g $(EX_LDFLAGS) -Ttext $(LOAD_ADDR) \ -o $@ -e $(notdir $(<:.o=)) $^ $(TOPDIR)/$(LIB) \ -L$(gcclibdir) -lgcc
$(SREC): $(ELF) $(OBJCOPY) -O srec $< $@ 2>/dev/null
$(BIN): $(ELF) $(OBJCOPY) -O binary $< $@ 2>/dev/null cp -f $@ $(AKA_IMAGES_DIR)
System.map: $(ELF) @$(NM) $< | \ grep -v '(compiled)|(.o$$)|( [aUw] )|(..ng$$)|(LASH[RL]DI)' | \ sort > System.map
-----Original Message----- From: u-boot-users-bounces@lists.sourceforge.net [mailto:u-boot-users-bounces@lists.sourceforge.net] On Behalf Of iismail Sent: Wednesday, January 30, 2008 7:00 PM To: u-boot-users@lists.sourceforge.net Subject: [U-Boot-Users] Standalone hello_world, data abort error on ARM926 (AP)
Hi all,
I am having problem running the "hello_world" examples that comes with u-boot on ARM926 board.
Board: ARM926 (AB) application baseboard Tools: CodeSourcery (arm-none-linux-gnueabi-)
I manage to build u-boot successfully as follow 1. make versatileab_config CROSS_COMPILE=arm-none-linux-gnueabi- 2. make all CROSS_COMPILE=arm-none-linux-gnueabi- Then i flash "u-boot.bin" into the board memory.
Then i load and run the standalone program "hello_world.bin" as follow
VersatileAB # tftp 0xc100000 hello_world.bin Using MAC Address 00:02:F7:00:10:31 TFTP from server 192.168.1.105; our IP address is 192.168.1.109 Filename 'hello_world.bin'. Load address: 0xc100000 Loading: # done Bytes transferred = 506 (1fa hex) VersatileAB # go 0xc100000 ## Starting application at 0x0C100000 ... undefined instruction pc : [<0c100004>] lr : [<01005d3c>] sp : 00fddb88 ip : ffffffff fp : 00000000 r10: 00000000 r9 : 00000000 r8 : 00fddfdc r7 : 00fddcb0 r6 : 00000002 r5 : 00fddea8 r4 : 0c100000 r3 : 00000000 r2 : 101f1018 r1 : 00fddea8 r0 : 00000001 Flags: nZCv IRQs off FIQs off Mode SVC_32 Resetting CPU ...
ARM Versatile/AB926EJ-S Boot Monitor Version: V2.0.2 Build Date: Apr 12 2005 Endian: Little
I notice the load address 0xc100000 is pointing to reserve area according to User Guide Manual from ARM
Reserved (MPMC Chip Select 1, dynamic expansion memory on Versatile/PB926EJ-S) - - 0x08000000- 0x0FFFFFFF 128MB
Any idea?
Thanks