From 0dcdc4edf9662ad3cdd89931a455070eb8531314 Mon Sep 17 00:00:00 2001 From: Sergey Matyukevich Date: Wed, 14 Dec 2016 22:49:57 +0300 Subject: [PATCH 1/5] sun8i: add new SoC family Add config for sun8i SoC family and specify preferred BSP components. Signed-off-by: Sergey Matyukevich --- conf/machine/include/sun8i.inc | 5 +++++ recipes-bsp/u-boot/u-boot_2016.11.bb | 3 ++- recipes-graphics/libgles/sunxi-mali_git.bb | 2 +- recipes-kernel/linux/linux_git.bb | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 conf/machine/include/sun8i.inc diff --git a/conf/machine/include/sun8i.inc b/conf/machine/include/sun8i.inc new file mode 100644 index 0000000..a048a1a --- /dev/null +++ b/conf/machine/include/sun8i.inc @@ -0,0 +1,5 @@ +require conf/machine/include/sunxi.inc +require conf/machine/include/sunxi-mali.inc +require conf/machine/include/tune-cortexa7.inc + +SOC_FAMILY = "sun8i" diff --git a/recipes-bsp/u-boot/u-boot_2016.11.bb b/recipes-bsp/u-boot/u-boot_2016.11.bb index 8ca3165..a8c6888 100644 --- a/recipes-bsp/u-boot/u-boot_2016.11.bb +++ b/recipes-bsp/u-boot/u-boot_2016.11.bb @@ -19,11 +19,12 @@ file://Licenses/lgpl-2.1.txt;md5=4fbd65380cdd255951079008b364516c \ file://Licenses/x11.txt;md5=b46f176c847b8742db02126fb8af92e2 \ " -COMPATIBLE_MACHINE = "(sun4i|sun5i|sun7i)" +COMPATIBLE_MACHINE = "(sun4i|sun5i|sun7i|sun8i)" DEFAULT_PREFERENCE_sun4i="1" DEFAULT_PREFERENCE_sun5i="1" DEFAULT_PREFERENCE_sun7i="1" +DEFAULT_PREFERENCE_sun8i="1" SRC_URI = "git://git.denx.de/u-boot.git;branch=master \ file://boot.cmd" diff --git a/recipes-graphics/libgles/sunxi-mali_git.bb b/recipes-graphics/libgles/sunxi-mali_git.bb index 193c968..9b84c20 100644 --- a/recipes-graphics/libgles/sunxi-mali_git.bb +++ b/recipes-graphics/libgles/sunxi-mali_git.bb @@ -3,7 +3,7 @@ DESCRIPTION = "libGLES for the A10/A13 Allwinner processor with Mali 400 (X11)" LICENSE = "Proprietary" LIC_FILES_CHKSUM = "file://README;md5=1b81a178e80ee888ee4571772699ab2c" -COMPATIBLE_MACHINE = "(sun4i|sun5i|sun7i)" +COMPATIBLE_MACHINE = "(sun4i|sun5i|sun7i|sun8i)" # These libraries shouldn't get installed in world builds unless something # explicitly depends upon them. diff --git a/recipes-kernel/linux/linux_git.bb b/recipes-kernel/linux/linux_git.bb index 58c3acc..8127cdf 100644 --- a/recipes-kernel/linux/linux_git.bb +++ b/recipes-kernel/linux/linux_git.bb @@ -2,7 +2,7 @@ SECTION = "kernel" DESCRIPTION = "Mainline Linux kernel" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" -COMPATIBLE_MACHINE = "(sun4i|sun5i|sun7i)" +COMPATIBLE_MACHINE = "(sun4i|sun5i|sun7i|sun8i)" inherit kernel From 3ef9217ad70a15802fc15e1e7e145f95457f8abe Mon Sep 17 00:00:00 2001 From: Sergey Matyukevich Date: Wed, 14 Dec 2016 22:52:24 +0300 Subject: [PATCH 2/5] Change PV for kernel git version Bump kernel git version to enable support for sun8i boards. Signed-off-by: Sergey Matyukevich --- recipes-kernel/linux/linux_git.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes-kernel/linux/linux_git.bb b/recipes-kernel/linux/linux_git.bb index 8127cdf..2311810 100644 --- a/recipes-kernel/linux/linux_git.bb +++ b/recipes-kernel/linux/linux_git.bb @@ -18,9 +18,9 @@ DEFAULT_PREFERENCE = "-1" KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" -# 4.7 rc4 -PV = "4.6+4.7rc4.git${SRCPV}" -SRCREV_pn-${PN} = "33688abb2802ff3a230bd2441f765477b94cc89e" +# 4.9.0 +PV = "4.9.0+git${SRCPV}" +SRCREV_pn-${PN} = "69973b830859bc6529a7a0468ba0d80ee5117826" SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=git;branch=master \ file://defconfig \ From 75fe4617ce4c2bdbdd3434dc20fbf9dfe1cdd4ff Mon Sep 17 00:00:00 2001 From: Sergey Matyukevich Date: Wed, 14 Dec 2016 22:53:24 +0300 Subject: [PATCH 3/5] Add support for Orange Pi One board Add machine description for Orange Pi One board. Signed-off-by: Sergey Matyukevich --- conf/machine/orange-pi-one.conf | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 conf/machine/orange-pi-one.conf diff --git a/conf/machine/orange-pi-one.conf b/conf/machine/orange-pi-one.conf new file mode 100644 index 0000000..239525e --- /dev/null +++ b/conf/machine/orange-pi-one.conf @@ -0,0 +1,13 @@ +#@TYPE: Machine +#@NAME: orange-pi-one +#@DESCRIPTION: Machine configuration for the orange-pi-one, base on allwinner H3 CPU + +require conf/machine/include/sun8i.inc + +PREFERRED_VERSION_linux = "4.9.0+git%" +PREFERRED_VERSION_u-boot = "v2016.11%" + +KERNEL_DEVICETREE = "sun8i-h3-orangepi-one.dtb" +UBOOT_MACHINE = "orangepi_one_defconfig" + +DEFAULTTUNE = "cortexa7hf-neon-vfpv4" From fe66ceacb51623e0924df7fd35505ba6056e5a9e Mon Sep 17 00:00:00 2001 From: Sergey Matyukevich Date: Wed, 14 Dec 2016 22:55:47 +0300 Subject: [PATCH 4/5] sunxi-mail: fix bitbake QA issues for sunxi-mali Fix QA issues for sunxi-mali-test package: - add proper RDEPENDS - don't check closed binary for sections, relocations, etc Signed-off-by: Sergey Matyukevich --- recipes-graphics/libgles/sunxi-mali_git.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes-graphics/libgles/sunxi-mali_git.bb b/recipes-graphics/libgles/sunxi-mali_git.bb index 9b84c20..375aac9 100644 --- a/recipes-graphics/libgles/sunxi-mali_git.bb +++ b/recipes-graphics/libgles/sunxi-mali_git.bb @@ -91,6 +91,7 @@ do_install() { PACKAGES =+ "${PN}-test" RPROVIDES_${PN} += "libGLESv2.so libEGL.so libGLESv2.so libGLESv1_CM.so libMali.so" +RDEPENDS_${PN}-test = "${PN}" FILES_${PN} += "${libdir}/lib*.so" FILES_${PN}-dev = "${includedir} ${libdir}/pkgconfig/*" @@ -98,3 +99,4 @@ FILES_${PN}-test = "${bindir}/sunximali-test" # These are closed binaries generated elsewhere so don't check ldflags & text relocations INSANE_SKIP_${PN} = "dev-so ldflags textrel" +INSANE_SKIP_${PN}-test = "dev-so ldflags textrel" From 2b1cafc104f86baa4475531bb1a207b9c88de742 Mon Sep 17 00:00:00 2001 From: Sergey Matyukevich Date: Thu, 15 Dec 2016 23:10:24 +0300 Subject: [PATCH 5/5] pcduino: bump preferred u-boot and kernel versions Bump preferred u-boot and kernel versions: - kernel 4.9 - u-boot 2016.11 Signed-off-by: Sergey Matyukevich --- conf/machine/pcduino.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/machine/pcduino.conf b/conf/machine/pcduino.conf index 8adb51e..dece19b 100644 --- a/conf/machine/pcduino.conf +++ b/conf/machine/pcduino.conf @@ -4,6 +4,9 @@ require conf/machine/include/sun4i.inc +PREFERRED_VERSION_linux = "4.9.0+git%" +PREFERRED_VERSION_u-boot = "v2016.11%" + KERNEL_DEVICETREE = "sun4i-a10-pcduino.dtb" UBOOT_MACHINE = "Linksprite_pcDuino_defconfig" SUNXI_FEX_FILE = "sys_config/a10/pcduino.fex"