public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users]  Standalone hello_world, data abort error on ARM926 (AP)
@ 2008-01-31  3:00 iismail
  2008-01-31 11:18 ` iismail
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: iismail @ 2008-01-31  3:00 UTC (permalink / raw)
  To: u-boot


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-ARM926-%28AP%29-tp15197260p15197260.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot-Users] Standalone hello_world, data abort error on ARM926 (AP)
  2008-01-31  3:00 [U-Boot-Users] Standalone hello_world, data abort error on ARM926 (AP) iismail
@ 2008-01-31 11:18 ` iismail
  2008-01-31 12:01 ` Peter Pearse
  2008-02-01 13:57 ` Leonid
  2 siblings, 0 replies; 8+ messages in thread
From: iismail @ 2008-01-31 11:18 UTC (permalink / raw)
  To: u-boot




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
> 

-- 
View this message in context: http://www.nabble.com/Standalone-hello_world%2C-data-abort-error-on-ARM926-%28AP%29-tp15197260p15202592.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot-Users] Standalone hello_world, data abort error on ARM926 (AP)
  2008-01-31  3:00 [U-Boot-Users] Standalone hello_world, data abort error on ARM926 (AP) iismail
  2008-01-31 11:18 ` iismail
@ 2008-01-31 12:01 ` Peter Pearse
  2008-01-31 13:27   ` idris ismail
  2008-01-31 15:27   ` idris ismail
  2008-02-01 13:57 ` Leonid
  2 siblings, 2 replies; 8+ messages in thread
From: Peter Pearse @ 2008-01-31 12:01 UTC (permalink / raw)
  To: u-boot



> -----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: 31 January 2008 03:00
> 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.

---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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot-Users] Standalone hello_world, data abort error on ARM926 (AP)
  2008-01-31 12:01 ` Peter Pearse
@ 2008-01-31 13:27   ` idris ismail
  2008-01-31 15:27   ` idris ismail
  1 sibling, 0 replies; 8+ messages in thread
From: idris ismail @ 2008-01-31 13:27 UTC (permalink / raw)
  To: u-boot

On Jan 31, 2008 7:01 AM, Peter Pearse <peter.pearse@arm.com> wrote:

>
>
> > -----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: 31 January 2008 03:00
> > 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.
>
> ---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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20080131/ad4cc44c/attachment.htm 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot-Users] Standalone hello_world, data abort error on ARM926 (AP)
  2008-01-31 12:01 ` Peter Pearse
  2008-01-31 13:27   ` idris ismail
@ 2008-01-31 15:27   ` idris ismail
  2008-01-31 15:40     ` Rune Torgersen
  2008-01-31 16:04     ` Peter Pearse
  1 sibling, 2 replies; 8+ messages in thread
From: idris ismail @ 2008-01-31 15:27 UTC (permalink / raw)
  To: u-boot

Hi Peter,

Thanks again for your quick reponse,
No matter what address i choose it is not working; below is my memory map

 iismail at 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 at lists.sourceforge.net
> > [mailto:u-boot-users-bounces at lists.sourceforge.net] On Behalf
> > Of iismail
> > Sent: 31 January 2008 03:00
> > 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.
>
> ---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
>
>
>
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot-Users] Standalone hello_world, data abort error on ARM926 (AP)
  2008-01-31 15:27   ` idris ismail
@ 2008-01-31 15:40     ` Rune Torgersen
  2008-01-31 16:04     ` Peter Pearse
  1 sibling, 0 replies; 8+ messages in thread
From: Rune Torgersen @ 2008-01-31 15:40 UTC (permalink / raw)
  To: u-boot

u-boot-users-bounces at 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot-Users] Standalone hello_world, data abort error on ARM926 (AP)
  2008-01-31 15:27   ` idris ismail
  2008-01-31 15:40     ` Rune Torgersen
@ 2008-01-31 16:04     ` Peter Pearse
  1 sibling, 0 replies; 8+ messages in thread
From: Peter Pearse @ 2008-01-31 16:04 UTC (permalink / raw)
  To: u-boot

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 at arm.com, mentioning this correspondence....

Regards

Peter 

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [U-Boot-Users] Standalone hello_world, data abort error on ARM926 (AP)
  2008-01-31  3:00 [U-Boot-Users] Standalone hello_world, data abort error on ARM926 (AP) iismail
  2008-01-31 11:18 ` iismail
  2008-01-31 12:01 ` Peter Pearse
@ 2008-02-01 13:57 ` Leonid
  2 siblings, 0 replies; 8+ messages in thread
From: Leonid @ 2008-02-01 13:57 UTC (permalink / raw)
  To: u-boot

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 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-02-01 13:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-31  3:00 [U-Boot-Users] Standalone hello_world, data abort error on ARM926 (AP) iismail
2008-01-31 11:18 ` iismail
2008-01-31 12:01 ` Peter Pearse
2008-01-31 13:27   ` idris ismail
2008-01-31 15:27   ` idris ismail
2008-01-31 15:40     ` Rune Torgersen
2008-01-31 16:04     ` Peter Pearse
2008-02-01 13:57 ` Leonid

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox