* small bootloader that passes arguments
@ 2007-11-12 19:54 khollan
2007-11-13 7:35 ` Lorenz Kolb
0 siblings, 1 reply; 2+ messages in thread
From: khollan @ 2007-11-12 19:54 UTC (permalink / raw)
To: linuxppc-embedded
Hi,
I would like to create a small bootloader that is able to pass kernel
arguments and boot a linux kernel. Im using a xilinx PPC, and have already
booted a working kernel with a Xilinx provided XMD bootloader over USB. My
main question is how does a bootloader pass these arguments to the kernel
before booting it? Most specifically the root=/dev/xsa1 command so I can
tell it to either boot from compact flash or NFS.
I really don't want to try and port U-boot since I don't need the bells and
whistles and I want it to fit in the BRAM of the FPGA so it will load when I
load the hardware configuration.
--
View this message in context: http://www.nabble.com/small-bootloader-that-passes-arguments-tf4793411.html#a13712778
Sent from the linuxppc-embedded mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: small bootloader that passes arguments
2007-11-12 19:54 small bootloader that passes arguments khollan
@ 2007-11-13 7:35 ` Lorenz Kolb
0 siblings, 0 replies; 2+ messages in thread
From: Lorenz Kolb @ 2007-11-13 7:35 UTC (permalink / raw)
To: linuxppc-embedded
Hi,
the normal operation of a bootloader is:
memcpy() -- copy the programme to boot to some new location maybe some
decoding done here, too
jump_to_addr() -- the easiest way to jump to some address in a higher level
language is to make a function call to some pointer. You can pass arguments
to this function, that is what bootloaders like u-boot do.
Personally I would recommand you to use some small first-stage-loader
loading U-Boot and make U-Boot do the rest. There is a U-Boot 1.1.4 port on
Xilinx' website for some Xilinx boards that can easily be adapted to Your
board (if it is no yet supported), I guess.
You can find Xilinx' U-Boot-"tree" here:
http://www.xilinx.com/ml410-p/81i_19.5/designs/u-boot.zip
Regards,
Lorenz Kolb
khollan wrote:
>
> Hi,
>
> I would like to create a small bootloader that is able to pass kernel
> arguments and boot a linux kernel. Im using a xilinx PPC, and have
> already booted a working kernel with a Xilinx provided XMD bootloader over
> USB. My main question is how does a bootloader pass these arguments to
> the kernel before booting it? Most specifically the root=/dev/xsa1
> command so I can tell it to either boot from compact flash or NFS.
>
> I really don't want to try and port U-boot since I don't need the bells
> and whistles and I want it to fit in the BRAM of the FPGA so it will load
> when I load the hardware configuration.
>
--
View this message in context: http://www.nabble.com/small-bootloader-that-passes-arguments-tf4793411.html#a13721038
Sent from the linuxppc-embedded mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-11-13 7:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-12 19:54 small bootloader that passes arguments khollan
2007-11-13 7:35 ` Lorenz Kolb
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).