Skip to contentSkip to conversation

Execute in place

U-Boot-Users Marcelo Leal 4 participants 8 messages Sep 9, 2004

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 4 lines · In message <[email protected]> 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

Signature · 4 lines
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
#2 lore raw
In reply to Marcelo Leal

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

Quoted 20 lines · Marcelo Leal

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

#3 lore raw
Quoted 8 lines · Michael Frey

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

#4 lore raw

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

Michael

Quoted 21 lines · Ladislav Michl
Quoted 8 lines · Michael Frey

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

#5 lore raw
Quoted 2 lines · Michael Frey

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

#6 lore raw
In reply to Ladislav Michl
Quoted 3 lines · 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

Signature · 5 lines
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
#7 lore raw
In reply to Michael Frey
Quoted 3 lines · In message <[email protected]> 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".

Quoted 4 lines

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

Signature · 5 lines
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