mirror of
https://github.com/linux-sunxi/meta-sunxi.git
synced 2025-07-16 13:59:46 +02:00
Compare commits
21 Commits
173b53fce8
...
dunfell
Author | SHA1 | Date | |
---|---|---|---|
06091fa58f | |||
fd122b2ef1 | |||
f367a1ff2c | |||
7b7c64f8ef | |||
a3848d2e23 | |||
eae1cd6122 | |||
91ddc99c98 | |||
ea508b4f10 | |||
e76d39e3d2 | |||
a1a6504789 | |||
c47c7dcc61 | |||
b1db4fbfc7 | |||
e4d5c7323e | |||
37bfb7c8cd | |||
648484cd2c | |||
296735769d | |||
f3243b56d2 | |||
8b7ee077bf | |||
6787fdcc4a | |||
56bfc99b03 | |||
ebde1a411c |
@ -17,7 +17,7 @@ inherit image_types
|
|||||||
IMAGE_TYPEDEP_sunxi-sdimg = "${SDIMG_ROOTFS_TYPE}"
|
IMAGE_TYPEDEP_sunxi-sdimg = "${SDIMG_ROOTFS_TYPE}"
|
||||||
|
|
||||||
# Boot partition volume id
|
# Boot partition volume id
|
||||||
BOOTDD_VOLUME_ID ?= "${MACHINE}"
|
BOOTDD_VOLUME_ID ?= "boot"
|
||||||
|
|
||||||
# Boot partition size [in KiB]
|
# Boot partition size [in KiB]
|
||||||
BOOT_SPACE ?= "40960"
|
BOOT_SPACE ?= "40960"
|
||||||
|
9
conf/machine/bananapi-m2m.conf
Normal file
9
conf/machine/bananapi-m2m.conf
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#@TYPE: Machine
|
||||||
|
#@NAME: bananapi-m2m
|
||||||
|
#@DESCRIPTION: Machine configuration for the Banana Pi M2M, base on Allwinner H8 CPU
|
||||||
|
|
||||||
|
require conf/machine/include/sun8i.inc
|
||||||
|
|
||||||
|
KERNEL_DEVICETREE = "sun8i-r16-bananapi-m2m.dtb"
|
||||||
|
UBOOT_MACHINE = "Bananapi_m2m_defconfig"
|
||||||
|
|
9
conf/machine/bananapi-m2plus.conf
Normal file
9
conf/machine/bananapi-m2plus.conf
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#@TYPE: Machine
|
||||||
|
#@NAME: bananapi-m2plus
|
||||||
|
#@DESCRIPTION: Machine configuration for the Banana Pi M2+, base on Allwinner H3 CPU
|
||||||
|
|
||||||
|
require conf/machine/include/sun8i.inc
|
||||||
|
|
||||||
|
KERNEL_DEVICETREE = "sun8i-h3-bananapi-m2-plus.dtb"
|
||||||
|
UBOOT_MACHINE = "bananapi_m2_plus_h3_defconfig"
|
||||||
|
|
8
conf/machine/bananapi-m64.conf
Normal file
8
conf/machine/bananapi-m64.conf
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#@TYPE: Machine
|
||||||
|
#@NAME: pine64-plus
|
||||||
|
#@DESCRIPTION: Machine configuration for the pine64-plus, based on Allwinner A64 CPU
|
||||||
|
|
||||||
|
require conf/machine/include/sun50i.inc
|
||||||
|
|
||||||
|
KERNEL_DEVICETREE = "allwinner/sun50i-a64-bananapi-m64.dtb"
|
||||||
|
UBOOT_MACHINE = "bananapi_m64_defconfig"
|
8
conf/machine/orange-pi-plus2e.conf
Normal file
8
conf/machine/orange-pi-plus2e.conf
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#@TYPE: Machine
|
||||||
|
#@NAME: orange-pi-plus2e
|
||||||
|
#@DESCRIPTION: Machine configuration for the orange-pi-plus2e, base on allwinner H3 CPU
|
||||||
|
|
||||||
|
require conf/machine/include/sun8i.inc
|
||||||
|
|
||||||
|
KERNEL_DEVICETREE = "sun8i-h3-orangepi-plus2e.dtb"
|
||||||
|
UBOOT_MACHINE = "orangepi_plus2e_defconfig"
|
@ -0,0 +1,67 @@
|
|||||||
|
From bb6f500c10cc8f5f31245626899e0732b7b287c5 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Marek Belisko <marek.belisko@open-nandra.com>
|
||||||
|
Date: Wed, 19 Aug 2020 13:39:49 +0200
|
||||||
|
Subject: [PATCH] Revert "sunxi: psci: avoid error address-of-packed-member"
|
||||||
|
|
||||||
|
This reverts commit 9bd34a69a453d409792e08c00953ce8862145e65.
|
||||||
|
---
|
||||||
|
arch/arm/cpu/armv7/sunxi/psci.c | 16 +++++-----------
|
||||||
|
1 file changed, 5 insertions(+), 11 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/arch/arm/cpu/armv7/sunxi/psci.c b/arch/arm/cpu/armv7/sunxi/psci.c
|
||||||
|
index 5b68900..2c5d99e 100644
|
||||||
|
--- a/arch/arm/cpu/armv7/sunxi/psci.c
|
||||||
|
+++ b/arch/arm/cpu/armv7/sunxi/psci.c
|
||||||
|
@@ -75,7 +75,7 @@ static void __secure __mdelay(u32 ms)
|
||||||
|
isb();
|
||||||
|
}
|
||||||
|
|
||||||
|
-static void __secure clamp_release(void __maybe_unused *clamp)
|
||||||
|
+static void __secure clamp_release(u32 __maybe_unused *clamp)
|
||||||
|
{
|
||||||
|
#if defined(CONFIG_MACH_SUN6I) || defined(CONFIG_MACH_SUN7I) || \
|
||||||
|
defined(CONFIG_MACH_SUN8I_H3) || \
|
||||||
|
@@ -90,7 +90,7 @@ static void __secure clamp_release(void __maybe_unused *clamp)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
-static void __secure clamp_set(void __maybe_unused *clamp)
|
||||||
|
+static void __secure clamp_set(u32 __maybe_unused *clamp)
|
||||||
|
{
|
||||||
|
#if defined(CONFIG_MACH_SUN6I) || defined(CONFIG_MACH_SUN7I) || \
|
||||||
|
defined(CONFIG_MACH_SUN8I_H3) || \
|
||||||
|
@@ -99,28 +99,22 @@ static void __secure clamp_set(void __maybe_unused *clamp)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
-static void __secure sunxi_power_switch(void *clamp, void *pwroff_ptr, bool on,
|
||||||
|
+static void __secure sunxi_power_switch(u32 *clamp, u32 *pwroff, bool on,
|
||||||
|
int cpu)
|
||||||
|
{
|
||||||
|
- u32 pwroff;
|
||||||
|
-
|
||||||
|
- memcpy(&pwroff, pwroff_ptr, sizeof(u32));
|
||||||
|
-
|
||||||
|
if (on) {
|
||||||
|
/* Release power clamp */
|
||||||
|
clamp_release(clamp);
|
||||||
|
|
||||||
|
/* Clear power gating */
|
||||||
|
- clrbits_le32(&pwroff, BIT(cpu));
|
||||||
|
+ clrbits_le32(pwroff, BIT(cpu));
|
||||||
|
} else {
|
||||||
|
/* Set power gating */
|
||||||
|
- setbits_le32(&pwroff, BIT(cpu));
|
||||||
|
+ setbits_le32(pwroff, BIT(cpu));
|
||||||
|
|
||||||
|
/* Activate power clamp */
|
||||||
|
clamp_set(clamp);
|
||||||
|
}
|
||||||
|
-
|
||||||
|
- memcpy(pwroff_ptr, &pwroff, sizeof(u32));
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_MACH_SUN8I_R40
|
||||||
|
--
|
||||||
|
2.7.4
|
||||||
|
|
@ -15,6 +15,10 @@ SRC_URI += " \
|
|||||||
file://0001-nanopi_neo_air_defconfig-Enable-eMMC-support.patch \
|
file://0001-nanopi_neo_air_defconfig-Enable-eMMC-support.patch \
|
||||||
file://boot.cmd \
|
file://boot.cmd \
|
||||||
"
|
"
|
||||||
|
# fix booting issue on orange pi zero
|
||||||
|
SRC_URI_append_orange-pi-zero = " file://0002-Revert-sunxi-psci-avoid-error-address-of-packed-memb.patch"
|
||||||
|
|
||||||
|
SRC_URI_append_nanopi-neo = " file://0002-Revert-sunxi-psci-avoid-error-address-of-packed-memb.patch"
|
||||||
|
|
||||||
UBOOT_ENV_SUFFIX = "scr"
|
UBOOT_ENV_SUFFIX = "scr"
|
||||||
UBOOT_ENV = "boot"
|
UBOOT_ENV = "boot"
|
||||||
|
@ -27,5 +27,6 @@ SRC_URI = "https://www.kernel.org/pub/linux/kernel/v5.x/linux-${PV}.tar.xz \
|
|||||||
"
|
"
|
||||||
|
|
||||||
SRC_URI_append_use-mailine-graphics = " file://drm.cfg"
|
SRC_URI_append_use-mailine-graphics = " file://drm.cfg"
|
||||||
|
SRC_URI_append_bananapi = " file://axp20x.cfg"
|
||||||
|
|
||||||
FILES_${KERNEL_PACKAGE_NAME}-base_append = " ${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.builtin.modinfo"
|
FILES_${KERNEL_PACKAGE_NAME}-base_append = " ${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.builtin.modinfo"
|
||||||
|
4
recipes-kernel/linux/linux-mainline/axp20x.cfg
Normal file
4
recipes-kernel/linux/linux-mainline/axp20x.cfg
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
CONFIG_MFD_AXP20X_I2C=y
|
||||||
|
CONFIG_MFD_AXP20X=y
|
||||||
|
CONFIG_IIO=y
|
||||||
|
CONFIG_AXP20X_POWER=y
|
@ -19,8 +19,8 @@ KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
|
|||||||
|
|
||||||
S = "${WORKDIR}/linux-${PV}"
|
S = "${WORKDIR}/linux-${PV}"
|
||||||
|
|
||||||
SRC_URI[md5sum] = "6287e6d6658e593a2978dc718f7de3f3"
|
SRC_URI[md5sum] = "dfb4db3d95bdcd8114281e32eb0be5cd"
|
||||||
SRC_URI[sha256sum] = "b4784571bd7f3dc10ae3dc4414876dbd73fc6750401299b206670ce3e5c4bb43"
|
SRC_URI[sha256sum] = "d8c5d7844214510e85ceb9f5236f27f63fc03535a143f3aaa0c1677a8f92e631"
|
||||||
|
|
||||||
SRC_URI = "https://www.kernel.org/pub/linux/kernel/v4.x/linux-${PV}.tar.xz \
|
SRC_URI = "https://www.kernel.org/pub/linux/kernel/v4.x/linux-${PV}.tar.xz \
|
||||||
file://0003-ARM-dts-nanopi-neo-air-Add-WiFi-eMMC.patch \
|
file://0003-ARM-dts-nanopi-neo-air-Add-WiFi-eMMC.patch \
|
6
recipes-kernel/linux/linux-mainline_5.4.111.bb
Normal file
6
recipes-kernel/linux/linux-mainline_5.4.111.bb
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
require linux-mainline.inc
|
||||||
|
|
||||||
|
DESCRIPTION = "Mainline Longterm Linux kernel"
|
||||||
|
|
||||||
|
SRC_URI[md5sum] = "a3820e9aa56af51c0331b7f427e6f71b"
|
||||||
|
SRC_URI[sha256sum] = "21626132658dc34cb41b7aa7b80ecf83751890a71ac1a63d77aea9d488271a03"
|
@ -1,6 +0,0 @@
|
|||||||
require linux-mainline.inc
|
|
||||||
|
|
||||||
DESCRIPTION = "Mainline Longterm Linux kernel"
|
|
||||||
|
|
||||||
SRC_URI[md5sum] = "dccb4d028c97b6fe5d0bca14a1afcd58"
|
|
||||||
SRC_URI[sha256sum] = "92e9f1fd69543e9ce2a9e6eb918823b1846d2dd99246a74456263cd5ad234d89"
|
|
@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/${LICENSE};md5=0ceb3372c9595f0a
|
|||||||
PV = "1.0"
|
PV = "1.0"
|
||||||
PR = "r0"
|
PR = "r0"
|
||||||
|
|
||||||
SRCREV = "bddd21b7f895be9f0c37e435f0a7ac84405c6091"
|
SRCREV = "761658e1701c77a0a84706754e6db1a25ee60b82"
|
||||||
|
|
||||||
COMPATIBLE_MACHINE = "orange-pi-zero"
|
COMPATIBLE_MACHINE = "orange-pi-zero"
|
||||||
|
|
||||||
|
@ -11,9 +11,11 @@ RDEPENDS_${PN} += "xradio-firmware"
|
|||||||
|
|
||||||
COMPATIBLE_MACHINE = "orange-pi-zero"
|
COMPATIBLE_MACHINE = "orange-pi-zero"
|
||||||
|
|
||||||
SRCREV = "d649e5a78efdc56ecd0951e35ca60db175650232"
|
SRCREV = "279868ac96f6db34b65f68c6722830fa0aacb86b"
|
||||||
|
|
||||||
SRC_URI = "git://github.com/fifteenhex/xradio.git;protocol=https \
|
SRC_URI = "\
|
||||||
|
git://github.com/dbeinder/xradio.git;protocol=https;branch=karabek_rebase \
|
||||||
|
file://0001-Enable-out-of-tree-compilation.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
@ -0,0 +1,30 @@
|
|||||||
|
From 15651d333da5429a1544f0a17d5f02c74f693ad7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Marek Belisko <marek.belisko@open-nandra.com>
|
||||||
|
Date: Thu, 15 Oct 2020 14:45:07 +0200
|
||||||
|
Subject: [PATCH] Enable out of tree compilation
|
||||||
|
|
||||||
|
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
|
||||||
|
---
|
||||||
|
Makefile | 6 +++---
|
||||||
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index 7a0de9a..ee75f0b 100644
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -1,9 +1,9 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
# # Standalone Makefile - uncomment for out-of-tree compilation
|
||||||
|
-# CONFIG_WLAN_VENDOR_XRADIO := m
|
||||||
|
-# ccflags-y += -DCONFIG_XRADIO_USE_EXTENSIONS
|
||||||
|
-# ccflags-y += -DCONFIG_XRADIO_WAPI_SUPPORT
|
||||||
|
+CONFIG_WLAN_VENDOR_XRADIO := m
|
||||||
|
+ccflags-y += -DCONFIG_XRADIO_USE_EXTENSIONS
|
||||||
|
+ccflags-y += -DCONFIG_XRADIO_WAPI_SUPPORT
|
||||||
|
|
||||||
|
# Kernel part
|
||||||
|
|
||||||
|
--
|
||||||
|
2.7.4
|
||||||
|
|
Reference in New Issue
Block a user