* [U-Boot-Users] directly execute linux zImage: cmd_bootz
@ 2003-01-22 16:13 Holger Schurig
2003-01-23 7:58 ` "David Müller (ELSOFT AG)"
0 siblings, 1 reply; 5+ messages in thread
From: Holger Schurig @ 2003-01-22 16:13 UTC (permalink / raw)
To: u-boot
Hi !
Attached is a patch for armboot that directly calls a Linux zImage. It has
been tested on my PXA250 platform.
Prerequisites:
- works only on arm, because it takes stuff from asm_arm/armlinux.c
- set CONFIG_KERNEL_RAM_BASE to where the zImage is in Flash
Problems:
- I have no clue if the tag list get's correctly set up, I'm using a kernel
2.4 which doesn't use the tags anyway.
- how can I pass the cmdline?
- Kernel 2.4. clobbers r2, the pointer to the tag list. In your fixup code you
can have
MACHINE_START(...)
BOOT_PARAMS(0xa0000100)
...
MACHINE_END
but how put I *params to some fixed address?
I guess this is rather ugly, so comments on how to do it better are welcomed
:-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmd_bootz.patch
Type: text/x-diff
Size: 10807 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20030122/7bf84204/attachment.patch
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] directly execute linux zImage: cmd_bootz
2003-01-22 16:13 [U-Boot-Users] directly execute linux zImage: cmd_bootz Holger Schurig
@ 2003-01-23 7:58 ` "David Müller (ELSOFT AG)"
2003-01-23 8:18 ` Robert Schwebel
2003-01-23 8:29 ` Holger Schurig
0 siblings, 2 replies; 5+ messages in thread
From: "David Müller (ELSOFT AG)" @ 2003-01-23 7:58 UTC (permalink / raw)
To: u-boot
Hello
Holger Schurig wrote:
> Hi !
>
> Attached is a patch for armboot that directly calls a Linux zImage. It has
> been tested on my PXA250 platform.
>
> Prerequisites:
>
> - works only on arm, because it takes stuff from asm_arm/armlinux.c
> - set CONFIG_KERNEL_RAM_BASE to where the zImage is in Flash
>
> Problems:
>
> - I have no clue if the tag list get's correctly set up, I'm using a kernel
> 2.4 which doesn't use the tags anyway.
AFAICS 2.4 uses the tag list if there is one prepared by the bootloader.
> - how can I pass the cmdline?
By using the "ATAG_CMDLINE" in the tag list. Make sure you have defined
"CONFIG_CMDLINE_TAG" in your u-boot config file.
> - Kernel 2.4. clobbers r2, the pointer to the tag list. In your fixup code you
> can have
>
> MACHINE_START(...)
> BOOT_PARAMS(0xa0000100)
> ...
> MACHINE_END
>
> but how put I *params to some fixed address?
>
See
http://sourceforge.net/mailarchive/forum.php?thread_id=1531608&forum_id=12898
Dave
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] directly execute linux zImage: cmd_bootz
2003-01-23 7:58 ` "David Müller (ELSOFT AG)"
@ 2003-01-23 8:18 ` Robert Schwebel
2003-01-23 8:29 ` Holger Schurig
1 sibling, 0 replies; 5+ messages in thread
From: Robert Schwebel @ 2003-01-23 8:18 UTC (permalink / raw)
To: u-boot
On Thu, Jan 23, 2003 at 08:58:18AM +0100, "David M?ller (ELSOFT AG)" wrote:
> AFAICS 2.4 uses the tag list if there is one prepared by the bootloader.
Nope. You have to pass BOOT_PARAMS(). See recent discussion on
arm-linux-kernel.
Robert
--
Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
Braunschweiger Str. 79, 31134 Hildesheim, Germany
Handelsregister: Amtsgericht Hildesheim, HRA 2686
Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] directly execute linux zImage: cmd_bootz
2003-01-23 7:58 ` "David Müller (ELSOFT AG)"
2003-01-23 8:18 ` Robert Schwebel
@ 2003-01-23 8:29 ` Holger Schurig
2003-01-23 10:29 ` "David Müller (ELSOFT AG)"
1 sibling, 1 reply; 5+ messages in thread
From: Holger Schurig @ 2003-01-23 8:29 UTC (permalink / raw)
To: u-boot
> AFAICS 2.4 uses the tag list if there is one prepared by the bootloader.
No, it doesn't. See
http://www.arm.linux.org.uk/developer/booting.php
to find out that a boot loader should pass the address of the tag list in r2
to the kernel. It's near the end. And then see
http://lists.arm.linux.org.uk/pipermail/linux-arm-kernel/2003-January/013126.html
to see that 2.4-kernels currently don't use r2 and can't use in order to stay
compatible. In fact, a 2.4. kernel trashes r2 right at the start, see
http://lists.arm.linux.org.uk/pipermail/linux-arm-kernel/2003-January/013140.html
However, 2.5-kernels already employ the r2-rule.
I'm not sure, but I think that only Kernels for ARM (and for XScale) use this
tagging at all, correct?
> See
> http://sourceforge.net/mailarchive/forum.php?thread_id=1531608&forum_id=128
>98
Ahh, here is the trick, use gd->bd->bi_boot_params
Thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot-Users] directly execute linux zImage: cmd_bootz
2003-01-23 8:29 ` Holger Schurig
@ 2003-01-23 10:29 ` "David Müller (ELSOFT AG)"
0 siblings, 0 replies; 5+ messages in thread
From: "David Müller (ELSOFT AG)" @ 2003-01-23 10:29 UTC (permalink / raw)
To: u-boot
Hi
Holger Schurig wrote:
>>AFAICS 2.4 uses the tag list if there is one prepared by the bootloader.
>
>
> No, it doesn't. See
>
> http://www.arm.linux.org.uk/developer/booting.php
>
I'm not speaking about the pointer to the tag list (which should be
passed in r2, Linux 2.4 uses BOOT_PARAMS instead), i'm speacking about
the tag list itself. Parameter passing from the bootloader to the kernel
via the tag list is working, at least for me (using linux-2.4.19-rmk4
kernel).
Dave
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-01-23 10:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-22 16:13 [U-Boot-Users] directly execute linux zImage: cmd_bootz Holger Schurig
2003-01-23 7:58 ` "David Müller (ELSOFT AG)"
2003-01-23 8:18 ` Robert Schwebel
2003-01-23 8:29 ` Holger Schurig
2003-01-23 10:29 ` "David Müller (ELSOFT AG)"
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox