linux-wandboard: Update to 4.1.15
PATCH 1/5 linux-wandboard: Update to 4.1.15
- Update to branch wandboard_imx_4.1.15_1.1.0_ga
- Add patch to fix compile issue under gcc6
---
.../Fix-the-compile-issue-under-gcc6.patch | 92 +++++++++++
.../defconfig | 169 ++++++++++++---------
...dboard_3.14.28.bb => linux-wandboard_4.1.15.bb} | 8 +-
3 files changed, 195 insertions(+), 74 deletions(-)
create mode 100644 recipes-kernel/linux/linux-wandboard-4.1.15/Fix-the-compile-issue-under-gcc6.patch
rename recipes-kernel/linux/{linux-wandboard-3.14.28 => linux-wandboard-4.1.15}/defconfig (80%)
rename recipes-kernel/linux/{linux-wandboard_3.14.28.bb => linux-wandboard_4.1.15.bb} (64%)recipes-kernel/linux/linux-wandboard-4.1.15/Fix-the-compile-issue-under-gcc6.patch new file +92 -0
@@ -0,0 +1,92 @@ +From 5d39bd421fc093e2c852316080538cef85a9e1a0 Mon Sep 17 00:00:00 2001 +From: yocto <[email protected]> +Date: Thu, 2 Jun 2016 00:18:33 -0500 +Subject: [PATCH] Fix the compile issue under gcc6 + +Fix the following build error: +| .../include/linux/compiler-gcc.h:106:30: fatal error: linux/compiler-gcc6.h: No such file or directory +| #include gcc_header(__GNUC__) + +Signed-off-by: Zhenhua Luo <[email protected]> + +Upstream-Status: Pending +--- + include/linux/compiler-gcc6.h | 66 +++++++++++++++++++++++++++++++++++++++++++ + 1 file changed, 66 insertions(+) + create mode 100644 include/linux/compiler-gcc6.h + +diff --git a/include/linux/compiler-gcc6.h b/include/linux/compiler-gcc6.h +new file mode 100644 +index 0000000..cdd1cc2 +--- /dev/null ++++ b/include/linux/compiler-gcc6.h +@@ -0,0 +1,66 @@ ++#ifndef __LINUX_COMPILER_H ++#error "Please don't include <linux/compiler-gcc5.h> directly, include <linux/compiler.h> instead." ++#endif ++ ++#define __used __attribute__((__used__)) ++#define __must_check __attribute__((warn_unused_result)) ++#define __compiler_offsetof(a, b) __builtin_offsetof(a, b) ++ ++/* Mark functions as cold. gcc will assume any path leading to a call ++ to them will be unlikely. This means a lot of manual unlikely()s ++ are unnecessary now for any paths leading to the usual suspects ++ like BUG(), printk(), panic() etc. [but let's keep them for now for ++ older compilers] ++ ++ Early snapshots of gcc 4.3 don't support this and we can't detect this ++ in the preprocessor, but we can live with this because they're unreleased. ++ Maketime probing would be overkill here. ++ ++ gcc also has a __attribute__((__hot__)) to move hot functions into ++ a special section, but I don't see any sense in this right now in ++ the kernel context */ ++#define __cold __attribute__((__cold__)) ++ ++#define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) ++ ++#ifndef __CHECKER__ ++# define __compiletime_warning(message) __attribute__((warning(message))) ++# define __compiletime_error(message) __attribute__((error(message))) ++#endif /* __CHECKER__ */ ++ ++/* ++ * Mark a position in code as unreachable. This can be used to ++ * suppress control flow warnings after asm blocks that transfer ++ * control elsewhere. ++ * ++ * Early snapshots of gcc 4.5 don't support this and we can't detect ++ * this in the preprocessor, but we can live with this because they're ++ * unreleased. Really, we need to have autoconf for the kernel. ++ */ ++#define unreachable() __builtin_unreachable() ++ ++/* Mark a function definition as prohibited from being cloned. */ ++#define __noclone __attribute__((__noclone__)) ++ ++/* ++ * Tell the optimizer that something else uses this function or variable. ++ */ ++#define __visible __attribute__((externally_visible)) ++ ++/* ++ * GCC 'asm goto' miscompiles certain code sequences: ++ * ++ * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58670 ++ * ++ * Work it around via a compiler barrier quirk suggested by Jakub Jelinek. ++ * Fixed in GCC 4.8.2 and later versions. ++ * ++ * (asm goto is automatically volatile - the naming reflects this.) ++ */ ++#define asm_volatile_goto(x...) do { asm goto(x); asm (""); } while (0) ++ ++#ifdef CONFIG_ARCH_USE_BUILTIN_BSWAP ++#define __HAVE_BUILTIN_BSWAP32__ ++#define __HAVE_BUILTIN_BSWAP64__ ++#define __HAVE_BUILTIN_BSWAP16__ ++#endif /* CONFIG_ARCH_USE_BUILTIN_BSWAP */ +-- +2.5.0 +
recipes-kernel/linux/linux-wandboard-4.1.15/defconfig renamed from recipes-kernel/linux/linux-wandboard-3.14.28/defconfig +98 -71
372 lines not on this page · raw message
recipes-kernel/linux/linux-wandboard_4.1.15.bb renamed from recipes-kernel/linux/linux-wandboard_3.14.28.bb +5 -3
@@ -8,8 +8,10 @@ DEPENDS += "lzop-native bc-native" # Wandboard branch - based on 3.14.28_1.0.0_ga from Freescale git -SRCBRANCH = "wandboard_imx_3.14.28_1.0.0_ga" -SRCREV = "e2df0421a0a73fa2effb1e866bc3b2d8cb1b5acf" -LOCALVERSION = "_1.0.0_ga-wandboard" +SRCBRANCH = "wandboard_imx_4.1.15_1.1.0_ga" +SRCREV = "8b015473d34019c3e093c257861e9c6f4930400b" +LOCALVERSION = "_1.1.0_ga-wandboard" + +SRC_URI += "file://Fix-the-compile-issue-under-gcc6.patch" COMPATIBLE_MACHINE = "(wandboard)"
Signature · 1 line
2.1.4
PATCH 2/5 wandboard: Update KERNEL_DEVICETREE list
Commit 7d8c7757164fd7080257df0124a339f0b349bf63 updated linux-wandboard to version 4.1.15 and device tree files were changed. Update to match these new file names.
--- conf/machine/wandboard.conf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
conf/machine/wandboard.conf +7 -2
@@ -15,8 +15,13 @@ SPL_BINARY = "SPL" UBOOT_MACHINE = "wandboard_config" PREFERRED_PROVIDER_virtual/kernel ?= "linux-wandboard" -KERNEL_DEVICETREE = "imx6q-wandboard.dtb \ - imx6dl-wandboard.dtb" +KERNEL_DEVICETREE = " \ + imx6dl-wandboard-revb1.dtb \ + imx6dl-wandboard-revc1.dtb \ + imx6q-wandboard-revb1.dtb \ + imx6q-wandboard-revc1.dtb \ +" + KERNEL_IMAGETYPE = "zImage" MACHINE_FEATURES += "bluetooth pci wifi touchscreen"
Signature · 1 line
2.1.4
PATCH 3/5 wandboard: Add support to use uboot extlinux
In reply to Fabio BertonClass that allows extlinux.conf generation for U-Boot use was introduced on OE-core commits:
- 7c18abeb2a6ef8b7bb53aa92a9ee76bd465fada2
- 33df3a65f3e8e136811da715d0cc247ce66ae0ea
To use this feature we need to set UBOOT_EXTLINUX variable to 1 and UBOOT_EXTLINUX_ROOT with root path used by kernel cmdline.
--- conf/machine/wandboard.conf | 3 +++ 1 file changed, 3 insertions(+)
conf/machine/wandboard.conf +3 -0
@@ -14,6 +14,9 @@ UBOOT_SUFFIX = "img" SPL_BINARY = "SPL" UBOOT_MACHINE = "wandboard_config" +UBOOT_EXTLINUX = "1" +UBOOT_EXTLINUX_ROOT = "root=/dev/mmcblk2p2" + PREFERRED_PROVIDER_virtual/kernel ?= "linux-wandboard" KERNEL_DEVICETREE = " \ imx6dl-wandboard-revb1.dtb \
Signature · 1 line
2.1.4
Re: [meta-fsl-arm-extra][PATCH 3/5] wandboard: Add support to use uboot extlinux
Quoted 19 lines · Fabio Berton
Class that allows extlinux.conf generation for U-Boot use was introduced on OE-core commits:
-
7c18abeb2a6ef8b7bb53aa92a9ee76bd465fada2
-33df3a65f3e8e136811da715d0cc247ce66ae0eaTo use this feature we need to set
UBOOT_EXTLINUXvariable to 1 andUBOOT_EXTLINUX_ROOTwith root path used by kernel cmdline.Signed-off-by Fabio Berton <[email protected]>--- conf/machine/wandboard.conf | 3 +++ 1 file changed, 3 insertions(+)conf/machine/wandboard.conf +0
-0
conf/machine/wandboard.conf UBOOT_SUFFIX = "img" · line 18
Quoted 5 lines
conf/machine/wandboard.conf +2
-0@@ -14,6 +14,9 @@ UBOOT_SUFFIX = "img" SPL_BINARY = "SPL" UBOOT_MACHINE = "wandboard_config" +UBOOT_EXTLINUX = "1" +UBOOT_EXTLINUX_ROOT = "root=/dev/mmcblk2p2"
This is too fragile and changes from kernel to kernel. It also depends on how many SD cards there are connected in the board.
Much better approach is to use UUID solution as provided by U-Boot mainline.
Re: [meta-fsl-arm-extra][PATCH 3/5] wandboard: Add support to use uboot extlinux
Quoted 24 lines · Fabio Estevam
Quoted 22 lines · Fabio Berton
Class that allows extlinux.conf generation for U-Boot use was introduced on OE-core commits:
-
7c18abeb2a6ef8b7bb53aa92a9ee76bd465fada2
-33df3a65f3e8e136811da715d0cc247ce66ae0eaTo use this feature we need to set
UBOOT_EXTLINUXvariable to 1 andUBOOT_EXTLINUX_ROOTwith root path used by kernel cmdline.Signed-off-by Fabio Berton <[email protected]>--- conf/machine/wandboard.conf | 3 +++ 1 file changed, 3 insertions(+)conf/machine/wandboard.conf +0
-0@@ -14,6 +14,9 @@ UBOOT_SUFFIX = "img" SPL_BINARY = "SPL" UBOOT_MACHINE = "wandboard_config"
Quoted 7 lines
conf/machine/wandboard.conf UBOOT_SUFFIX = "img" · line 18
Quoted 2 lines
conf/machine/wandboard.conf +2
-0+UBOOT_EXTLINUX = "1" +UBOOT_EXTLINUX_ROOT = "root=/dev/mmcblk2p2"This is too fragile and changes from kernel to kernel. It also depends on how many SD cards there are connected in the board.
Much better approach is to use UUID solution as provided by U-Boot mainline.
This is a later improvement. We need to have a way to identify the UUID of the image during the image generation and it is a "chicken / egg" type of problem. We need to address this on OE-Core before start using it here.
For OE-Core-based systems, UUID does not seem to be the ideal solution as it needs to mangle the image generation process. I believe we will end using label for this.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
PATCH 4/5 wandboard: Add support to use uboot extlinux with wic images
In reply to Fabio BertonClass that allows extlinux.conf generation for U-Boot use was introduced on OE-core commits:
- 7c18abeb2a6ef8b7bb53aa92a9ee76bd465fada2
- 33df3a65f3e8e136811da715d0cc247ce66ae0ea
To use this feature we need to install extlinux.conf file to location extlinux/extlinux.conf in boot partition.
--- conf/machine/wandboard.conf | 4 ++++ 1 file changed, 4 insertions(+)
conf/machine/wandboard.conf +4 -0
@@ -17,6 +17,10 @@ UBOOT_MACHINE = "wandboard_config" UBOOT_EXTLINUX = "1" UBOOT_EXTLINUX_ROOT = "root=/dev/mmcblk2p2" +IMAGE_BOOT_FILES_append = " \ + extlinux.conf;extlinux/extlinux.conf \ +" + PREFERRED_PROVIDER_virtual/kernel ?= "linux-wandboard" KERNEL_DEVICETREE = " \ imx6dl-wandboard-revb1.dtb \
Signature · 1 line
2.1.4
PATCH 5/5 cubox-i: Add support to use uboot extlinux
In reply to Fabio BertonClass that allows extlinux.conf generation for U-Boot use was introduced on OE-core commits:
- 7c18abeb2a6ef8b7bb53aa92a9ee76bd465fada2
- 33df3a65f3e8e136811da715d0cc247ce66ae0ea
To use this feature we need to set UBOOT_EXTLINUX variable to 1 and UBOOT_EXTLINUX_ROOT with root path used by kernel cmdline.
--- conf/machine/cubox-i.conf | 3 +++ 1 file changed, 3 insertions(+)
conf/machine/cubox-i.conf +3 -0
@@ -24,6 +24,9 @@ UBOOT_CONFIG[sd] = "mx6cuboxi_defconfig,sdcard" UENV_FILENAME = "uEnv-${MACHINE}.txt" SPL_BINARY = "SPL" +UBOOT_EXTLINUX = "1" +UBOOT_EXTLINUX_ROOT = "root=/dev/mmcblk0p2" + KERNEL_IMAGETYPE = "zImage" KERNEL_DEVICETREE = "imx6dl-cubox-i.dtb imx6q-cubox-i.dtb imx6dl-hummingboard.dtb imx6q-hummingboard.dtb"
Signature · 1 line
2.1.4