All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Rae <srae@broadcom.com>
To: Khem Raj <raj.khem@gmail.com>
Cc: yocto@yoctoproject.org
Subject: Re: [meta-raspberrypi][PATCH] u-boot-rpi2: use the upstreamed U-Boot
Date: Mon, 25 Jan 2016 16:32:27 -0800	[thread overview]
Message-ID: <56A6BE9B.9050207@broadcom.com> (raw)
In-Reply-To: <789D469E-10A9-4DC2-9232-2955580421CD@gmail.com>



On 16-01-25 01:32 PM, Khem Raj wrote:
> Hi Steve
>
>> On Jan 25, 2016, at 1:00 PM, Steve Rae <srae@broadcom.com> wrote:
>>
>> For Raspberry Pi 2, use the U-Boot from "den".
>
>
> Can this be done by using/extending OE-Core recipe please ?
>
>

I modelled it after the existing RPi recipe:
         diff recipes-bsp/u-boot/u-boot-rpi_git.bb 
recipes-bsp/u-boot/u-boot-rpi2_git.bb
sorry -- I don't know enough about this to answer your question...
Which recipe should I "extend"? Could you please provide more details?
Thanks in advance, Steve


>>
>> Signed-off-by: Steve Rae <srae@broadcom.com>
>> ---
>> conf/machine/raspberrypi2.conf        |  1 +
>> recipes-bsp/u-boot/u-boot-rpi2_git.bb | 36 +++++++++++++++++++++++++++++++++++
>> 2 files changed, 37 insertions(+)
>> create mode 100644 recipes-bsp/u-boot/u-boot-rpi2_git.bb
>>
>> diff --git a/conf/machine/raspberrypi2.conf b/conf/machine/raspberrypi2.conf
>> index 30edae3..50912c9 100644
>> --- a/conf/machine/raspberrypi2.conf
>> +++ b/conf/machine/raspberrypi2.conf
>> @@ -5,4 +5,5 @@
>> DEFAULTTUNE ?= "cortexa7thf-neon-vfpv4"
>>
>> require conf/machine/include/tune-cortexa7.inc
>> +PREFERRED_PROVIDER_u-boot ?= "u-boot-rpi2"
>> include conf/machine/include/rpi-base.inc
>> diff --git a/recipes-bsp/u-boot/u-boot-rpi2_git.bb b/recipes-bsp/u-boot/u-boot-rpi2_git.bb
>> new file mode 100644
>> index 0000000..ce0d1a0
>> --- /dev/null
>> +++ b/recipes-bsp/u-boot/u-boot-rpi2_git.bb
>> @@ -0,0 +1,36 @@
>> +DESCRIPTION = "U-Boot for Raspberry Pi 2 Model B"
>> +
>> +require recipes-bsp/u-boot/u-boot.inc
>> +
>> +DEPENDS += "rpi-mkimage-native"
>> +
>> +PROVIDES += "u-boot"
>> +
>> +LICENSE = "GPLv2+"
>> +LIC_FILES_CHKSUM = "file://README;md5=587d8d939ae351bb11910921b1eafd42"
>> +
>> +SRCREV = "fa85e826c16b9ce1ad302a57e9c4b24db0d8b930"
>> +SRC_URI = "git://git.denx.de/u-boot.git;branch=master"
>> +
>> +S = "${WORKDIR}/git"
>> +
>> +UBOOT_MACHINE = "rpi2_b"
>> +UBOOT_MAKE_TARGET = "u-boot.bin"
>> +UBOOT_SUFFIX = "img"
>> +
>> +PACKAGE_ARCH = "${MACHINE_ARCH}"
>> +
>> +COMPATIBLE_MACHINE = "raspberrypi2"
>> +
>> +do_compile() {
>> +    oe_runmake mrproper
>> +    oe_runmake rpi_2_defconfig
>> +    oe_runmake CROSS_COMPILE=arm-poky-linux-gnueabi- \
>> +        CC="arm-poky-linux-gnueabi-gcc --sysroot=${PKG_CONFIG_SYSROOT_DIR}"
>> +}
>> +
>> +do_compile_append() {
>> +    # From 'uboot.bin', create 'kernel.img', then rename it to 'u-boot.img'
>> +    ${STAGING_DIR_NATIVE}/usr/lib/rpi-mkimage/imagetool-uncompressed.py u-boot.bin
>> +    mv kernel.img u-boot.img
>> +}
>> --
>> 1.9.1
>>
>> --
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>


  reply	other threads:[~2016-01-26  0:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-25 21:00 [meta-raspberrypi][PATCH] u-boot-rpi2: use the upstreamed U-Boot Steve Rae
2016-01-25 21:32 ` Khem Raj
2016-01-26  0:32   ` Steve Rae [this message]
2016-04-25  8:33     ` Andrei Gherzan

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=56A6BE9B.9050207@broadcom.com \
    --to=srae@broadcom.com \
    --cc=raj.khem@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.