[yocto] [meta-raspberrypi][PATCH v4] u-boot: Simplify boot script

Paul Barker paul at paulbarker.me.uk
Tue Nov 29 12:39:14 PST 2016


On Sun, 27 Nov 2016 17:37:53 +1100
Jonathan Liu <net147 at gmail.com> wrote:

> A patch is backported to check if the firmware loaded a device tree blob
> into memory and set the fdt_addr variable if it is found. The U-Boot
> script will then read the command line arguments generated by the
> firmware from the device tree and boot the kernel with the command
> line arguments and the loaded device tree.
> 
> This allows things like MAC address, board revision and serial number
> to be correctly configured and options in config.txt to be used.
> 
> Signed-off-by: Jonathan Liu <net147 at gmail.com>
> ---
> Changes in v4:
>  - Backport patch from upstream instead of using own patch

I had to make a few additional changes on top of this patch to get a
successful compile with u-boot v2016.03. These changes can be seen here:

https://gitlab.com/pbarker/meta-raspberrypi/commit/f880569e62d431cbead1555cf6c47342fe79c969

After those changes though, everything worked as expected on both an
original rpi B+ and an rpi3.

Does your patch work cleanly on a later version of u-boot? I know
oe-core is likely to upgrade to v2016.11 any day now. We could either
apply the changes I've linked to above or hold off until v2016.11 is
merged to oe-core if that's what you've tested with.

Thanks,
Paul



More information about the yocto mailing list