public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Execute in place
@ 2004-09-09 11:24 Marcelo Leal
  2004-09-09 13:58 ` Wolfgang Denk
  2004-09-09 14:10 ` Michael Frey
  0 siblings, 2 replies; 8+ messages in thread
From: Marcelo Leal @ 2004-09-09 11:24 UTC (permalink / raw)
  To: u-boot

How can I configure the kernel to execute in place (XIP)  with u-boot?
 
I'm using the innovator (omap1510).


Thanks.

Marcelo.


-

Marcelo Leal
mcfleal at yahoo.com.br
CPqD Telecom & IT Solutions
__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20040909/a3d05597/attachment.htm 

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

* [U-Boot-Users] Execute in place
  2004-09-09 11:24 [U-Boot-Users] Execute in place Marcelo Leal
@ 2004-09-09 13:58 ` Wolfgang Denk
  2004-09-09 14:10 ` Michael Frey
  1 sibling, 0 replies; 8+ messages in thread
From: Wolfgang Denk @ 2004-09-09 13:58 UTC (permalink / raw)
  To: u-boot

In message <20040909112435.21127.qmail@web54209.mail.yahoo.com> you wrote:
> 
> How can I configure the kernel to execute in place (XIP)  with u-boot?
>  
> I'm using the innovator (omap1510).

This is a kernel issue. U-Boot is not really involved here.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
A conservative is a man with two perfectly good legs  who  has  never
learned to walk.                              - Franklin D. Roosevelt

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

* [U-Boot-Users] Execute in place
  2004-09-09 11:24 [U-Boot-Users] Execute in place Marcelo Leal
  2004-09-09 13:58 ` Wolfgang Denk
@ 2004-09-09 14:10 ` Michael Frey
  2004-09-09 14:31   ` Ladislav Michl
  2004-09-09 15:28   ` Wolfgang Denk
  1 sibling, 2 replies; 8+ messages in thread
From: Michael Frey @ 2004-09-09 14:10 UTC (permalink / raw)
  To: u-boot

Marcelo,

Instead of using bootm to boot the kernel you just need to jump to the 
address where the XIP image is located in flash.

Like this:

go 0x000c0000

This will jump to the XIP image and start executing.  The only problem 
with this is the bootargs do not get passed to a XIP image so they must 
be compiled into the kernel.

Michael

On Sep 9, 2004, at 7:24 AM, Marcelo Leal wrote:

> How can I configure the kernel to execute in place (XIP)? with u-boot?
> ?
> I'm using the innovator (omap1510).
>
>
> Thanks.
>
> Marcelo.
>
>
> -
>
> Marcelo Leal
> mcfleal at yahoo.com.br
> CPqD Telecom & IT Solutions
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com

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

* [U-Boot-Users] Execute in place
  2004-09-09 14:10 ` Michael Frey
@ 2004-09-09 14:31   ` Ladislav Michl
  2004-09-09 14:35     ` Michael Frey
  2004-09-09 15:29     ` Wolfgang Denk
  2004-09-09 15:28   ` Wolfgang Denk
  1 sibling, 2 replies; 8+ messages in thread
From: Ladislav Michl @ 2004-09-09 14:31 UTC (permalink / raw)
  To: u-boot

On Thu, Sep 09, 2004 at 10:10:41AM -0400, Michael Frey wrote:
> Marcelo,
> 
> Instead of using bootm to boot the kernel you just need to jump to the 
> address where the XIP image is located in flash.
> 
> Like this:
> 
> go 0x000c0000

That's nonsense. That doesn't make kernel XIP. AFAIR the only attempt to
make XIP kernel was done for SH port. I do not know its current state.

ARM kernel doesn't support XIP. Only kernel uncompressor runs directly
from flash (if configured in) and unpacks kernel into memory and then
jumping there. I'm using U-Boot for such purpose anyway, because it
gives you more freedom :)

Best regards,
	ladis

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

* [U-Boot-Users] Execute in place
  2004-09-09 14:31   ` Ladislav Michl
@ 2004-09-09 14:35     ` Michael Frey
  2004-09-09 14:59       ` Ladislav Michl
  2004-09-09 15:29     ` Wolfgang Denk
  1 sibling, 1 reply; 8+ messages in thread
From: Michael Frey @ 2004-09-09 14:35 UTC (permalink / raw)
  To: u-boot

Oh -- It absolutely is ported to ARM, I am running a XIP kernel on an 
xscale board!!! And the example below works perfectly.

Michael



On Sep 9, 2004, at 10:31 AM, Ladislav Michl wrote:

> On Thu, Sep 09, 2004 at 10:10:41AM -0400, Michael Frey wrote:
>> Marcelo,
>>
>> Instead of using bootm to boot the kernel you just need to jump to the
>> address where the XIP image is located in flash.
>>
>> Like this:
>>
>> go 0x000c0000
>
> That's nonsense. That doesn't make kernel XIP. AFAIR the only attempt 
> to
> make XIP kernel was done for SH port. I do not know its current state.
>
> ARM kernel doesn't support XIP. Only kernel uncompressor runs directly
> from flash (if configured in) and unpacks kernel into memory and then
> jumping there. I'm using U-Boot for such purpose anyway, because it
> gives you more freedom :)
>
> Best regards,
> 	ladis

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

* [U-Boot-Users] Execute in place
  2004-09-09 14:35     ` Michael Frey
@ 2004-09-09 14:59       ` Ladislav Michl
  0 siblings, 0 replies; 8+ messages in thread
From: Ladislav Michl @ 2004-09-09 14:59 UTC (permalink / raw)
  To: u-boot

On Thu, Sep 09, 2004 at 10:35:17AM -0400, Michael Frey wrote:
> Oh -- It absolutely is ported to ARM, I am running a XIP kernel on an 
> xscale board!!! And the example below works perfectly.

Oh?! Any patches available?

Thanks,
	ladis

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

* [U-Boot-Users] Execute in place
  2004-09-09 14:10 ` Michael Frey
  2004-09-09 14:31   ` Ladislav Michl
@ 2004-09-09 15:28   ` Wolfgang Denk
  1 sibling, 0 replies; 8+ messages in thread
From: Wolfgang Denk @ 2004-09-09 15:28 UTC (permalink / raw)
  To: u-boot

In message <0885FE4E-026A-11D9-AB76-00039390D626@pepper.com> you wrote:
> 
> Instead of using bootm to boot the kernel you just need to jump to the 
> address where the XIP image is located in flash.

This will usually fail to work.

"bootm" perfectly understands about XIP images,  and  allows  you  to
pass the usual bd_info structure and boot commandline paramaters. All
of this will be missing with "go".

> 
> This will jump to the XIP image and start executing.  The only problem 
> with this is the bootargs do not get passed to a XIP image so they must 
> be compiled into the kernel.

This is NOT the only problem. It also misses to set  up  the  reqired
registers  needed  for  the  kernel,  and  ther eis no passing of any
bd_info ot ATAGS or similar data.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
What kind of love is that?  Not to be loved; never to have shown love.
	-- Commissioner Nancy Hedford, "Metamorphosis",
	   stardate 3219.8

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

* [U-Boot-Users] Execute in place
  2004-09-09 14:31   ` Ladislav Michl
  2004-09-09 14:35     ` Michael Frey
@ 2004-09-09 15:29     ` Wolfgang Denk
  1 sibling, 0 replies; 8+ messages in thread
From: Wolfgang Denk @ 2004-09-09 15:29 UTC (permalink / raw)
  To: u-boot

In message <20040909143147.GA8003@umax645sx> you wrote:
> 
> That's nonsense. That doesn't make kernel XIP. AFAIR the only attempt to
> make XIP kernel was done for SH port. I do not know its current state.

Wrong. We did this for some  PowerPC  systems  as  well,  and  U-Boot
supports this. See http://www.denx.de/twiki/bin/view/DULG/ConfigureLinuxForXIP
for details.


Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
My challenge to the goto-less programmer  is  to  recode  tcp_input()
without any gotos ... without any loss of efficiency (there has to be
a catch).                                             - W. R. Stevens

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

end of thread, other threads:[~2004-09-09 15:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-09 11:24 [U-Boot-Users] Execute in place Marcelo Leal
2004-09-09 13:58 ` Wolfgang Denk
2004-09-09 14:10 ` Michael Frey
2004-09-09 14:31   ` Ladislav Michl
2004-09-09 14:35     ` Michael Frey
2004-09-09 14:59       ` Ladislav Michl
2004-09-09 15:29     ` Wolfgang Denk
2004-09-09 15:28   ` Wolfgang Denk

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