All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-raspberrypi][PATCH] u-boot-rpi2: use the upstreamed U-Boot
@ 2016-01-25 21:00 Steve Rae
  2016-01-25 21:32 ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Steve Rae @ 2016-01-25 21:00 UTC (permalink / raw)
  To: yocto

For Raspberry Pi 2, use the U-Boot from "denx".

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



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [meta-raspberrypi][PATCH] u-boot-rpi2: use the upstreamed U-Boot
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2016-01-25 21:32 UTC (permalink / raw)
  To: Steve Rae; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 2376 bytes --]

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 ?


> 
> 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


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [meta-raspberrypi][PATCH] u-boot-rpi2: use the upstreamed U-Boot
  2016-01-25 21:32 ` Khem Raj
@ 2016-01-26  0:32   ` Steve Rae
  2016-04-25  8:33     ` Andrei Gherzan
  0 siblings, 1 reply; 4+ messages in thread
From: Steve Rae @ 2016-01-26  0:32 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto



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
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [meta-raspberrypi][PATCH] u-boot-rpi2: use the upstreamed U-Boot
  2016-01-26  0:32   ` Steve Rae
@ 2016-04-25  8:33     ` Andrei Gherzan
  0 siblings, 0 replies; 4+ messages in thread
From: Andrei Gherzan @ 2016-04-25  8:33 UTC (permalink / raw)
  To: Steve Rae; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 991 bytes --]

Hi Steve,

On Mon, Jan 25, 2016 at 04:32:27PM -0800, Steve Rae wrote:
>
>
> 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

Khem Raj is proposing to use a uboot recipe from oe-core
https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-bsp/u-boot
and extend it with a bbappend to include rpi support. Is that possible?

P.S.: Sorry for this late reply. I'm trying to catch up with some old
threads.

--
Andrei Gherzan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-04-25  8:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2016-04-25  8:33     ` Andrei Gherzan

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.