From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] ARM: rpi: update memory layout env. var. documentation
Date: Sat, 6 Feb 2016 09:36:13 -0700 [thread overview]
Message-ID: <56B620FD.8010005@wwwdotorg.org> (raw)
In-Reply-To: <CANwerB0fsOOjRan8+m68etH5o6W6YfO_ix2TtxnD+7rK=Nf8vg@mail.gmail.com>
On 02/06/2016 12:30 AM, Jonathan Liu wrote:
> Hi Stephen,
>
> I actually read the DT loaded by RPi's binary firmware on an RPi 2 in a
> U-Boot script:
> fdt addr ${fdt_addr_r} && fdt get value bootargs /chosen bootargs
> fatload mmc 0:1 ${kernel_addr_r} uImage
> bootm ${kernel_addr_r} - ${fdt_addr_r}
>
> Essentially this loads the kernel with the same arguments and DT that
> RPi's binary firmware would have used if it booted the kernel directly
> with device tree support. This allows for the normal patching of the
> kernel arguments and device tree to be done by the RPi binary firmware
> so that things like reading the serial number in /proc/cpuinfo works.
>
> A trailer is added to u-boot.bin with "mkknlimg --dtok u-boot.bin
> u-boot.bin" for the FW to enable device tree support and load the
> patched device tree to 0x00000100.
>
> So I am not sure about the comment that the DT loaded by the FW is
> typically ignored by U-Boot scripts.
This is a very unusual use-case. Typically the reason for using U-Boot
in the first place is so that U-Boot has full control over the kernel,
DT, and command-line. This way, users can configure all these aspects
the exact same way on an RPi running U-Boot as on any other system
running U-Boot. Mixing configuration between config.txt and the
scripts/config-files that U-Boot reads/executes isn't typical, since it
involves board-specific config file. As such, I believe the comment is
correct for the common case, and already admits that other cases are
possible.
next prev parent reply other threads:[~2016-02-06 16:36 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-06 5:45 [U-Boot] [PATCH 1/2] ARM: rpi: update memory layout env. var. documentation Stephen Warren
2016-02-06 5:45 ` [U-Boot] [PATCH 2/2] ARM: rpi: set fdt_high in the default environment Stephen Warren
2016-02-08 20:50 ` [U-Boot] [U-Boot, " Tom Rini
2016-02-06 7:30 ` [U-Boot] [PATCH 1/2] ARM: rpi: update memory layout env. var. documentation Jonathan Liu
2016-02-06 16:36 ` Stephen Warren [this message]
2016-02-06 20:48 ` Jonathan Liu
2016-02-08 20:50 ` [U-Boot] [U-Boot, " Tom Rini
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=56B620FD.8010005@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--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.