From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/2] Add README for the "Falcon" mode
Date: Wed, 14 Nov 2012 13:19:30 +0100 [thread overview]
Message-ID: <50A38C52.7080909@denx.de> (raw)
In-Reply-To: <CAP9ODKogHFSOYe9OScxH6MA0orQZs4CJN5aFb0Dz0+QQwyku9g@mail.gmail.com>
On 14/11/2012 11:29, Otavio Salvador wrote:
>
>
Hi Otavio,
>
> In the text you have the offset to save the image onto a NAND offset so
> I fail to see how it'd be used for SD-Card.
>
> Can you elaborate it a bit?
No, I can't without introducing errors. Current code supports Falcon
only booting from NAND - I do not think that it is a big thing to use
another media, but it is not yet done. This document must
> +and can be generalized seen as a way to start an image performing
> the minimum
> +required initialization. SPL initializes mainly the RAM controller,
> and after
> +that copies U-Boot image into the memory. The "Falcon" mode extends
> this way
> +allowing to start the Linux kernel directly from SPL. A new command
> is added
> +to U-Boot to prepare the parameters that SPL must pass to the
> kernel, using
> +ATAGS or Device Tree.
> +
> +Falcon adds a command under U-Boot to reuse all code responsible to
> prepare
> +the interface with the kernel. In usual U-boot systems, these
> parameters are
> +generated each time before loading the kernel, passing to Linux the
> address
> +in memory where the parameters can be read.
> +With falcon, this snapshot can be saved into persistent storage and
> SPL is
> +informed to load it before running the kernel.
>
>
> You mix Falcon and falcon.
You're right, there are already comments about this. This will be fixed
globally in V3 (I will use Falcon Mode consistently).
> I'd say you always use Falcon as it is the
> name of the feature so it ought to be in upper case. Another thing,
> 'With falcon, ' ought to be move to the previous line or have an empty
> line before it.
Ok
>
>
> +To boot the kernel, these steps under a Falcon-aware U-Boot are
> required:
> +
> +1. Boot the board into U-Boot.
> +Use the "spl export" command to generate the kernel parameters area
> or the DT.
> +U-boot runs as when it boots the kernel, but stops before passing
> the control
> +to the kernel.
> +
> +2. Saves the prepared snapshot into persistent media.
> +The address where to save it must be configured into board
> configuration
> +file (CONFIG_CMD_SPL_NAND_OFS for NAND).
>
>
> And for others?
Not yet implemented, patches welcome ! But you are right, there is
already a patch to use a NOR flash that should flow soon into mainline.
I will check and add documentation for it. For the orher media, the
document must be updated together when they will be full supported.
>
>
> +3. Boot the board into "Falcon" mode. SPL will load the kernel and copy
> +the parameters area to the required address.
> +
> +It is required to implement a custom mechanism to select if SPL
> loads U-Boot
> +or another image.
> +The value of a GPIO is a simple way to operate the selection, as
> well as
> +reading a character from the SPL console if CONFIG_SPL_CONSOLE is set.
>
>
> An empty line before "The value"?
Ok
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
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
=====================================================================
next prev parent reply other threads:[~2012-11-14 12:19 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-12 10:59 [U-Boot] [PATCH] Add README for the "Falcon" mode Stefano Babic
2012-11-12 11:35 ` Andreas Bießmann
2012-11-12 13:02 ` Stefano Babic
2012-11-12 13:33 ` Andreas Bießmann
2012-11-13 11:11 ` [U-Boot] [PATCH v2 1/2] " Stefano Babic
2012-11-13 11:11 ` [U-Boot] [PATCH v2 2/2] OMAP3: drop CONFIG_SPL_OS_BOOT_KEY and use local define Stefano Babic
2012-11-13 13:54 ` Thomas Weber
2012-11-13 13:13 ` [U-Boot] [PATCH v2 1/2] Add README for the "Falcon" mode Thomas Weber
2012-11-13 15:55 ` Andreas Bießmann
2012-11-13 17:08 ` Stefano Babic
2012-11-14 10:29 ` Otavio Salvador
2012-11-14 12:19 ` Stefano Babic [this message]
2012-11-14 12:22 ` Otavio Salvador
2012-11-19 9:11 ` [U-Boot] [PATCH v3 1/3] " Stefano Babic
2012-11-19 9:11 ` [U-Boot] [PATCH v3 2/3] OMAP3: drop CONFIG_SPL_OS_BOOT_KEY and use local define Stefano Babic
2012-11-19 9:11 ` [U-Boot] [PATCH v3 3/3] SPL: Change description for spl command Stefano Babic
2012-11-19 10:17 ` Andreas Bießmann
2012-11-19 10:14 ` [U-Boot] [PATCH v3 1/3] Add README for the "Falcon" mode Otavio Salvador
2012-11-19 10:36 ` Stefano Babic
2012-11-19 10:21 ` Andreas Bießmann
2012-11-19 10:37 ` Stefano Babic
2012-11-23 15:31 ` [U-Boot] [PATCH v4 " Stefano Babic
2012-11-23 15:31 ` [U-Boot] [PATCH v4 2/3] OMAP3: drop CONFIG_SPL_OS_BOOT_KEY and use local define Stefano Babic
2012-11-23 15:31 ` [U-Boot] [PATCH v4 3/3] SPL: Change description for spl command Stefano Babic
2012-11-23 18:10 ` [U-Boot] [PATCH v4 1/3] Add README for the "Falcon" mode Vikram Narayanan
2012-11-23 21:59 ` Andreas Bießmann
2012-11-25 3:47 ` Vikram Narayanan
2012-11-24 14:18 ` Stefano Babic
2013-02-11 21:12 ` [U-Boot] [PATCH] " Otavio Salvador
2013-02-12 8:23 ` Stefano Babic
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=50A38C52.7080909@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 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.