[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

iismail wrote:
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

-----Original Message----- From: u-boot-users-bounces@lists.sourceforge.net [mailto:u-boot-users-bounces@lists.sourceforge.net] On Behalf Of iismail Sent: 31 January 2008 03:00 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.
---snip
Then i load and run the standalone program "hello_world.bin" as follow
VersatileAB # tftp 0xc100000 hello_world.bin Using MAC
How did you come to choose 0xc1000000 - which as you say is Reserved?
Unless you have modified your AB accordingly you must expect problems using a reserved address....
Try somewhere in SDRAM 0x000000 - 0x07FFFFFF (depending on your switch settings) as per your manual
Regards
Peter

On Jan 31, 2008 7:01 AM, Peter Pearse peter.pearse@arm.com wrote:
-----Original Message----- From: u-boot-users-bounces@lists.sourceforge.net [mailto:u-boot-users-bounces@lists.sourceforge.net] On Behalf Of iismail Sent: 31 January 2008 03:00 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.
---snip
Then i load and run the standalone program "hello_world.bin" as follow
VersatileAB # tftp 0xc100000 hello_world.bin Using MAC
How did you come to choose 0xc1000000 - which as you say is Reserved?
Unless you have modified your AB accordingly you must expect problems using a reserved address....
Try somewhere in SDRAM 0x000000 - 0x07FFFFFF (depending on your switch settings) as per your manual
Regards
Peter
Hi Peter
How did you come to choose 0xc1000000 - which as you say is Reserved?
I didn't choose that address, it it was part of the hello_world's Makefile ifeq ($(ARCH),arm) LOAD_ADDR = 0xc100000 endif
Try somewhere in SDRAM 0x000000 - 0x07FFFFFF (depending on your switch
settings) as per your manual Still no luck with 0x06000000 which is in the RAM area; 060081fa A __bss_end__ 060081fa A __bss_start 060081fa A __bss_start__ 060081fa R __data_start 060081fc A __end__ 060001fa A __exidx_end 060001fa A __exidx_start 060081fa A _bss_end__ 060081fa A _edata 060081fc A _end 06000148 T app_startup 06000124 T do_reset 060000bc T dummy 06000104 T free 060000f4 T free_hdlr 06000114 T get_timer 060000bc T get_version 060000c4 T getc 0600012c T getenv 06000000 T hello_world 060000ec T install_hdlr 060000fc T malloc 060000e4 T printf 060000d4 T putc 060000dc T puts 06000134 T setenv 0600013c T simple_strtoul 060000cc T tstc 0600010c T udelay 0600011c T vprintf
VersatileAB # tftp 0x06000000 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: 0x6000000 Loading: # done Bytes transferred = 506 (1fa hex) VersatileAB # go 0x06000000 hello ## Starting application at 0x06000000 ... data abort pc : [<0600015c>] lr : [<06000014>] sp : 00fddb78 ip : ffffffff fp : 00000000 r10: 00000000 r9 : 00000000 r8 : 00fddfdc r7 : 00fddcb7 r6 : 00fddea8 r5 : 00000002 r4 : 06000000 r3 : 00000000 r2 : 060081fa r1 : 00fddea8 r0 : 00fddea8 Flags: Nzcv IRQs off FIQs off Mode SVC_32 Resetting CPU ...
Regards,
Idris

Hi Peter,
Thanks again for your quick reponse, No matter what address i choose it is not working; below is my memory map
iismail@ubuntu-desktop:~/seda/u-boot/u-bootARMPatched$ arm-none-linux-gnueabi-nm examples/hello_world 030081fa A __bss_end__ 030081fa A __bss_start 030081fa A __bss_start__ 030081fa R __data_start 030081fc A __end__ 030001fa A __exidx_end 030001fa A __exidx_start 030081fa A _bss_end__ 030081fa A _edata 030081fc A _end 03000148 T app_startup 03000124 T do_reset 030000bc T dummy 03000104 T free 030000f4 T free_hdlr 03000114 T get_timer 030000bc T get_version 030000c4 T getc 0300012c T getenv 03000000 T hello_world 030000ec T install_hdlr 030000fc T malloc 030000e4 T printf 030000d4 T putc 030000dc T puts 03000134 T setenv 0300013c T simple_strtoul 030000cc T tstc 0300010c T udelay 0300011c T vprintf
VersatileAB # tftp 0x03000000 hello_world.bin Using MAC Address <X X X X X> TFTP from server 192.168.1.105; our IP address is 192.168.1.109 Filename 'hello_world.bin'. Load address: 0x3000000 Loading: # done Bytes transferred = 506 (1fa hex) VersatileAB # to 0x03000000 Unknown command 'to' - try 'help' VersatileAB # go 0x03000000 ## Starting application at 0x03000000 ... data abort pc : [<0300015c>] lr : [<03000014>] sp : 00fddb78 ip : ffffffff fp : 00000000 r10: 00000000 r9 : 00000000 r8 : 00fddfdc r7 : 00fddcb1 r6 : 00fddea8 r5 : 00000001 r4 : 03000000 r3 : 00000000 r2 : 030081fa r1 : 00fddea8 r0 : 00fddea8 Flags: Nzcv IRQs off FIQs off Mode SVC_32 Resetting CPU ...
On Jan 31, 2008 7:01 AM, Peter Pearse peter.pearse@arm.com wrote:
-----Original Message----- From: u-boot-users-bounces@lists.sourceforge.net [mailto:u-boot-users-bounces@lists.sourceforge.net] On Behalf Of iismail Sent: 31 January 2008 03:00 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.
---snip
Then i load and run the standalone program "hello_world.bin" as follow
VersatileAB # tftp 0xc100000 hello_world.bin Using MAC
How did you come to choose 0xc1000000 - which as you say is Reserved?
Unless you have modified your AB accordingly you must expect problems using a reserved address....
Try somewhere in SDRAM 0x000000 - 0x07FFFFFF (depending on your switch settings) as per your manual
Regards
Peter

u-boot-users-bounces@lists.sourceforge.net wrote:
Hi Peter,
Thanks again for your quick reponse, No matter what address i choose it is not working; below is my memory map
03000148 T app_startup
This looks more like an entry point (I'm not too familiar with ARM, so I'm probably wrong)
VersatileAB # go 0x03000000 ## Starting application at 0x03000000 ...
Try go 0x03000148 instead

Idris
No matter what address i choose it is not working; below is my memory map
I guess it isn't a u-boot problem then. I suggest you contact
support@arm.com, mentioning this correspondence....
Regards
Peter

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
participants (5)
-
idris ismail
-
iismail
-
Leonid
-
Peter Pearse
-
Rune Torgersen