forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bot] AutoMerging: merge all upstream's changes:
* https://github.com/coolsnowwolf/lede: uboot-rockchip: add fastrhino r66s support kernel: mdio-devres: fix of-mdio dependency (coolsnowwolf#9912) kernel: modules: fix kmod-mdio-devres dependency for 5.15 (coolsnowwolf#9911) armvirt: copy config files from 5.10 (coolsnowwolf#9910) armvirt: refresh 5.10 config (coolsnowwolf#9908) armvirt: enable MMIO_CMDLINE_DEVICES for firecracker support (coolsnowwolf#9907) armvirt: switch to Kernel 5.10 (coolsnowwolf#9906) rockchip: switch kernel version to 5.19 rockchip: add FastRhino R66S support in kernel 5.19 zlib: backport null dereference fix ramips: mt7628: fix memory controller reset bit
- Loading branch information
Showing
21 changed files
with
1,460 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
92 changes: 92 additions & 0 deletions
92
package/boot/uboot-rockchip/patches/016-uboot-add-FastRhino-R66S-support.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
--- /dev/null | ||
+++ b/arch/arm/dts/rk3568-fastrhino-r66s-u-boot.dtsi | ||
@@ -0,0 +1,25 @@ | ||
+// SPDX-License-Identifier: GPL-2.0+ | ||
+/* | ||
+ * (C) Copyright 2021 Rockchip Electronics Co., Ltd | ||
+ */ | ||
+ | ||
+#include "rk3568-u-boot.dtsi" | ||
+ | ||
+/ { | ||
+ chosen { | ||
+ stdout-path = &uart2; | ||
+ u-boot,spl-boot-order = "same-as-spl", &sdhci, &sdmmc0; | ||
+ }; | ||
+}; | ||
+ | ||
+&sdmmc0 { | ||
+ bus-width = <4>; | ||
+ u-boot,dm-spl; | ||
+ u-boot,spl-fifo-mode; | ||
+}; | ||
+ | ||
+&uart2 { | ||
+ clock-frequency = <24000000>; | ||
+ u-boot,dm-spl; | ||
+ status = "okay"; | ||
+}; | ||
--- /dev/null | ||
+++ b/arch/arm/dts/rk3568-fastrhino-r66s.dts | ||
@@ -0,0 +1,9 @@ | ||
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT) | ||
+ | ||
+/dts-v1/; | ||
+#include "rk3568-evb.dts" | ||
+ | ||
+/ { | ||
+ model = "FastRhino R66S"; | ||
+ compatible = "fastrhino,r66s", "rockchip,rk3568"; | ||
+}; | ||
--- /dev/null | ||
+++ b/board/fastrhino/fastrhino-r66s-rk3568/Kconfig | ||
@@ -0,0 +1,15 @@ | ||
+if TARGET_FASTRHINO_R66S_RK3568 | ||
+ | ||
+config SYS_BOARD | ||
+ default "fastrhino-r66s-rk3568" | ||
+ | ||
+config SYS_VENDOR | ||
+ default "fastrhino" | ||
+ | ||
+config SYS_CONFIG_NAME | ||
+ default "fastrhino-r66s-rk3568" | ||
+ | ||
+config BOARD_SPECIFIC_OPTIONS # dummy | ||
+ def_bool y | ||
+ | ||
+endif | ||
--- /dev/null | ||
+++ b/board/fastrhino/fastrhino-r66s-rk3568/Makefile | ||
@@ -0,0 +1,4 @@ | ||
+# SPDX-License-Identifier: GPL-2.0+ | ||
+# | ||
+ | ||
+obj-y += fastrhino-r66s-rk3568.o | ||
--- /dev/null | ||
+++ b/board/fastrhino/fastrhino-r66s-rk3568/fastrhino-r66s-rk3568.c | ||
@@ -0,0 +1,4 @@ | ||
+ // SPDX-License-Identifier: GPL-2.0+ | ||
+/* | ||
+ * | ||
+ */ | ||
--- /dev/null | ||
+++ b/include/configs/fastrhino-r66s-rk3568.h | ||
@@ -0,0 +1,17 @@ | ||
+/* SPDX-License-Identifier: GPL-2.0+ */ | ||
+ | ||
+#ifndef __FASTRHINO_R66S_RK3568_H | ||
+#define __FASTRHINO_R66S_RK3568_H | ||
+ | ||
+#include <configs/rk3568_common.h> | ||
+ | ||
+#define CONFIG_SUPPORT_EMMC_RPMB | ||
+ | ||
+#define ROCKCHIP_DEVICE_SETTINGS \ | ||
+ "stdout=serial,vidconsole\0" \ | ||
+ "stderr=serial,vidconsole\0" | ||
+ | ||
+#define CONFIG_USB_OHCI_NEW | ||
+#define CONFIG_SYS_USB_OHCI_MAX_ROOT_PORTS 2 | ||
+ | ||
+#endif |
3 changes: 2 additions & 1 deletion
3
package/boot/uboot-rockchip/patches/900-arm-boot-add-dts-files.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
--- a/arch/arm/dts/Makefile | ||
+++ b/arch/arm/dts/Makefile | ||
@@ -157,6 +157,7 @@ | ||
@@ -157,6 +157,8 @@ | ||
rk3399-nanopi-m4b.dtb \ | ||
rk3399-nanopi-neo4.dtb \ | ||
rk3399-nanopi-r4s.dtb \ | ||
+ rk3399-nanopi-r4se.dtb \ | ||
+ rk3568-fastrhino-r66s.dtb \ | ||
rk3399-orangepi.dtb \ | ||
rk3399-pinebook-pro.dtb \ | ||
rk3399-puma-haikou.dtb \ |
97 changes: 97 additions & 0 deletions
97
package/boot/uboot-rockchip/src/configs/fastrhino-r66s-rk3568_defconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
CONFIG_ARM=y | ||
CONFIG_SKIP_LOWLEVEL_INIT=y | ||
CONFIG_ARCH_ROCKCHIP=y | ||
CONFIG_SYS_TEXT_BASE=0x00a00000 | ||
CONFIG_SPL_LIBCOMMON_SUPPORT=y | ||
CONFIG_SPL_LIBGENERIC_SUPPORT=y | ||
CONFIG_NR_DRAM_BANKS=2 | ||
CONFIG_DEFAULT_DEVICE_TREE="rk3568-fastrhino-r66s" | ||
CONFIG_ROCKCHIP_RK3568=y | ||
CONFIG_SPL_ROCKCHIP_BACK_TO_BROM=y | ||
CONFIG_SPL_ROCKCHIP_COMMON_BOARD=y | ||
CONFIG_SPL_MMC=y | ||
CONFIG_SPL_SERIAL=y | ||
CONFIG_SPL_STACK_R_ADDR=0x600000 | ||
CONFIG_TARGET_FASTRHINO_R66S_RK3568=y | ||
CONFIG_DEBUG_UART_BASE=0xFE660000 | ||
CONFIG_DEBUG_UART_CLOCK=24000000 | ||
CONFIG_DEBUG_UART=y | ||
CONFIG_SYS_LOAD_ADDR=0xc00800 | ||
CONFIG_API=y | ||
CONFIG_FIT=y | ||
CONFIG_FIT_VERBOSE=y | ||
CONFIG_SPL_LOAD_FIT=y | ||
CONFIG_OF_SYSTEM_SETUP=y | ||
CONFIG_DEFAULT_FDT_FILE="rockchip/rk3568-fastrhino-r66s.dtb" | ||
# CONFIG_SYS_DEVICE_NULLDEV is not set | ||
# CONFIG_DISPLAY_CPUINFO is not set | ||
CONFIG_DISPLAY_BOARDINFO_LATE=y | ||
# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set | ||
CONFIG_SPL_STACK_R=y | ||
CONFIG_SPL_SEPARATE_BSS=y | ||
CONFIG_SPL_ATF=y | ||
CONFIG_SPL_ATF_LOAD_IMAGE_V2=y | ||
CONFIG_CMD_BIND=y | ||
CONFIG_CMD_CLK=y | ||
CONFIG_CMD_GPIO=y | ||
CONFIG_CMD_GPT=y | ||
CONFIG_CMD_I2C=y | ||
CONFIG_CMD_MMC=y | ||
CONFIG_CMD_USB=y | ||
# CONFIG_CMD_SETEXPR is not set | ||
CONFIG_CMD_PMIC=y | ||
CONFIG_CMD_REGULATOR=y | ||
# CONFIG_SPL_DOS_PARTITION is not set | ||
CONFIG_SPL_OF_CONTROL=y | ||
CONFIG_OF_LIVE=y | ||
CONFIG_NET_RANDOM_ETHADDR=y | ||
CONFIG_SPL_DM_WARN=y | ||
CONFIG_SPL_REGMAP=y | ||
CONFIG_SPL_SYSCON=y | ||
CONFIG_SPL_CLK=y | ||
CONFIG_ROCKCHIP_GPIO=y | ||
CONFIG_ROCKCHIP_GPIO_V2=y | ||
CONFIG_SYS_I2C_ROCKCHIP=y | ||
CONFIG_MISC=y | ||
CONFIG_MMC_HS200_SUPPORT=y | ||
CONFIG_SPL_MMC_HS200_SUPPORT=y | ||
CONFIG_MMC_DW=y | ||
CONFIG_MMC_DW_ROCKCHIP=y | ||
CONFIG_MMC_SDHCI=y | ||
CONFIG_MMC_SDHCI_SDMA=y | ||
CONFIG_MMC_SDHCI_ROCKCHIP=y | ||
CONFIG_DM_ETH=y | ||
CONFIG_ETH_DESIGNWARE=y | ||
CONFIG_GMAC_ROCKCHIP=y | ||
CONFIG_POWER_DOMAIN=y | ||
CONFIG_DM_PMIC=y | ||
CONFIG_PMIC_RK8XX=y | ||
CONFIG_SPL_PMIC_RK8XX=y | ||
CONFIG_REGULATOR_PWM=y | ||
CONFIG_DM_REGULATOR_FIXED=y | ||
CONFIG_SPL_DM_REGULATOR_FIXED=y | ||
CONFIG_DM_REGULATOR_GPIO=y | ||
CONFIG_REGULATOR_RK8XX=y | ||
CONFIG_PWM_ROCKCHIP=y | ||
CONFIG_SPL_RAM=y | ||
CONFIG_DM_RESET=y | ||
CONFIG_BAUDRATE=1500000 | ||
CONFIG_DEBUG_UART_SHIFT=2 | ||
CONFIG_SYSRESET=y | ||
CONFIG_SYSRESET_PSCI=y | ||
CONFIG_USB=y | ||
CONFIG_USB_XHCI_HCD=y | ||
CONFIG_USB_XHCI_DWC3=y | ||
CONFIG_USB_EHCI_HCD=y | ||
CONFIG_USB_EHCI_GENERIC=y | ||
CONFIG_USB_OHCI_HCD=y | ||
CONFIG_USB_OHCI_GENERIC=y | ||
CONFIG_USB_DWC3=y | ||
CONFIG_USB_DWC3_GENERIC=y | ||
CONFIG_ROCKCHIP_USB2_PHY=y | ||
CONFIG_USB_KEYBOARD=y | ||
CONFIG_USB_HOST_ETHER=y | ||
CONFIG_USB_ETHER_LAN75XX=y | ||
CONFIG_USB_ETHER_LAN78XX=y | ||
CONFIG_USB_ETHER_SMSC95XX=y | ||
CONFIG_ERRNO_STR=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
package/libs/zlib/patches/007-fix-null-dereference-in-fix-CVE-2022-37434.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From 1eb7682f845ac9e9bf9ae35bbfb3bad5dacbd91d Mon Sep 17 00:00:00 2001 | ||
From: Mark Adler <fork@madler.net> | ||
Date: Mon, 8 Aug 2022 10:50:09 -0700 | ||
Subject: [PATCH] Fix extra field processing bug that dereferences NULL | ||
state->head. | ||
|
||
The recent commit to fix a gzip header extra field processing bug | ||
introduced the new bug fixed here. | ||
--- | ||
inflate.c | 4 ++-- | ||
1 file changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/inflate.c b/inflate.c | ||
index 7a7289749..2a3c4fe98 100644 | ||
--- a/inflate.c | ||
+++ b/inflate.c | ||
@@ -763,10 +763,10 @@ int flush; | ||
copy = state->length; | ||
if (copy > have) copy = have; | ||
if (copy) { | ||
- len = state->head->extra_len - state->length; | ||
if (state->head != Z_NULL && | ||
state->head->extra != Z_NULL && | ||
- len < state->head->extra_max) { | ||
+ (len = state->head->extra_len - state->length) < | ||
+ state->head->extra_max) { | ||
zmemcpy(state->head->extra + len, next, | ||
len + copy > state->head->extra_max ? | ||
state->head->extra_max - len : copy); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
CONFIG_ALIGNMENT_TRAP=y | ||
CONFIG_ARCH_32BIT_OFF_T=y | ||
CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y | ||
CONFIG_ARCH_MULTIPLATFORM=y | ||
CONFIG_ARCH_MULTI_V6_V7=y | ||
CONFIG_ARCH_MULTI_V7=y | ||
CONFIG_ARCH_NR_GPIO=0 | ||
CONFIG_ARCH_OPTIONAL_KERNEL_RWX=y | ||
CONFIG_ARCH_OPTIONAL_KERNEL_RWX_DEFAULT=y | ||
CONFIG_ARCH_SELECT_MEMORY_MODEL=y | ||
CONFIG_ARCH_VIRT=y | ||
CONFIG_ARM=y | ||
CONFIG_ARM_CPU_SUSPEND=y | ||
CONFIG_ARM_HAS_SG_CHAIN=y | ||
CONFIG_ARM_HEAVY_MB=y | ||
CONFIG_ARM_L1_CACHE_SHIFT=6 | ||
CONFIG_ARM_L1_CACHE_SHIFT_6=y | ||
CONFIG_ARM_LPAE=y | ||
CONFIG_ARM_PATCH_IDIV=y | ||
CONFIG_ARM_PATCH_PHYS_VIRT=y | ||
CONFIG_ARM_PSCI=y | ||
CONFIG_ARM_THUMB=y | ||
CONFIG_ARM_UNWIND=y | ||
CONFIG_ARM_VIRT_EXT=y | ||
CONFIG_AUTO_ZRELADDR=y | ||
CONFIG_BINFMT_FLAT_ARGVP_ENVP_ON_STACK=y | ||
CONFIG_CACHE_L2X0=y | ||
CONFIG_COMPAT_32BIT_TIME=y | ||
CONFIG_CPU_32v6K=y | ||
CONFIG_CPU_32v7=y | ||
CONFIG_CPU_ABRT_EV7=y | ||
CONFIG_CPU_CACHE_V7=y | ||
CONFIG_CPU_CACHE_VIPT=y | ||
CONFIG_CPU_COPY_V6=y | ||
CONFIG_CPU_CP15=y | ||
CONFIG_CPU_CP15_MMU=y | ||
CONFIG_CPU_HAS_ASID=y | ||
CONFIG_CPU_PABRT_V7=y | ||
CONFIG_CPU_SPECTRE=y | ||
CONFIG_CPU_THUMB_CAPABLE=y | ||
CONFIG_CPU_TLB_V7=y | ||
CONFIG_CPU_V7=y | ||
CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S" | ||
CONFIG_DMA_OPS=y | ||
CONFIG_EDAC_ATOMIC_SCRUB=y | ||
CONFIG_GENERIC_IRQ_MULTI_HANDLER=y | ||
CONFIG_GENERIC_VDSO_32=y | ||
CONFIG_HARDEN_BRANCH_PREDICTOR=y | ||
CONFIG_HAVE_SMP=y | ||
CONFIG_HZ_FIXED=0 | ||
CONFIG_HZ_PERIODIC=y | ||
CONFIG_MIGHT_HAVE_CACHE_L2X0=y | ||
CONFIG_MODULES_USE_ELF_REL=y | ||
CONFIG_NEON=y | ||
CONFIG_NR_CPUS=4 | ||
CONFIG_OLD_SIGACTION=y | ||
CONFIG_OLD_SIGSUSPEND3=y | ||
CONFIG_OUTER_CACHE=y | ||
CONFIG_OUTER_CACHE_SYNC=y | ||
CONFIG_PAGE_OFFSET=0xC0000000 | ||
CONFIG_PERF_USE_VMALLOC=y | ||
CONFIG_RTC_MC146818_LIB=y | ||
CONFIG_SERIAL_OF_PLATFORM=y | ||
CONFIG_SMP_ON_UP=y | ||
CONFIG_SWP_EMULATE=y | ||
CONFIG_SYS_SUPPORTS_APM_EMULATION=y | ||
CONFIG_UNCOMPRESS_INCLUDE="debug/uncompress.h" | ||
CONFIG_UNWINDER_ARM=y | ||
CONFIG_USE_OF=y | ||
CONFIG_VFP=y | ||
CONFIG_VFPv3=y | ||
CONFIG_XZ_DEC_ARM=y | ||
CONFIG_XZ_DEC_BCJ=y | ||
CONFIG_ZBOOT_ROM_BSS=0 | ||
CONFIG_ZBOOT_ROM_TEXT=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.