[yocto] No '/lib/modules' directory in image, modprobe fails
Hello, We're trying to load and unload modules using modprobe but are having problems. The command fails with modprobe: can't change directory to '/lib/modules': no such file or directory. There is actually no /lib/modules directory on the image at all. We tried to install the linux-libc-headers package but it failed and I think the reason is we are using the 3.14 kernel and the package is 3.19. Any help would be appreciated! Thanks, Todd -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Header-Files of DEPEND recipe not found
But not within CMakeLists.txt? At least this is not working, cmake is handling = as a normal character. I guess I have to pass a parameter within my *.bb to cmake containing the sysroot path 2015-08-10 22:36 GMT+02:00 Khem Raj raj.k...@gmail.com: On Mon, Aug 10, 2015 at 12:08 PM, yocto yocto yoctomailingl...@gmail.com wrote: SET(SOCI_INCLUDEDIR /home/my-PC/development/2015-08-04_edison-src/edison-src/build/tmp/sysroots/edison/usr/include/soci) everything worked fine. Is there any way to get the path /home/my-PC/development/2015-08-04_edison-src/edison-src/build/tmp/sysroots/edison/ within CMakeLists.txt automatically? you can use =/usr/include/soci which will prepend sysroot automatically. -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] Iotivity 0.9.2 for yocto
Hi, When will we expect the iotivity-0.9.2 came into the meta-oic layer. Could you please tell me the approximate date. Thanks and Regards, Raghavendra K. -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] Header-Files of DEPEND recipe not found
Maybe this is of interest, here is my solution: In CMakeLists.txt SET(BITBAKE_SYSROOT CACHE STRING Description) SET(SOCI_INCLUDEDIR ${BITBAKE_SYSROOT}/usr/include/soci) So if BITBAKE_SYSROOT is not passed the compiler takes /usr/include/soci as usual. My *.bb contains: EXTRA_OECMAKE = -DBITBAKE_SYSROOT:STRING=${STAGING_DIR_HOST} So when using bitbake the appropriate prefix will be added. 2015-08-11 8:36 GMT+02:00 yocto yocto yoctomailingl...@gmail.com: But not within CMakeLists.txt? At least this is not working, cmake is handling = as a normal character. I guess I have to pass a parameter within my *.bb to cmake containing the sysroot path 2015-08-10 22:36 GMT+02:00 Khem Raj raj.k...@gmail.com: On Mon, Aug 10, 2015 at 12:08 PM, yocto yocto yoctomailingl...@gmail.com wrote: SET(SOCI_INCLUDEDIR /home/my-PC/development/2015-08-04_edison-src/edison-src/build/tmp/sysroots/edison/usr/include/soci) everything worked fine. Is there any way to get the path /home/my-PC/development/2015-08-04_edison-src/edison-src/build/tmp/sysroots/edison/ within CMakeLists.txt automatically? you can use =/usr/include/soci which will prepend sysroot automatically. -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] [meta-darwin][PATCH] README: steps to create OSX-sdk.zip
On 08/10/15 19:02, Juro Bystricky wrote: osx-runtime requires the file OSX-sdk.zip. This file must be created by the user. This patch describes the typical steps to create this file using a Mac computer. Signed-off-by: Juro Bystricky juro.bystri...@intel.com Excellent, thanks for the update! -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
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 ajlen...@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 -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] [meta-raspberrypi][PATCH 1/2] linux-raspberrypi: Update kernel to 3.18.16
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-boun...@yoctoproject.org [mailto:yocto-boun...@yoctoproject.org] On Behalf Of Petter Mabäcker Sent: mardi 11 août 2015 09:58 To: Alex J Lennon ajlen...@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 ajlen...@dynamicdevices.co.uk mailto:ajlen...@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 -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] [meta-raspberrypi][PATCH 1/2] linux-raspberrypi: Update kernel to 3.18.16
On 11/08/2015 08:58, Petter Mabäcker wrote: 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 ajlen...@dynamicdevices.co.uk mailto:ajlen...@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 Hi Petter, Thanks for testing that out. That is indeed exactly what I was seeing before I added the directory creation. I did do the following test for both 3.18.x and 4.1.3 kernels (rpi2) bitbake -f -c cleansstate virtual/kernel bitbake -f virtual/kernel I've just re-run that again here and it works for me as-is. I thought cleansstate was causing me to build from scratch so I'm unclear as to why I'm not seeing the problem... NB. I'd also add that for preference I'd like to see the kernel build Makefile patched with whatever is in 4.1 to create that needed overlays directory but I've had a look and can't spot it. Cheers, Alex -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] [meta-raspberrypi][PATCH 1/2] linux-raspberrypi: Update kernel to 3.18.16
On Tuesday, August 11, 2015, Petter Mabäcker pet...@technux.se wrote: 2015-08-11 10:31 skrev Alex J Lennon: On 11/08/2015 08:58, Petter Mabäcker wrote: 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 ajlen...@dynamicdevices.co.uk javascript:_e(%7B%7D,'cvml','ajlen...@dynamicdevices.co.uk'); mailto: ajlen...@dynamicdevices.co.uk javascript:_e(%7B%7D,'cvml','ajlen...@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 Hi Petter, Thanks for testing that out. That is indeed exactly what I was seeing before I added the directory creation. I did do the following test for both 3.18.x and 4.1.3 kernels (rpi2) bitbake -f -c cleansstate virtual/kernel bitbake -f virtual/kernel I've just re-run that again here and it works for me as-is. I thought cleansstate was causing me to build from scratch so I'm unclear as to why I'm not seeing the problem... NB. I'd also add that for preference I'd like to see the kernel build Makefile patched with whatever is in 4.1 to create that needed overlays directory but I've had a look and can't spot it. Cheers, Alex Hmm Ok, might be some pebcak from my side, since I was using an old sstate, but according to my history I did 'cleanall' before I got the problem. But will re-try this on a completely new build without any old savings (it will take some time to test however..). What
[linux-yocto] [PATCH 00/17] [linux-yocto-3.10] standard/base: Backport Baytrail bug fixes patches from mainline kernel into Yocto Project linux kernel v3.10
From: Ng, Wei Tee wei.tee...@intel.com Hi all, This patch is to backport Baytrail bug fixes patches that are available in the upstream kernel into Yocto Project linux kernel v3.10. These bug fixes patches are related to I/O driver such as GPIO, USB and DMA. This configuration was buit and tested working on Minnowboard Max platform. Please review and provide feedback if any. This patch is target for linux-yocto-3.10 on standard/base branch. Thanks, Regards, Wei Tee The following changes since commit e94c994f434ecf4f6e2c5398388f4fb733e93fc8: ALSA: hda - add codec ID for Valleyview2 display codec (2015-07-08 10:25:39 -0400) are available in the git repository at: git://git.yoctoproject.org/linux-yocto-contrib ngweitee/standard-base-dev http://git.yoctoproject.org/cgit.cgi/linux-yocto-contrib/log/?h=ngweitee/standard-base-dev Al Cooper (1): usb: Add Device Tree support to XHCI Platform driver Andy Shevchenko (1): dmaengine: dw: move dw_dmac.h to where it belongs to David Cohen (1): pinctrl: baytrail: show output gpio state correctly on Intel Baytrail Oliver Neukum (1): xhci: quirk for extra long delay for S4 Sarah Sharp (1): xhci: Don't enable/disable RWE on bus suspend/resume. Takashi Iwai (1): xhci: Fix spurious wakeups after S5 on Haswell Vikas Sajjan (1): usb: xhci: add the suspend/resume functionality Xenia Ragiadakou (10): xhci: add traces for debug messages in xhci_address_device() xhci: add trace for debug messages related to changing contexts xhci: add trace for debug messages related to quirks xhci: add trace for debug messages related to endpoint reset xhci: add xhci_address_ctx trace event xhci: add xhci_cmd_completion trace event xhci: trace debug statements for urb cancellation xhci: trace debug messages related to driver initialization and unload xhci: fix dma mask setup in xhci.c xhci: replace xhci_readl() with readl() Documentation/devicetree/bindings/usb/usb-xhci.txt | 14 MAINTAINERS|2 +- arch/avr32/mach-at32ap/at32ap700x.c|2 +- arch/avr32/mach-at32ap/include/mach/atmel-mci.h|2 +- drivers/dma/dw/internal.h |2 +- drivers/dma/dw/regs.h |6 +- drivers/pinctrl/pinctrl-baytrail.c |2 +- drivers/usb/host/Makefile |4 drivers/usb/host/xhci-dbg.c| 50 +-- drivers/usb/host/xhci-hub.c| 104 +++--- drivers/usb/host/xhci-mem.c| 134 +--- drivers/usb/host/xhci-pci.c| 39 ++- drivers/usb/host/xhci-plat.c | 46 +++ drivers/usb/host/xhci-ring.c | 97 -- drivers/usb/host/xhci-trace.c | 15 drivers/usb/host/xhci-trace.h | 146 + drivers/usb/host/xhci.c| 339 drivers/usb/host/xhci.h|9 +- .../linux/{dw_dmac.h = platform_data/dma-dw.h}|0 include/sound/atmel-abdac.h|2 +- include/sound/atmel-ac97c.h|2 +- sound/atmel/abdac.c|2 +- sound/atmel/ac97c.c|2 +- 23 files changed, 693 insertions(+), 328 deletions(-) create mode 100644 Documentation/devicetree/bindings/usb/usb-xhci.txt create mode 100644 drivers/usb/host/xhci-trace.c create mode 100644 drivers/usb/host/xhci-trace.h rename include/linux/{dw_dmac.h = platform_data/dma-dw.h} (100%) -- 1.7.9.5 -- ___ linux-yocto mailing list linux-yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/linux-yocto
Re: [yocto] [meta-raspberrypi][PATCH 1/2] linux-raspberrypi: Update kernel to 3.18.16
2015-08-11 11:03 skrev Alex Lennon: On Tuesday, August 11, 2015, Petter Mabäcker pet...@technux.se wrote: 2015-08-11 10:31 skrev Alex J Lennon: On 11/08/2015 08:58, Petter Mabäcker wrote: 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 ajlen...@dynamicdevices.co.uk mailto:ajlen...@dynamicdevices.co.uk --- conf/machine/include/rpi-base.inc | 22 ++ recipes-kernel/linux/linux-raspberrypi_3.18.bb [1] | 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 [1] b/recipes-kernel/linux/linux-raspberrypi_3.18.bb [1] index 6d8b155..18c2020 100644 --- a/recipes-kernel/linux/linux-raspberrypi_3.18.bb [1] +++ b/recipes-kernel/linux/linux-raspberrypi_3.18.bb [1] @@ -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 [2] 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 [3] ) 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 Hi Petter, Thanks for testing that out. That is indeed exactly what I was seeing before I added the directory creation. I did do the following test for both 3.18.x and 4.1.3 kernels (rpi2) bitbake -f -c cleansstate virtual/kernel bitbake -f virtual/kernel I've just re-run that again here and it works for me as-is. I thought cleansstate was causing me to build from scratch so I'm unclear as to why I'm not seeing the problem... NB. I'd also add that for preference I'd like to see the kernel build Makefile patched with whatever is in 4.1 to create that needed overlays directory but I've had a look and can't spot it. Cheers, Alex Hmm Ok, might be some pebcak from my side, since I was using an old sstate, but according to my history I did 'cleanall' before I got the problem. But will re-try this on a completely new build without any old savings (it will take some time to test however..). What struck me was that the failure occurred in do_compile (from what I can tell the failure in my logs occur before your _append had been able to do anything about
[yocto] [meta-raspberrypi][PATCH v2 1/2] linux-raspberrypi: Update kernel to 3.18.16
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 ajlen...@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..a1fe6b4 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_prepend() { + mkdir -p ${B}/arch/arm/boot/dts/overlays +} -- 1.9.1 -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] [meta-raspberrypi][PATCH v2 2/2] linux-raspberrypi: support kernel 4.1.3
Signed-off-by: Alex J Lennon ajlen...@dynamicdevices.co.uk --- recipes-kernel/linux/linux-raspberrypi_4.1.bb | 6 ++ 1 file changed, 6 insertions(+) create mode 100644 recipes-kernel/linux/linux-raspberrypi_4.1.bb diff --git a/recipes-kernel/linux/linux-raspberrypi_4.1.bb b/recipes-kernel/linux/linux-raspberrypi_4.1.bb new file mode 100644 index 000..637c5b2 --- /dev/null +++ b/recipes-kernel/linux/linux-raspberrypi_4.1.bb @@ -0,0 +1,6 @@ +LINUX_VERSION ?= 4.1.3 + +SRCREV = 2a2dc4e5e4946e75b98c71eacc3660e913dbd302 +SRC_URI = git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.1.y + +require linux-raspberrypi.inc -- 1.9.1 -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] [meta-raspberrypi][PATCH v2 1/2] linux-raspberrypi: Update kernel to 3.18.16
2015-08-11 14:30 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 ajlen...@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..a1fe6b4 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_prepend() { + mkdir -p ${B}/arch/arm/boot/dts/overlays +} -- 1.9.1 One very minor comment, update the comment .. prior to install step to something like .. prior to compile step instead :) Perhaps Andrei can fix that during merge, since at least I see no need for a v3 for this :) BR Petter -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] [meta-selinux][PATCH v1] libpam: use wildcard for version and cleanup
Hi Philip, On Tue, Aug 11, 2015 at 10:39 AM, Philip Tricca fl...@twobit.us wrote: Hey Shrikant, On 07/30/2015 02:31 AM, Shrikant Bobade wrote: This patch provides green build for core-image-selinux (meta-selinux:master poky:master) against libpam upgrade from 1.1.6 to 1.2.1, image boots fine,but I am unable to login at target. I have prepared build for qemuarm, does anyone else facing similar issue? please advice. Observed the login issue appears even with disabled selinux support (selinux=0). I just tested this again after Joe merged the commits from the backlog. I'm not longer able to reproduce the failed login. Are you still having login problems? I also got similar results: With the check on latest bits: the login issue is not reproducible on core-image-selinux(with poky-selinux distro) I can now login properly. Build Configuration: BB_VERSION= 1.27.1 BUILD_SYS = x86_64-linux NATIVELSBSTRING = Ubuntu-12.04 TARGET_SYS= arm-poky-linux-gnueabi MACHINE = qemuarm DISTRO= poky-selinux DISTRO_VERSION= 1.8+snapshot-20150811 TUNE_FEATURES = arm armv5 thumb dsp TARGET_FPU= soft meta meta-yocto meta-yocto-bsp= master:a16e0b4014173af46ef80d643bb71055219b0dab meta-selinux = master:684ee9401f33db7c9d5b183988d89c688c9dd0be Thanks! Shrikant Philip On Thu, Jul 30, 2015 at 2:55 PM, Shrikant Bobade bobadeshrik...@gmail.com mailto:bobadeshrik...@gmail.com wrote: From: Shrikant Bobade shrikant_bob...@mentor.com mailto:shrikant_bob...@mentor.com use wildcard for version: adopting libpam upgrade from 1.1.6 to 1.2.1, cleanup older recipe and remove patch sepermit-add-DESTDIR-prefix.patch since the changes already available with latest source. Signed-off-by: Shrikant Bobade shrikant_bob...@mentor.com mailto:shrikant_bob...@mentor.com --- .../pam/libpam/sepermit-add-DESTDIR-prefix.patch | 31 recipes-extended/pam/libpam_%.bbappend |3 ++ recipes-extended/pam/libpam_1.1.6.bbappend | 10 --- 3 files changed, 3 insertions(+), 41 deletions(-) delete mode 100644 recipes-extended/pam/libpam/sepermit-add-DESTDIR-prefix.patch create mode 100644 recipes-extended/pam/libpam_%.bbappend delete mode 100644 recipes-extended/pam/libpam_1.1.6.bbappend diff --git a/recipes-extended/pam/libpam/sepermit-add-DESTDIR-prefix.patch b/recipes-extended/pam/libpam/sepermit-add-DESTDIR-prefix.patch deleted file mode 100644 index d48d386..000 --- a/recipes-extended/pam/libpam/sepermit-add-DESTDIR-prefix.patch +++ /dev/null @@ -1,31 +0,0 @@ -Subject: [PATCH] libpam: add missing DESTDIR prefix - -The DESTDIR prefix is missing, this will cause build failures for -mkdir /var/run/sepermit on the host. - -| mkdir -p /var/run/sepermit -| mkdir: cannot create directory `/var/run/sepermit': Permission denied - -Upstream-Status: Pending - -Signed-off-by: Xin Ouyang xin.ouy...@windriver.com mailto:xin.ouy...@windriver.com - modules/pam_sepermit/Makefile.am |2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) - -diff --git a/modules/pam_sepermit/Makefile.am b/modules/pam_sepermit/Makefile.am -index cfc5594..bc82275 100644 a/modules/pam_sepermit/Makefile.am -+++ b/modules/pam_sepermit/Makefile.am -@@ -35,7 +35,7 @@ if HAVE_LIBSELINUX - securelib_LTLIBRARIES = pam_sepermit.la http://pam_sepermit.la - - install-data-local: -- mkdir -p $(sepermitlockdir) -+ mkdir -p $(DESTDIR)$(sepermitlockdir) - endif - if ENABLE_REGENERATE_MAN - noinst_DATA = README pam_sepermit.8 sepermit.conf.5 --- -1.7.5.4 - diff --git a/recipes-extended/pam/libpam_%.bbappend b/recipes-extended/pam/libpam_%.bbappend new file mode 100644 index 000..adcf938 --- /dev/null +++ b/recipes-extended/pam/libpam_%.bbappend @@ -0,0 +1,3 @@ +inherit enable-selinux + +RDEPENDS_${PN}-runtime += ${@target_selinux(d, 'pam-plugin-selinux')} diff --git a/recipes-extended/pam/libpam_1.1.6.bbappend b/recipes-extended/pam/libpam_1.1.6.bbappend deleted file mode 100644 index 71acecc..000 --- a/recipes-extended/pam/libpam_1.1.6.bbappend +++ /dev/null @@ -1,10 +0,0 @@ -#FILESEXTRAPATHS_prepend := ${THISDIR}/${PN}: -FILESPATH_append := :${@base_set_filespath(['${THISDIR}/${PN}'], d)} - -SRC_URI += file://sepermit-add-DESTDIR-prefix.patch - -PR .= .4 - -inherit enable-selinux - -RDEPENDS_${PN}-runtime += ${@target_selinux(d, 'pam-plugin-selinux')} -- 1.7.9.5
Re: [yocto] [meta-raspberrypi][PATCH 1/2] linux-raspberrypi: Update kernel to 3.18.16
On 11/08/2015 11:34, Petter Mabäcker wrote: 2015-08-11 11:03 skrev Alex Lennon: On Tuesday, August 11, 2015, Petter Mabäcker pet...@technux.se mailto:pet...@technux.se wrote: 2015-08-11 10:31 skrev Alex J Lennon: On 11/08/2015 08:58, Petter Mabäcker wrote: 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 ajlen...@dynamicdevices.co.uk mailto:ajlen...@dynamicdevices.co.uk --- conf/machine/include/rpi-base.inc | 22 ++ recipes-kernel/linux/linux-raspberrypi_3.18.bb http://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 http://linux-raspberrypi_3.18.bb b/recipes-kernel/linux/linux-raspberrypi_3.18.bb http://linux-raspberrypi_3.18.bb index 6d8b155..18c2020 100644 --- a/recipes-kernel/linux/linux-raspberrypi_3.18.bb http://linux-raspberrypi_3.18.bb +++ b/recipes-kernel/linux/linux-raspberrypi_3.18.bb http://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 http://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
Re: [yocto] Specifying location of DTB file
Hi Adam, On 08/11/2015 04:31 PM, Adam Rossi wrote: Howdy folks. I have had a devil of a time creating my own machine.conf and getting it to boot, so I went back to using the stock beaglebone.conf machine. I need to modify the DTB file that my prototype loads, so I decompiled the yocto am335x-boneblack.dtb, added some special sauce to the dts, and added the following to a linux-yocto_3.19.bbappend recipe: FILESEXTRAPATHS_prepend := ${THISDIR}/files: SRC_URI +=file://touchscreen.cfg \ file://special-am335x-boneblack.dts do_install_prepend() { cp ${WORKDIR}/special-am335x-boneblack.dts ${S}/arch/${ARCH}/boot/dts/ } KERNEL_DEVICETREE_beaglebone = special-am335x-boneblack.dtb This works, I get a special-am335x-boneblack.dtb in my image. However, on booting the files on my beagle bone, I get an error that the system cannot find the boot/am335x-boneblack.dtb file. Creating a symlink to my special-am335x-boneblack.dtb solves the problem. Where does the system configure the directions to look for am335x-boneblack.dtb? I suspect this is because the stock beaglebone.conf file also has a KERNEL_DEVICETREE=am335x-boneblack.dtb. Perhaps my kernel recipe is only partly overriding this? Thanks for your continuing help. Regards, Adam The only component responsible for looking the DTB during boot is the bootloader (usually U-Boot). If you break the boot sequence and type printenv, you can look at the contents of bootcmd variable and see which other scripts/vars it uses, in order to see how the bootloader tries to load the DT. If/when you do some modifications to the default U-Boot environment, you can generate a patch to your U-Boot source code and add this patch to your machine-specific U-Boot, so you can have the changes integrated in your next system build. Regards, Nikolay -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] [meta-raspberrypi][PATCH 1/2] linux-raspberrypi: Update kernel to 3.18.16
2015-08-11 15:10 skrev Alex J Lennon: On 11/08/2015 11:34, Petter Mabäcker wrote: 2015-08-11 11:03 skrev Alex Lennon: On Tuesday, August 11, 2015, Petter Mabäcker pet...@technux.se wrote: 2015-08-11 10:31 skrev Alex J Lennon: On 11/08/2015 08:58, Petter Mabäcker wrote: 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 ajlen...@dynamicdevices.co.uk mailto:ajlen...@dynamicdevices.co.uk --- conf/machine/include/rpi-base.inc | 22 ++ recipes-kernel/linux/linux-raspberrypi_3.18.bb [1] | 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 [1] b/recipes-kernel/linux/linux-raspberrypi_3.18.bb [1] index 6d8b155..18c2020 100644 --- a/recipes-kernel/linux/linux-raspberrypi_3.18.bb [1] +++ b/recipes-kernel/linux/linux-raspberrypi_3.18.bb [1] @@ -1,6 +1,11 @@ -LINUX_VERSION ?= 3.18.11 +LINUX_VERSION ?= 3.18.16 -SRCREV = d64fa8121fca9883d6fb14ca06d2abf66496195e +SRCREV = 1bb18c8f721ef674a447f3622273f2e2de7a205c SRC_URI = git:// [2]github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.18.y [3] 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 [4] ) 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 Hi Petter, Thanks for testing that out. That is indeed exactly what I was seeing before I added the directory creation. I did do the following test for both 3.18.x and 4.1.3 kernels (rpi2) bitbake -f -c cleansstate virtual/kernel bitbake -f virtual/kernel I've just re-run that again here and it works for me as-is. I thought cleansstate was causing me to build from scratch so I'm unclear as to why I'm not seeing the problem... NB. I'd also add that for preference I'd like to see the kernel build Makefile patched with whatever is in 4.1 to create that needed overlays directory but I've had a look and can't spot it. Cheers, Alex Hmm Ok, might be some pebcak from my side, since I was using an old sstate, but according to my history I did 'cleanall' before I got the problem. But will re-try this on a completely new build without any old savings (it will take some time to test however..). What struck me was that the failure occurred in do_compile (from
[yocto] Specifying location of DTB file
Howdy folks. I have had a devil of a time creating my own machine.conf and getting it to boot, so I went back to using the stock beaglebone.conf machine. I need to modify the DTB file that my prototype loads, so I decompiled the yocto am335x-boneblack.dtb, added some special sauce to the dts, and added the following to a linux-yocto_3.19.bbappend recipe: FILESEXTRAPATHS_prepend := ${THISDIR}/files: SRC_URI +=file://touchscreen.cfg \ file://special-am335x-boneblack.dts do_install_prepend() { cp ${WORKDIR}/special-am335x-boneblack.dts ${S}/arch/${ARCH}/boot/dts/ } KERNEL_DEVICETREE_beaglebone = special-am335x-boneblack.dtb This works, I get a special-am335x-boneblack.dtb in my image. However, on booting the files on my beagle bone, I get an error that the system cannot find the boot/am335x-boneblack.dtb file. Creating a symlink to my special-am335x-boneblack.dtb solves the problem. Where does the system configure the directions to look for am335x-boneblack.dtb? I suspect this is because the stock beaglebone.conf file also has a KERNEL_DEVICETREE=am335x-boneblack.dtb. Perhaps my kernel recipe is only partly overriding this? Thanks for your continuing help. Regards, Adam -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] [meta-selinux][PATCH v1] libpam: use wildcard for version and cleanup
[Re: [yocto] [meta-selinux][PATCH v1] libpam: use wildcard for version and cleanup] On 15.08.11 (Tue 16:39) Shrikant Bobade wrote: Hi Philip, On Tue, Aug 11, 2015 at 10:39 AM, Philip Tricca fl...@twobit.us wrote: Hey Shrikant, On 07/30/2015 02:31 AM, Shrikant Bobade wrote: This patch provides green build for core-image-selinux (meta-selinux:master poky:master) against libpam upgrade from 1.1.6 to 1.2.1, image boots fine,but I am unable to login at target. I have prepared build for qemuarm, does anyone else facing similar issue? please advice. Observed the login issue appears even with disabled selinux support (selinux=0). I just tested this again after Joe merged the commits from the backlog. I'm not longer able to reproduce the failed login. Are you still having login problems? I also got similar results: With the check on latest bits: the login issue is not reproducible on core-image-selinux(with poky-selinux distro) I can now login properly. I'm glad to hear that, guys, because I wasn't able to reproduce the login problem on my setup and was thinking I needed to spend time in the next couple of days hunting down what's polluting my environment that I was getting different results than you. :-) This is a nice treat. -J. Build Configuration: BB_VERSION= 1.27.1 BUILD_SYS = x86_64-linux NATIVELSBSTRING = Ubuntu-12.04 TARGET_SYS= arm-poky-linux-gnueabi MACHINE = qemuarm DISTRO= poky-selinux DISTRO_VERSION= 1.8+snapshot-20150811 TUNE_FEATURES = arm armv5 thumb dsp TARGET_FPU= soft meta meta-yocto meta-yocto-bsp= master:a16e0b4014173af46ef80d643bb71055219b0dab meta-selinux = master:684ee9401f33db7c9d5b183988d89c688c9dd0be Thanks! Shrikant Philip On Thu, Jul 30, 2015 at 2:55 PM, Shrikant Bobade bobadeshrik...@gmail.com mailto:bobadeshrik...@gmail.com wrote: From: Shrikant Bobade shrikant_bob...@mentor.com mailto:shrikant_bob...@mentor.com use wildcard for version: adopting libpam upgrade from 1.1.6 to 1.2.1, cleanup older recipe and remove patch sepermit-add-DESTDIR-prefix.patch since the changes already available with latest source. Signed-off-by: Shrikant Bobade shrikant_bob...@mentor.com mailto:shrikant_bob...@mentor.com --- .../pam/libpam/sepermit-add-DESTDIR-prefix.patch | 31 recipes-extended/pam/libpam_%.bbappend |3 ++ recipes-extended/pam/libpam_1.1.6.bbappend | 10 --- 3 files changed, 3 insertions(+), 41 deletions(-) delete mode 100644 recipes-extended/pam/libpam/sepermit-add-DESTDIR-prefix.patch create mode 100644 recipes-extended/pam/libpam_%.bbappend delete mode 100644 recipes-extended/pam/libpam_1.1.6.bbappend diff --git a/recipes-extended/pam/libpam/sepermit-add-DESTDIR-prefix.patch b/recipes-extended/pam/libpam/sepermit-add-DESTDIR-prefix.patch deleted file mode 100644 index d48d386..000 --- a/recipes-extended/pam/libpam/sepermit-add-DESTDIR-prefix.patch +++ /dev/null @@ -1,31 +0,0 @@ -Subject: [PATCH] libpam: add missing DESTDIR prefix - -The DESTDIR prefix is missing, this will cause build failures for -mkdir /var/run/sepermit on the host. - -| mkdir -p /var/run/sepermit -| mkdir: cannot create directory `/var/run/sepermit': Permission denied - -Upstream-Status: Pending - -Signed-off-by: Xin Ouyang xin.ouy...@windriver.com mailto:xin.ouy...@windriver.com - modules/pam_sepermit/Makefile.am |2 +- - 1 files changed, 1 insertions(+), 1 deletions(-) - -diff --git a/modules/pam_sepermit/Makefile.am b/modules/pam_sepermit/Makefile.am -index cfc5594..bc82275 100644 a/modules/pam_sepermit/Makefile.am -+++ b/modules/pam_sepermit/Makefile.am -@@ -35,7 +35,7 @@ if HAVE_LIBSELINUX - securelib_LTLIBRARIES = pam_sepermit.la http://pam_sepermit.la - - install-data-local: -- mkdir -p $(sepermitlockdir) -+ mkdir -p $(DESTDIR)$(sepermitlockdir) - endif - if ENABLE_REGENERATE_MAN - noinst_DATA = README pam_sepermit.8 sepermit.conf.5 --- -1.7.5.4 - diff --git a/recipes-extended/pam/libpam_%.bbappend b/recipes-extended/pam/libpam_%.bbappend new file mode 100644 index 000..adcf938 --- /dev/null +++ b/recipes
Re: [yocto] Header-Files of DEPEND recipe not found
On Aug 10, 2015, at 11:59 PM, yocto yocto yoctomailingl...@gmail.com wrote: Maybe this is of interest, here is my solution: In CMakeLists.txt SET(BITBAKE_SYSROOT CACHE STRING Description) SET(SOCI_INCLUDEDIR ${BITBAKE_SYSROOT}/usr/include/soci) So if BITBAKE_SYSROOT is not passed the compiler takes /usr/include/soci as usual. My *.bb contains: its your package you are free to choose the name but instead of BITBAKE_SYSROOT call it OE_SYSROOT EXTRA_OECMAKE = -DBITBAKE_SYSROOT:STRING=${STAGING_DIR_HOST} So when using bitbake the appropriate prefix will be added. 2015-08-11 8:36 GMT+02:00 yocto yocto yoctomailingl...@gmail.com mailto:yoctomailingl...@gmail.com: But not within CMakeLists.txt? At least this is not working, cmake is handling = as a normal character. I guess I have to pass a parameter within my *.bb to cmake containing the sysroot path 2015-08-10 22:36 GMT+02:00 Khem Raj raj.k...@gmail.com mailto:raj.k...@gmail.com: On Mon, Aug 10, 2015 at 12:08 PM, yocto yocto yoctomailingl...@gmail.com mailto:yoctomailingl...@gmail.com wrote: SET(SOCI_INCLUDEDIR /home/my-PC/development/2015-08-04_edison-src/edison-src/build/tmp/sysroots/edison/usr/include/soci) everything worked fine. Is there any way to get the path /home/my-PC/development/2015-08-04_edison-src/edison-src/build/tmp/sysroots/edison/ within CMakeLists.txt automatically? you can use =/usr/include/soci which will prepend sysroot automatically. signature.asc Description: Message signed with OpenPGP using GPGMail -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] [meta-raspberrypi][PATCH 1/2] linux-raspberrypi: support configuration fragments
- remove placeholder defconfig and custom copying logic - use KBUILD_DEFCONFIG for default in-tree configurations instead - do not replace all Yocto configured settings in do_configure_prepend see: https://bugzilla.yoctoproject.org/show_bug.cgi?id=7474 Signed-off-by: Alex J Lennon ajlen...@dynamicdevices.co.uk --- recipes-kernel/linux/linux-raspberrypi.inc | 15 --- recipes-kernel/linux/linux-raspberrypi/defconfig | 1 - recipes-kernel/linux/linux.inc | 6 +++--- 3 files changed, 7 insertions(+), 15 deletions(-) delete mode 100644 recipes-kernel/linux/linux-raspberrypi/defconfig diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc index 7e36408..e38d905 100644 --- a/recipes-kernel/linux/linux-raspberrypi.inc +++ b/recipes-kernel/linux/linux-raspberrypi.inc @@ -6,17 +6,14 @@ SECTION = kernel LICENSE = GPLv2 LIC_FILES_CHKSUM = file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7 -SRC_URI += \ -file://defconfig \ - - COMPATIBLE_MACHINE = raspberrypi PV = ${LINUX_VERSION}+git${SRCREV} -# NOTE: For now we pull in the default config from the RPi kernel GIT tree. -KERNEL_DEFCONFIG_raspberrypi ?= bcmrpi_defconfig -KERNEL_DEFCONFIG_raspberrypi2 ?= bcm2709_defconfig +KMACHINE ?= ${MACHINE} +KCONFIG_MODE = --alldefconfig +KBUILD_DEFCONFIG_raspberrypi ?= bcmrpi_defconfig +KBUILD_DEFCONFIG_raspberrypi2 ?= bcm2709_defconfig # CMDLINE for raspberrypi CMDLINE = dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait @@ -38,10 +35,6 @@ python __anonymous () { d.setVar(DEPENDS, depends) } -do_kernel_configme_prepend() { -install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available. -} - do_install_prepend() { install -d ${D}/lib/firmware } diff --git a/recipes-kernel/linux/linux-raspberrypi/defconfig b/recipes-kernel/linux/linux-raspberrypi/defconfig deleted file mode 100644 index ecbf32c..000 --- a/recipes-kernel/linux/linux-raspberrypi/defconfig +++ /dev/null @@ -1 +0,0 @@ -# Dummy file to get through do_kernel_configme. diff --git a/recipes-kernel/linux/linux.inc b/recipes-kernel/linux/linux.inc index fae78b7..103512b 100644 --- a/recipes-kernel/linux/linux.inc +++ b/recipes-kernel/linux/linux.inc @@ -33,8 +33,7 @@ kernel_configure_variable() { } do_configure_prepend() { -# Clean .config -echo ${B}/.config +mv -f ${B}/.config ${B}/.config.patched CONF_SED_SCRIPT= # oabi / eabi support @@ -109,7 +108,8 @@ do_configure_prepend() { # Keep this the last line # Remove all modified configs and add the rest to .config -sed -e ${CONF_SED_SCRIPT} '${WORKDIR}/defconfig' '${B}/.config' +sed -e ${CONF_SED_SCRIPT} '${B}/.config.patched' '${B}/.config' +rm -f ${B}/.config.patched yes '' | oe_runmake oldconfig } -- 1.9.1 -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] [meta-raspberrypi][PATCH 2/2] linux-raspberrypi: build audio driver into kernel
Signed-off-by: Alex J Lennon ajlen...@dynamicdevices.co.uk --- recipes-kernel/linux/linux-raspberrypi.inc | 4 1 file changed, 4 insertions(+) diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc index e38d905..8024412 100644 --- a/recipes-kernel/linux/linux-raspberrypi.inc +++ b/recipes-kernel/linux/linux-raspberrypi.inc @@ -6,6 +6,10 @@ SECTION = kernel LICENSE = GPLv2 LIC_FILES_CHKSUM = file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7 +SRC_URI += \ +file://build-in-audio.cfg \ + + COMPATIBLE_MACHINE = raspberrypi PV = ${LINUX_VERSION}+git${SRCREV} -- 1.9.1 -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] [meta-raspberrypi][PATCH 1/2] linux-raspberrypi: support configuration fragments
2015-08-11 19:04 skrev Alex J Lennon: - remove placeholder defconfig and custom copying logic - use KBUILD_DEFCONFIG for default in-tree configurations instead - do not replace all Yocto configured settings in do_configure_prepen see: https://bugzilla.yoctoproject.org/show_bug.cgi?id=7474 [1] Signed-off-by: Alex J Lennon ajlen...@dynamicdevices.co.uk --- recipes-kernel/linux/linux-raspberrypi.inc | 15 --- recipes-kernel/linux/linux-raspberrypi/defconfig | 1 - recipes-kernel/linux/linux.inc | 6 +++--- 3 files changed, 7 insertions(+), 15 deletions(-) delete mode 100644 recipes-kernel/linux/linux-raspberrypi/defconfig diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc index 7e36408..e38d905 100644 --- a/recipes-kernel/linux/linux-raspberrypi.inc +++ b/recipes-kernel/linux/linux-raspberrypi.inc @@ -6,17 +6,14 @@ SECTION = kernel LICENSE = GPLv2 LIC_FILES_CHKSUM = file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7 -SRC_URI += - file://defconfig - - COMPATIBLE_MACHINE = raspberrypi PV = ${LINUX_VERSION}+git${SRCREV} -# NOTE: For now we pull in the default config from the RPi kernel GIT tree. -KERNEL_DEFCONFIG_raspberrypi ?= bcmrpi_defconfig -KERNEL_DEFCONFIG_raspberrypi2 ?= bcm2709_defconfig +KMACHINE ?= ${MACHINE} +KCONFIG_MODE = --alldefconfig +KBUILD_DEFCONFIG_raspberrypi ?= bcmrpi_defconfig +KBUILD_DEFCONFIG_raspberrypi2 ?= bcm2709_defconfig # CMDLINE for raspberrypi CMDLINE = dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait @@ -38,10 +35,6 @@ python __anonymous () { d.setVar(DEPENDS, depends) } -do_kernel_configme_prepend() { - install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available. -} - do_install_prepend() { install -d ${D}/lib/firmware } diff --git a/recipes-kernel/linux/linux-raspberrypi/defconfig b/recipes-kernel/linux/linux-raspberrypi/defconfig deleted file mode 100644 index ecbf32c..000 --- a/recipes-kernel/linux/linux-raspberrypi/defconfig +++ /dev/null @@ -1 +0,0 @@ -# Dummy file to get through do_kernel_configme. diff --git a/recipes-kernel/linux/linux.inc b/recipes-kernel/linux/linux.inc index fae78b7..103512b 100644 --- a/recipes-kernel/linux/linux.inc +++ b/recipes-kernel/linux/linux.inc @@ -33,8 +33,7 @@ kernel_configure_variable() { } do_configure_prepend() { - # Clean .config - echo ${B}/.config + mv -f ${B}/.config ${B}/.config.patched CONF_SED_SCRIPT= # oabi / eabi support @@ -109,7 +108,8 @@ do_configure_prepend() { # Keep this the last line # Remove all modified configs and add the rest to .config - sed -e ${CONF_SED_SCRIPT} '${WORKDIR}/defconfig' '${B}/.config' + sed -e ${CONF_SED_SCRIPT} '${B}/.config.patched' '${B}/.config' + rm -f ${B}/.config.patched yes '' | oe_runmake oldconfig } -- 1.9.1 Nice, some small comments only. Please write a short summary of the feature (kernel-yocto: allow in-tree defconfig) but keep the bugzilla as a reference for further info. Always good to have some background found directly in the commit msg itself. Have you tested it using both poky:master and poky:fido? BR, Petter Petter Mabäcker Technux pet...@technux.se www.technux.se Links: -- [1] https://bugzilla.yoctoproject.org/show_bug.cgi?id=7474 -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] [meta-raspberrypi][PATCH 2/2] linux-raspberrypi: build audio driver into kernel
2015-08-11 19:04 skrev Alex J Lennon: Signed-off-by: Alex J Lennon ajlen...@dynamicdevices.co.uk --- recipes-kernel/linux/linux-raspberrypi.inc | 4 1 file changed, 4 insertions(+) diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc index e38d905..8024412 100644 --- a/recipes-kernel/linux/linux-raspberrypi.inc +++ b/recipes-kernel/linux/linux-raspberrypi.inc @@ -6,6 +6,10 @@ SECTION = kernel LICENSE = GPLv2 LIC_FILES_CHKSUM = file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7 +SRC_URI += + file://build-in-audio.cfg [1] + + COMPATIBLE_MACHINE = raspberrypi PV = ${LINUX_VERSION}+git${SRCREV} -- 1.9.1 It seems like the file build-in-audio.cfg is missing from the changeset? /Petter Petter Mabäcker Technux pet...@technux.se www.technux.se Links: -- [1] file://build-in-audio.cfg -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
Re: [yocto] [meta-raspberrypi][PATCH 1/2] linux-raspberrypi: support configuration fragments
On 11/08/2015 19:54, Petter Mabäcker wrote: 2015-08-11 19:04 skrev Alex J Lennon: - remove placeholder defconfig and custom copying logic - use KBUILD_DEFCONFIG for default in-tree configurations instead - do not replace all Yocto configured settings in do_configure_prepen see: https://bugzilla.yoctoproject.org/show_bug.cgi?id=7474 Signed-off-by: Alex J Lennon ajlen...@dynamicdevices.co.uk mailto:ajlen...@dynamicdevices.co.uk --- recipes-kernel/linux/linux-raspberrypi.inc | 15 --- recipes-kernel/linux/linux-raspberrypi/defconfig | 1 - recipes-kernel/linux/linux.inc | 6 +++--- 3 files changed, 7 insertions(+), 15 deletions(-) delete mode 100644 recipes-kernel/linux/linux-raspberrypi/defconfig diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/linux-raspberrypi.inc index 7e36408..e38d905 100644 --- a/recipes-kernel/linux/linux-raspberrypi.inc +++ b/recipes-kernel/linux/linux-raspberrypi.inc @@ -6,17 +6,14 @@ SECTION = kernel LICENSE = GPLv2 LIC_FILES_CHKSUM = file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7 -SRC_URI += \ -file://defconfig \ - - COMPATIBLE_MACHINE = raspberrypi PV = ${LINUX_VERSION}+git${SRCREV} -# NOTE: For now we pull in the default config from the RPi kernel GIT tree. -KERNEL_DEFCONFIG_raspberrypi ?= bcmrpi_defconfig -KERNEL_DEFCONFIG_raspberrypi2 ?= bcm2709_defconfig +KMACHINE ?= ${MACHINE} +KCONFIG_MODE = --alldefconfig +KBUILD_DEFCONFIG_raspberrypi ?= bcmrpi_defconfig +KBUILD_DEFCONFIG_raspberrypi2 ?= bcm2709_defconfig # CMDLINE for raspberrypi CMDLINE = dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait @@ -38,10 +35,6 @@ python __anonymous () { d.setVar(DEPENDS, depends) } -do_kernel_configme_prepend() { -install -m 0644 ${S}/arch/${ARCH}/configs/${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig || die No default configuration for ${MACHINE} / ${KERNEL_DEFCONFIG} available. -} - do_install_prepend() { install -d ${D}/lib/firmware } diff --git a/recipes-kernel/linux/linux-raspberrypi/defconfig b/recipes-kernel/linux/linux-raspberrypi/defconfig deleted file mode 100644 index ecbf32c..000 --- a/recipes-kernel/linux/linux-raspberrypi/defconfig +++ /dev/null @@ -1 +0,0 @@ -# Dummy file to get through do_kernel_configme. diff --git a/recipes-kernel/linux/linux.inc b/recipes-kernel/linux/linux.inc index fae78b7..103512b 100644 --- a/recipes-kernel/linux/linux.inc +++ b/recipes-kernel/linux/linux.inc @@ -33,8 +33,7 @@ kernel_configure_variable() { } do_configure_prepend() { -# Clean .config -echo ${B}/.config +mv -f ${B}/.config ${B}/.config.patched CONF_SED_SCRIPT= # oabi / eabi support @@ -109,7 +108,8 @@ do_configure_prepend() { # Keep this the last line # Remove all modified configs and add the rest to .config -sed -e ${CONF_SED_SCRIPT} '${WORKDIR}/defconfig' '${B}/.config' +sed -e ${CONF_SED_SCRIPT} '${B}/.config.patched' '${B}/.config' +rm -f ${B}/.config.patched yes '' | oe_runmake oldconfig } -- 1.9.1 Nice, some small comments only. Please write a short summary of the feature (kernel-yocto: allow in-tree defconfig) but keep the bugzilla as a reference for further info. Always good to have some background found This is seems a significant core change so I wanted to make sure these individual changes were as easily searchable as possible in case any problems arise in future. Can you provide an example of what you are suggesting for the commit msg? directly in the commit msg itself. Have you tested it using both poky:master and poky:fido? Rpi2 fido 3.18.16 with/without sound patch, 4.1.3 with/without sound patch. BR, Alex -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto
[yocto] [meta-darwin][PATCH] osx-runtime: OSX Yosemite v10.10
Set of patches to allow building against OSX Yosemite v10.10 runtime. Signed-off-by: Juro Bystricky juro.bystri...@intel.com --- .../files/fix_typedef_dispatch_block_t.patch | 16 + .../files/foundation_framework_headers_clang.patch | 1065 .../osx-runtime/files/fsevents-clang.patch | 135 +++ ...vailability_with_message_for_gcc_osx10.10.patch | 128 +++ .../osx-runtime/nativesdk-osx-runtime_10.10.bb | 70 ++ 5 files changed, 1414 insertions(+) create mode 100644 recipes-devtools/osx-runtime/files/fix_typedef_dispatch_block_t.patch create mode 100644 recipes-devtools/osx-runtime/files/foundation_framework_headers_clang.patch create mode 100644 recipes-devtools/osx-runtime/files/fsevents-clang.patch create mode 100644 recipes-devtools/osx-runtime/files/remove_unsupported_attribute_availability_with_message_for_gcc_osx10.10.patch create mode 100644 recipes-devtools/osx-runtime/nativesdk-osx-runtime_10.10.bb diff --git a/recipes-devtools/osx-runtime/files/fix_typedef_dispatch_block_t.patch b/recipes-devtools/osx-runtime/files/fix_typedef_dispatch_block_t.patch new file mode 100644 index 000..6a1bace --- /dev/null +++ b/recipes-devtools/osx-runtime/files/fix_typedef_dispatch_block_t.patch @@ -0,0 +1,16 @@ +Index: OSX-sdk/usr/include/dispatch/object.h +=== +--- OSX-sdk.orig/usr/include/dispatch/object.h OSX-sdk/usr/include/dispatch/object.h +@@ -140,7 +140,11 @@ typedef union { + * Instead, the block literal must be copied to the heap with the Block_copy() + * function or by sending it a -[copy] message. + */ ++#if defined(__clang__) + typedef void (^dispatch_block_t)(void); ++#else ++typedef void* dispatch_block_t; ++#endif + + __BEGIN_DECLS + diff --git a/recipes-devtools/osx-runtime/files/foundation_framework_headers_clang.patch b/recipes-devtools/osx-runtime/files/foundation_framework_headers_clang.patch new file mode 100644 index 000..0f87c53 --- /dev/null +++ b/recipes-devtools/osx-runtime/files/foundation_framework_headers_clang.patch @@ -0,0 +1,1065 @@ +Index: OSX-sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSArray.h +=== +--- OSX-sdk.orig/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSArray.h OSX-sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/NSArray.h +@@ -55,7 +55,7 @@ + - (NSArray *)objectsAtIndexes:(NSIndexSet *)indexes; + + - (id)objectAtIndexedSubscript:(NSUInteger)idx NS_AVAILABLE(10_8, 6_0); +- ++#if defined(__clang__) + - (void)enumerateObjectsUsingBlock:(void (^)(id obj, NSUInteger idx, BOOL *stop))block NS_AVAILABLE(10_6, 4_0); + - (void)enumerateObjectsWithOptions:(NSEnumerationOptions)opts usingBlock:(void (^)(id obj, NSUInteger idx, BOOL *stop))block NS_AVAILABLE(10_6, 4_0); + - (void)enumerateObjectsAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts usingBlock:(void (^)(id obj, NSUInteger idx, BOOL *stop))block NS_AVAILABLE(10_6, 4_0); +@@ -67,7 +67,20 @@ + - (NSIndexSet *)indexesOfObjectsPassingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate NS_AVAILABLE(10_6, 4_0); + - (NSIndexSet *)indexesOfObjectsWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate NS_AVAILABLE(10_6, 4_0); + - (NSIndexSet *)indexesOfObjectsAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts passingTest:(BOOL (^)(id obj, NSUInteger idx, BOOL *stop))predicate NS_AVAILABLE(10_6, 4_0); ++#else ++- (void)enumerateObjectsUsingBlock:(void *(id obj, NSUInteger idx, BOOL *stop))block NS_AVAILABLE(10_6, 4_0); ++- (void)enumerateObjectsWithOptions:(NSEnumerationOptions)opts usingBlock:(void *(id obj, NSUInteger idx, BOOL *stop))block NS_AVAILABLE(10_6, 4_0); ++- (void)enumerateObjectsAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts usingBlock:(void *(id obj, NSUInteger idx, BOOL *stop))block NS_AVAILABLE(10_6, 4_0); ++ ++- (NSUInteger)indexOfObjectPassingTest:(BOOL *(id obj, NSUInteger idx, BOOL *stop))predicate NS_AVAILABLE(10_6, 4_0); ++- (NSUInteger)indexOfObjectWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL *(id obj, NSUInteger idx, BOOL *stop))predicate NS_AVAILABLE(10_6, 4_0); ++- (NSUInteger)indexOfObjectAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts passingTest:(BOOL *(id obj, NSUInteger idx, BOOL *stop))predicate NS_AVAILABLE(10_6, 4_0); ++ ++- (NSIndexSet *)indexesOfObjectsPassingTest:(BOOL *(id obj, NSUInteger idx, BOOL *stop))predicate NS_AVAILABLE(10_6, 4_0); ++- (NSIndexSet *)indexesOfObjectsWithOptions:(NSEnumerationOptions)opts passingTest:(BOOL *(id obj, NSUInteger idx, BOOL *stop))predicate NS_AVAILABLE(10_6, 4_0); ++- (NSIndexSet *)indexesOfObjectsAtIndexes:(NSIndexSet *)s options:(NSEnumerationOptions)opts passingTest:(BOOL *(id obj, NSUInteger idx, BOOL *stop))predicate
Re: [yocto] No '/lib/modules' directory in image, modprobe fails
On Aug 11, 2015, at 5:53 PM, Todd Efflam todd.eff...@gmail.com wrote: Hello, We're trying to load and unload modules using modprobe but are having problems. The command fails with modprobe: can't change directory to '/lib/modules': no such file or directory. There is actually no /lib/modules directory on the image at all. We tried to install the linux-libc-headers package but it failed and I think the reason is we are using the 3.14 kernel and the package is 3.19. Any help would be appreciated! linux-libc-headers is kernel APIs for userland. The modules are generated as individual packages during kernel build. You can choose which modules you want to package default it none. if you want all default modules to be included in image you can add MACHINE_EXTRA_RRECOMMENDS = kernel-modules” to you machine.conf Otherwise if you know which ones your system needs then you can add it to IMAGE_INSTALL individually. IMAGE_INSTALL += kernel-module-name-of-module” signature.asc Description: Message signed with OpenPGP using GPGMail -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto