public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] question about TEXT_BASE in U-boot
@ 2008-12-14 10:14 王睿
       [not found] ` <5ad5c5a40812140226h642b11cal934e3dd398001276@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: 王睿 @ 2008-12-14 10:14 UTC (permalink / raw)
  To: u-boot

Hi everyone:

I am a freshman in U-boot development. My question to all expert is:

I set TEXT_BASE=0xA0f00000 in board/LPC2468OEM_Board/config.mk.

After compile, the first instruction is:
a0f00000: ea000014 b a0f00058 <reset>

However there is nothing at a0f00058 after power up board, so that
system hang up. (I download u-boot to ROM flash)

Can anyone explain that how u-boot boot after power up and what shall
I do to make u-boot work right?

Thanks very much.

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

* [U-Boot] question about TEXT_BASE in U-boot
       [not found] ` <5ad5c5a40812140226h642b11cal934e3dd398001276@mail.gmail.com>
@ 2008-12-14 11:53   ` wangrui
  2008-12-15  6:53     ` tike64 at gmail.com
  0 siblings, 1 reply; 3+ messages in thread
From: wangrui @ 2008-12-14 11:53 UTC (permalink / raw)
  To: u-boot

Hi zhenhua:

After power up board, CPU will execute the instruction store at 0x0 (ROM
flash), and I download u-boot
to ROM flash (start from 0x0) so that the instruction store at 0x0 is 
"a0f00000: ea000014 b a0f00058 <reset>"

Then program will jump to 0xa0f00058 (SDRAM). However there shall be
nothing inSDRAM, because board
just powered up.

I wang to know how u-boot work after power up and TEXT_BASE is in SDRAM.
(My board is fresh and no bootloader in board)


On Sun, 2008-12-14 at 18:26 +0800, zhenhua lin wrote:
> >  However there is nothing at a0f00058 after power up board, so that
> system hang up. (I download u-boot to ROM flash)
> 
> Why? Do you change the map to relocate the callee? Please Check the
> callee whether  is it  at the right position.
> 
> 
> 
> 
> 
> 2008/12/14 ?? <wangr.bupt@gmail.com>:
> > Hi everyone:
> >
> > I am a freshman in U-boot development. My question to all expert is:
> >
> > I set TEXT_BASE=0xA0f00000 in board/LPC2468OEM_Board/config.mk.
> >
> > After compile, the first instruction is:
> > a0f00000: ea000014 b a0f00058 <reset>
> >
> > However there is nothing at a0f00058 after power up board, so that
> > system hang up. (I download u-boot to ROM flash)
> >
> > Can anyone explain that how u-boot boot after power up and what shall
> > I do to make u-boot work right?
> >
> > Thanks very much.
> >
> > _______________________________________________
> > U-Boot mailing list
> > U-Boot at lists.denx.de
> > http://lists.denx.de/mailman/listinfo/u-boot
> >
> >

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

* [U-Boot] question about TEXT_BASE in U-boot
  2008-12-14 11:53   ` wangrui
@ 2008-12-15  6:53     ` tike64 at gmail.com
  0 siblings, 0 replies; 3+ messages in thread
From: tike64 at gmail.com @ 2008-12-15  6:53 UTC (permalink / raw)
  To: u-boot

wangrui wrote:
> After power up board, CPU will execute the instruction store at 0x0 (ROM
> flash), and I download u-boot
> to ROM flash (start from 0x0) so that the instruction store at 0x0 is 
> "a0f00000: ea000014 b a0f00058 <reset>"
> 
> Then program will jump to 0xa0f00058 (SDRAM)...

No, it does not. b is a relative branch and causes a jump to 0xa0f00058 
only if you execute it at 0xa0f00000. You would make yourself a big 
favor by familiarizing yourself with ARM instruction set.

--

Timo

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

end of thread, other threads:[~2008-12-15  6:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-14 10:14 [U-Boot] question about TEXT_BASE in U-boot 王睿
     [not found] ` <5ad5c5a40812140226h642b11cal934e3dd398001276@mail.gmail.com>
2008-12-14 11:53   ` wangrui
2008-12-15  6:53     ` tike64 at gmail.com

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