All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lorenz Kolb <linuxppcemb@lkmail.de>
To: linuxppc-embedded@ozlabs.org
Subject: Re: small bootloader that passes arguments
Date: Mon, 12 Nov 2007 23:35:43 -0800 (PST)	[thread overview]
Message-ID: <13721038.post@talk.nabble.com> (raw)
In-Reply-To: <13712778.post@talk.nabble.com>


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.

      reply	other threads:[~2007-11-13  7:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-12 19:54 small bootloader that passes arguments khollan
2007-11-13  7:35 ` Lorenz Kolb [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=13721038.post@talk.nabble.com \
    --to=linuxppcemb@lkmail.de \
    --cc=linuxppc-embedded@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.