All of lore.kernel.org
 help / color / mirror / Atom feed
From: Herve Jourdain <herve.jourdain@neuf.fr>
To: petter@technux.se, 'Alex J Lennon' <ajlennon@gmail.com>
Cc: yocto@yoctoproject.org
Subject: Re: [meta-raspberrypi][PATCH 1/2] linux-raspberrypi: Update kernel to 3.18.16
Date: Tue, 11 Aug 2015 10:47:23 +0200	[thread overview]
Message-ID: <019401d0d412$60069b90$2013d2b0$@neuf.fr> (raw)
In-Reply-To: <fc34ba0543c946b98d8d736ff5e66421@technux.se>

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

Hi Petter,

 

In my patch of mid-june, which was about that, I did this in install_prepend, and it did work.

I therefore believe that adding it in the compile_append should work fine as well.

 

Best regards,

 

Herve

 

From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] On Behalf Of Petter Mabäcker
Sent: mardi 11 août 2015 09:58
To: Alex J Lennon <ajlennon@gmail.com>
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] [meta-raspberrypi][PATCH 1/2] linux-raspberrypi: Update kernel to 3.18.16

 

2015-08-10 13:08 skrev Alex J Lennon:

This requires some changes to KERNEL_DEVICETREE as the dtb
layout has changed to support overlays. This change also
makes us ready to support kernel 4.x series
 
Signed-off-by: Alex J Lennon <ajlennon@dynamicdevices.co.uk <mailto:ajlennon@dynamicdevices.co.uk> >
---
 conf/machine/include/rpi-base.inc              | 22 ++++++++++------------
 recipes-kernel/linux/linux-raspberrypi_3.18.bb |  9 +++++++--
 2 files changed, 17 insertions(+), 14 deletions(-)
 
diff --git a/conf/machine/include/rpi-base.inc b/conf/machine/include/rpi-base.inc
index 1dda207..8caa5ba 100644
--- a/conf/machine/include/rpi-base.inc
+++ b/conf/machine/include/rpi-base.inc
@@ -23,18 +23,16 @@ KERNEL_DEVICETREE ?= " \
     bcm2708-rpi-b-plus.dtb \
     bcm2709-rpi-2-b.dtb \
     \
-    ds1307-rtc-overlay.dtb \
-    hifiberry-amp-overlay.dtb \
-    hifiberry-dac-overlay.dtb \
-    hifiberry-dacplus-overlay.dtb \
-    hifiberry-digi-overlay.dtb \
-    iqaudio-dac-overlay.dtb \
-    iqaudio-dacplus-overlay.dtb \
-    lirc-rpi-overlay.dtb \
-    pcf8523-rtc-overlay.dtb \
-    pps-gpio-overlay.dtb \
-    w1-gpio-overlay.dtb \
-    w1-gpio-pullup-overlay.dtb \
+    overlays/hifiberry-amp-overlay.dtb \
+    overlays/hifiberry-dac-overlay.dtb \
+    overlays/hifiberry-dacplus-overlay.dtb \
+    overlays/hifiberry-digi-overlay.dtb \
+    overlays/iqaudio-dac-overlay.dtb \
+    overlays/iqaudio-dacplus-overlay.dtb \
+    overlays/lirc-rpi-overlay.dtb \
+    overlays/pps-gpio-overlay.dtb \
+    overlays/w1-gpio-overlay.dtb \
+    overlays/w1-gpio-pullup-overlay.dtb \
     "
 KERNEL_IMAGETYPE ?= "Image"
 
diff --git a/recipes-kernel/linux/linux-raspberrypi_3.18.bb b/recipes-kernel/linux/linux-raspberrypi_3.18.bb
index 6d8b155..18c2020 100644
--- a/recipes-kernel/linux/linux-raspberrypi_3.18.bb
+++ b/recipes-kernel/linux/linux-raspberrypi_3.18.bb
@@ -1,6 +1,11 @@
-LINUX_VERSION ?= "3.18.11"
+LINUX_VERSION ?= "3.18.16"
 
-SRCREV = "d64fa8121fca9883d6fb14ca06d2abf66496195e"
+SRCREV = "1bb18c8f721ef674a447f3622273f2e2de7a205c"
 SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.18.y"
 
 require linux-raspberrypi.inc
+
+# Create missing out of tree 'overlays' directory prior to install step
+do_compile_append() {
+  mkdir -p ${B}/arch/arm/boot/dts/overlays
+}
-- 
1.9.1
 

Hi Alex,

At least I get problems during compile step with above change (I'm building for rpi2). So are your sure '${B}/arch/arm/boot/dts/overlays' isn't needed during compile? I tried with changing above from append to prepand instead and then it worked fine for me (when building 3.18 kernel).

(from log.do_compile, complete log can be found at: http://www.technux.se/logs/log.do_compile.4398.fail )

  KSYM    .tmp_kallsyms1.o
  KSYM    .tmp_kallsyms2.o
  LD      vmlinux
  SORTEX  vmlinux
  SYSMAP  System.map
  OBJCOPY arch/arm/boot/Image
  Kernel: arch/arm/boot/Image is ready
NOTE: make -j 4 bcm2708-rpi-b.dtb
  DTC     arch/arm/boot/dts/bcm2708-rpi-b.dtb
NOTE: make -j 4 bcm2708-rpi-b-plus.dtb
  DTC     arch/arm/boot/dts/bcm2708-rpi-b-plus.dtb
NOTE: make -j 4 bcm2709-rpi-2-b.dtb
  DTC     arch/arm/boot/dts/bcm2709-rpi-2-b.dtb
NOTE: make -j 4 overlays/hifiberry-amp-overlay.dtb
  DTC     arch/arm/boot/dts/overlays/hifiberry-amp-overlay.dtb
cc1: fatal error: opening output file arch/arm/boot/dts/overlays/.hifiberry-amp-overlay.dtb.dts.tmp: No such file or directory
compilation terminated.
make[3]: *** [arch/arm/boot/dts/overlays/hifiberry-amp-overlay.dtb] Error 1
make[2]: *** [overlays/hifiberry-amp-overlay.dtb] Error 2
make[1]: *** [sub-make] Error 2
make: *** [__sub-make] Error 2
ERROR: oe_runmake failed
ERROR: Function failed: do_compile (log file is located at /home/epetmab/programming/yocto/alex_test_sstate/tmp/work/raspberrypi2-poky-linux-gnueabi/linux-raspberrypi/3.18.16+git1bb18c8f721ef674a447f3622273f2e2de7a205c-r0/temp/log.do_compile.4398)




BR, Petter


[-- Attachment #2: Type: text/html, Size: 11253 bytes --]

      parent reply	other threads:[~2015-08-11  8:48 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-10 11:08 [meta-raspberrypi][PATCH 1/2] linux-raspberrypi: Update kernel to 3.18.16 Alex J Lennon
2015-08-10 11:08 ` [meta-raspberrypi][PATCH 2/2] linux-raspberrypi: support kernel 4.1.3 Alex J Lennon
2015-08-10 22:20 ` [meta-raspberrypi][PATCH 1/2] linux-raspberrypi: Update kernel to 3.18.16 Andreas Müller
2015-08-11  7:58 ` Petter Mabäcker
2015-08-11  8:31   ` Alex J Lennon
2015-08-11  9:00     ` Petter Mabäcker
2015-08-11  9:03       ` Alex Lennon
2015-08-11 10:34         ` Petter Mabäcker
2015-08-11 11:56           ` Alex J Lennon
2015-08-11 13:10           ` Alex J Lennon
2015-08-11 14:02             ` Petter Mabäcker
2015-08-11 15:00               ` Andreas Müller
2015-08-11  8:47   ` Herve Jourdain [this message]

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='019401d0d412$60069b90$2013d2b0$@neuf.fr' \
    --to=herve.jourdain@neuf.fr \
    --cc=ajlennon@gmail.com \
    --cc=petter@technux.se \
    --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.