From 8eb8602a7669aa0925ecc7fe568f94efb8478dcb Mon Sep 17 00:00:00 2001 From: Sergey Matyukevich Date: Sun, 9 Apr 2017 18:55:45 +0300 Subject: [PATCH 1/3] update kernel defconfig: add CONFIG_THERMAL_OF This enables CONFIG_THERMAL_OF by default for kernel config. It is required to get Allwinner SoCs' temperature from the GPADC driver. For detailed description see mainline kernel commit: 11937f69b65b08d3184b1ebc864668be4b6c5427 Signed-off-by: Sergey Matyukevich --- recipes-kernel/linux/linux/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes-kernel/linux/linux/defconfig b/recipes-kernel/linux/linux/defconfig index 73192d8..a5ece2b 100644 --- a/recipes-kernel/linux/linux/defconfig +++ b/recipes-kernel/linux/linux/defconfig @@ -511,6 +511,7 @@ CONFIG_GPIO_SYSFS=y CONFIG_POWER_SUPPLY=y CONFIG_POWER_RESET=y CONFIG_THERMAL=y +CONFIG_THERMAL_OF=y CONFIG_CPU_THERMAL=y CONFIG_WATCHDOG=y CONFIG_SUNXI_WATCHDOG=y From a6d2bb6b9e9597dc744397d1ba53cf9d5c031750 Mon Sep 17 00:00:00 2001 From: Sergey Matyukevich Date: Sun, 9 Apr 2017 18:55:27 +0300 Subject: [PATCH 2/3] Bump versions of kernel and u-boot Bump preferred u-boot release version and kernel git version: - kernel 4.11.0-rc5 - u-boot 2017.03 Update preferred versions of u-boot and kernel for all the boards that are using them: nanopi-neo, orange-pi-one, pcduino. The purpose of this update is to get the latest features for sun8i cores including SPI support and orange-pi-zero support Signed-off-by: Sergey Matyukevich --- conf/machine/nanopi-neo.conf | 4 ++-- conf/machine/orange-pi-one.conf | 4 ++-- conf/machine/pcduino.conf | 4 ++-- recipes-bsp/u-boot/{u-boot_2016.11.bb => u-boot_2017.03.bb} | 4 ++-- recipes-kernel/linux/linux_git.bb | 6 +++--- 5 files changed, 11 insertions(+), 11 deletions(-) rename recipes-bsp/u-boot/{u-boot_2016.11.bb => u-boot_2017.03.bb} (94%) diff --git a/conf/machine/nanopi-neo.conf b/conf/machine/nanopi-neo.conf index e78414f..f2da361 100644 --- a/conf/machine/nanopi-neo.conf +++ b/conf/machine/nanopi-neo.conf @@ -4,8 +4,8 @@ require conf/machine/include/sun8i.inc -PREFERRED_VERSION_linux = "4.9.0+git%" -PREFERRED_VERSION_u-boot = "v2016.11%" +PREFERRED_VERSION_linux = "4.11.0+git%" +PREFERRED_VERSION_u-boot = "v2017.03%" KERNEL_DEVICETREE = "sun8i-h3-nanopi-neo.dtb" UBOOT_MACHINE = "nanopi_neo_defconfig" diff --git a/conf/machine/orange-pi-one.conf b/conf/machine/orange-pi-one.conf index 239525e..62b2641 100644 --- a/conf/machine/orange-pi-one.conf +++ b/conf/machine/orange-pi-one.conf @@ -4,8 +4,8 @@ require conf/machine/include/sun8i.inc -PREFERRED_VERSION_linux = "4.9.0+git%" -PREFERRED_VERSION_u-boot = "v2016.11%" +PREFERRED_VERSION_linux = "4.11.0+git%" +PREFERRED_VERSION_u-boot = "v2017.03%" KERNEL_DEVICETREE = "sun8i-h3-orangepi-one.dtb" UBOOT_MACHINE = "orangepi_one_defconfig" diff --git a/conf/machine/pcduino.conf b/conf/machine/pcduino.conf index dece19b..f0e77c6 100644 --- a/conf/machine/pcduino.conf +++ b/conf/machine/pcduino.conf @@ -4,8 +4,8 @@ require conf/machine/include/sun4i.inc -PREFERRED_VERSION_linux = "4.9.0+git%" -PREFERRED_VERSION_u-boot = "v2016.11%" +PREFERRED_VERSION_linux = "4.11.0+git%" +PREFERRED_VERSION_u-boot = "v2017.03%" KERNEL_DEVICETREE = "sun4i-a10-pcduino.dtb" UBOOT_MACHINE = "Linksprite_pcDuino_defconfig" diff --git a/recipes-bsp/u-boot/u-boot_2016.11.bb b/recipes-bsp/u-boot/u-boot_2017.03.bb similarity index 94% rename from recipes-bsp/u-boot/u-boot_2016.11.bb rename to recipes-bsp/u-boot/u-boot_2017.03.bb index a8c6888..88a86ad 100644 --- a/recipes-bsp/u-boot/u-boot_2016.11.bb +++ b/recipes-bsp/u-boot/u-boot_2017.03.bb @@ -29,9 +29,9 @@ DEFAULT_PREFERENCE_sun8i="1" SRC_URI = "git://git.denx.de/u-boot.git;branch=master \ file://boot.cmd" -SRCREV = "29e0cfb4f77f7aa369136302cee14a91e22dca71" +SRCREV = "8537ddd769f460d7fb7a62a3dcc9669049702e51" -PV = "v2016.11+git${SRCPV}" +PV = "v2017.03+git${SRCPV}" PE = "2" diff --git a/recipes-kernel/linux/linux_git.bb b/recipes-kernel/linux/linux_git.bb index 2311810..cab0402 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.9.0 -PV = "4.9.0+git${SRCPV}" -SRCREV_pn-${PN} = "69973b830859bc6529a7a0468ba0d80ee5117826" +# 4.11.0-rc5 +PV = "4.11.0+git${SRCPV}" +SRCREV_pn-${PN} = "81d4bab4ce87228c37ab14a885438544af5c9ce6" SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=git;branch=master \ file://defconfig \ From 7037d13e6a32c0946aee5ee138b3a72cf96e83d6 Mon Sep 17 00:00:00 2001 From: Sergey Matyukevich Date: Sun, 9 Apr 2017 18:56:43 +0300 Subject: [PATCH 3/3] Add support for Orange Pi Zero board Add machine description for Orange Pi Zero board. Detailed hardware overview is available at the following linux-sunxi wiki page: http://linux-sunxi.org/Orange_Pi_Zero Signed-off-by: Sergey Matyukevich --- conf/machine/orange-pi-zero.conf | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 conf/machine/orange-pi-zero.conf diff --git a/conf/machine/orange-pi-zero.conf b/conf/machine/orange-pi-zero.conf new file mode 100644 index 0000000..1e9ac3f --- /dev/null +++ b/conf/machine/orange-pi-zero.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.11.0+git%" +PREFERRED_VERSION_u-boot = "v2017.03%" + +KERNEL_DEVICETREE = "sun8i-h2-plus-orangepi-zero.dtb" +UBOOT_MACHINE = "orangepi_zero_defconfig" + +DEFAULTTUNE = "cortexa7hf-neon-vfpv4"