From: Tom Rini <trini@konsulko.com>
To: Jonathan Liu <net147@gmail.com>
Cc: yocto@yoctoproject.org
Subject: Re: [meta-raspberrypi][PATCH v3] u-boot: Simplify boot script
Date: Sat, 5 Nov 2016 13:47:12 -0400 [thread overview]
Message-ID: <20161105174712.GD20830@bill-the-cat> (raw)
In-Reply-To: <20161105015007.17267-1-net147@gmail.com>
On Sat, Nov 05, 2016 at 12:50:07PM +1100, Jonathan Liu wrote:
[snip]
> +++ b/recipes-bsp/u-boot/files/rpi-fdt-addr.patch
> @@ -0,0 +1,77 @@
> +From 0bb380da174f9372a706b5a4914a4c06ad7fbfdf Mon Sep 17 00:00:00 2001
> +From: Jonathan Liu <net147@gmail.com>
> +Date: Sat, 5 Nov 2016 12:43:47 +1100
> +Subject: [PATCH] rpi: Set fdt_addr_r to device tree address from firmware
> +
> +The Raspberry Pi firmware will load a patched device tree blob into
> +memory if a trailer is added to the U-Boot binary indicating it is
> +DT-capable using "mkknlimg --dtok" or if using firmware release 4.4
> +or later and no trailer is present.
> +
> +In this case, U-Boot is executed as if it were the Linux kernel and
> +the r2 register is set to the address of the patched device tree blob
> +in memory. We can check if the blob is loaded by checking for the
> +device tree magic constant 0xedfe0dd0 (little endian equivalent of
> +the big endian 0xd00dfeed constant) at the address stored in r2.
> +If the magic constant is present, the fdt_addr_r variable is set to
> +r2 so that U-Boot scripts can access the patched device tree blob.
> +
> +Upstream-Status: Pending
Please note that upstream we are looking at:
https://patchwork.ozlabs.org/patch/690769/
https://patchwork.ozlabs.org/patch/690770/
--
Tom
next prev parent reply other threads:[~2016-11-05 17:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-05 1:50 [meta-raspberrypi][PATCH v3] u-boot: Simplify boot script Jonathan Liu
2016-11-05 17:47 ` Tom Rini [this message]
2016-11-06 11:57 ` Paul Barker
2016-11-10 1:57 ` Jonathan Liu
2016-11-12 12:42 ` Paul Barker
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=20161105174712.GD20830@bill-the-cat \
--to=trini@konsulko.com \
--cc=net147@gmail.com \
--cc=yocto@yoctoproject.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.