[yocto] [meta-raspberrypi][PATCH v4] u-boot: Simplify boot script
net147 at gmail.com
Tue Nov 29 15:14:01 PST 2016
On 30 November 2016 at 07:39, Paul Barker <paul at paulbarker.me.uk> wrote:
> 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:
> 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.
Yes, my patch applies cleanly to v2016.11 as well. I only tested with
Raspberry Pi 3 as I didn't have a Raspberry Pi 2 around at the time.
The upstream commits landed in master after v2016.11 so backports will be
needed until at least v2017.01.
Are you able to squash your changes into this patch and submit a v5 with
your Signed-off-by tag?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the yocto