[U-Boot-Users] Standalone hello_world, data abort error on ARM926 (AP)
Leonid
Leonid at a-k-a.net
Fri Feb 1 14:57:38 CET 2008
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 at lists.sourceforge.net
[mailto:u-boot-users-bounces at lists.sourceforge.net] On Behalf Of iismail
Sent: Wednesday, January 30, 2008 7:00 PM
To: u-boot-users at 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
--
View this message in context:
http://www.nabble.com/Standalone-hello_world%2C-data-abort-error-on-ARM9
26-%28AP%29-tp15197260p15197260.html
Sent from the Uboot - Users mailing list archive at Nabble.com.
------------------------------------------------------------------------
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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