public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Falcon mode with initrd
Date: Wed, 27 May 2015 17:49:16 +0200	[thread overview]
Message-ID: <5565E77C.5090505@denx.de> (raw)
In-Reply-To: <CAJ+vNU1toV6cqhXp3Y0BCQcSNrKP97gmNCfR5dPrDG-0BUZOkw@mail.gmail.com>

Hi Tim,

On 27/05/2015 17:22, Tim Harvey wrote:
> Stefano,
> 
> You may perhaps be the most knowledgeable about Falcon mode based on
> the presentations I've found on the web.
> 
> It seems to me that there is currently no support in U-Boot for using
> Falcon mode where the kernel is separate from the initrd.

If you mind if SPL in Falcon mode loads both kernel and initrd, you're
right. This is not supported. SPL loads only one image.

> I see that
> the 'spl' command is passed the initrd_addr so that it can setup
> atags/fdt (I haven't followed through the code to understand what it
> does with this addr yet) but there is no support in any of the
> common/spl/spl_*.c files for loading anything other than args or
> kernel.

Yes, the command are thought to prepare the setup for the kernel, ATAGS
or DT, but not to load something else.

> 
> Have you had any thoughts on this?

The way to load more as one image in U-Boot should be via the FIT image.
You can have separate kernel and initrd, and by using the mkimage you
can combine them. SPL will still load one single image (I guess some
changes are required to allow Falcon to load a FIT), but it is much more
general and let open to have a Falcon Boot combined with Secure Boot.

> It seems to me a new #define would
> need to be created per storage medium pointing to the offset/sector of
> initrd and used at compile time. Perhaps your thoughts have always
> been that if you want to use an initrd for falcon mode you must always
> build it into the kernel?

Really in most projects I do not use initrd at all and the rootfs is
mounted on a storage (NOR/NAND/..), without a initrd as distros are used
to do. When a initrd is required, my preferences go to build a FIT image
combinining zImage (not anymore uImage), initrd and DT.

Best regards,
Stefano

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

      reply	other threads:[~2015-05-27 15:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-27 15:22 [U-Boot] Falcon mode with initrd Tim Harvey
2015-05-27 15:49 ` Stefano Babic [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=5565E77C.5090505@denx.de \
    --to=sbabic@denx.de \
    --cc=u-boot@lists.denx.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox