Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 33EE8E00CA3; Sun, 28 Feb 2016 00:09:35 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [195.74.38.229 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message Received: from bin-vsp-out-04.atm.binero.net (bin-mail-out-06.binero.net [195.74.38.229]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 357B8E00BBF for ; Sun, 28 Feb 2016 00:09:31 -0800 (PST) X-Halon-ID: 96d0d803-ddf2-11e5-8752-005056917c0c Authorized-sender: petter@technux.se Received: from webmail.binero.se (unknown [195.74.38.9]) by bin-vsp-out-04.atm.binero.net (Halon Mail Gateway) with ESMTPA for ; Sun, 28 Feb 2016 09:09:28 +0100 (CET) MIME-Version: 1.0 Date: Sun, 28 Feb 2016 09:09:33 +0100 From: =?UTF-8?Q?Petter_Mab=C3=A4cker?= To: Organization: Technux Mail-Reply-To: In-Reply-To: <1455099994-7591-1-git-send-email-voxtok@voxtok.com> References: <1455099994-7591-1-git-send-email-voxtok@voxtok.com> Message-ID: X-Sender: petter@technux.se User-Agent: Binero Webmail/0.8.4 Subject: Re: [meta-raspberrypi][PATCH V2] linux-raspberry.inc: add initramfs support X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: petter@technux.se List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Feb 2016 08:09:35 -0000 Content-Type: multipart/alternative; boundary="=_3aaab1d16df763ec0e3895ef23a40b8f" --=_3aaab1d16df763ec0e3895ef23a40b8f Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 5 Petter Mabäcker Technux www.technux.se 2016-02-10 11:26 skrev Stéphane Cerveau: > append initramfs creation to install RPi bootloader trailer > > Signed-off-by: Stéphane Cerveau > --- > recipes-kernel/linux/linux-raspberrypi.inc | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc > index 70e8bfe..74dbf19 100644 > --- a/recipes-kernel/linux/linux-raspberrypi.inc > +++ b/recipes-kernel/linux/linux-raspberrypi.inc > @@ -64,4 +64,13 @@ do_rpiboot_mkimage() { > fi > fi > } > +do_bundle_initramfs_append() { > + if test "x${KERNEL_IMAGETYPE}" != "xuImage" ; then > + if test -n "${KERNEL_DEVICETREE}"; then > + # Add RPi bootloader trailer to kernel image to enable DeviceTree support > + ${STAGING_DIR_NATIVE}/usr/lib/rpi-mkimage/mkknlimg --dtok ${KERNEL_OUTPUT}.initramfs ${KERNEL_OUTPUT}.initramfs > + fi > + fi > +} > + > addtask rpiboot_mkimage before do_install after do_compile > -- > 2.1.4 Hi, You should change the path to mkknlimg to use: ${STAGING_LIBEXECDIR_NATIVE}/mkknlimg See the discussion about this in: https://lists.yoctoproject.org/pipermail/yocto/2016-February/028769.html BR Petter --=_3aaab1d16df763ec0e3895ef23a40b8f Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8

5

 

 

Petter Mabäcker

Technux <petter@technux.se>
www.technux.se

2016-02-10 11:26 skrev Stéphane Cerveau:

append initramfs creation to install RPi bootloader trailer

Signed-off-by: Stéphane Cerveau <voxtok@voxtok.com>
---
 recipes-kernel/linux/linux-raspberrypi.inc | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/li=
nux/linux-raspberrypi.inc
index 70e8bfe..74dbf19 100644
--- a/recipes-kernel/linux/linux-raspberrypi.inc
+++ b/recipes-kernel/linux/linux-raspberrypi.inc
@@ -64,4 +64,13 @@ do_rpiboot_mkimage() {
         fi
     fi
 }
+do_bundle_initramfs_append() {
+    if test "x${KERNEL_IMAGETYPE}" !=3D "xuImage" ; then
+        if test -n "${KERNEL_DEVICETREE}"; then
+            # Add RPi bootloader trailer to kernel image to enable DeviceT=
ree support
+            ${STAGING_DIR_NATIVE}/usr/lib/rpi-mkimage/mkknlimg --dtok ${KE=
RNEL_OUTPUT}.initramfs ${KERNEL_OUTPUT}.initramfs
+        fi
+    fi
+}
+
 addtask rpiboot_mkimage before do_install after do_compile
--=20
2.1.4

Hi,

You should change the path to mkknlimg to use: ${STAGING_LIBEXECDIR_NATI= VE}/mkknlimg

See the discussion about this in: https://lists.yoctoproject.org/piperma= il/yocto/2016-February/028769.html

BR Petter

--=_3aaab1d16df763ec0e3895ef23a40b8f--