diff options
-rw-r--r-- | mk/linux-ver.mk | 10 | ||||
-rw-r--r-- | target/linux/Config.in.kernelversion | 12 | ||||
-rw-r--r-- | target/linux/patches/6.1.53/armnommu-fix-elf-fdpic-personality.patch (renamed from target/linux/patches/6.1.49/armnommu-fix-elf-fdpic-personality.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/6.1.53/armnommu-fix-thread-registers.patch (renamed from target/linux/patches/6.1.49/armnommu-fix-thread-registers.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/6.1.53/armnommu-versatile.patch (renamed from target/linux/patches/6.1.49/armnommu-versatile.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/6.1.53/board-rockpi4-0003-arm64-dts-pcie.patch (renamed from target/linux/patches/6.1.49/board-rockpi4-0003-arm64-dts-pcie.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/6.1.53/enable-ethernet-bpi-m2-plus.patch (renamed from target/linux/patches/6.1.49/enable-ethernet-bpi-m2-plus.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/6.1.53/hppa-cross-compile.patch (renamed from target/linux/patches/6.1.49/hppa-cross-compile.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/6.1.53/m68k-Fix-invalid-.section-syntax.patch (renamed from target/linux/patches/6.1.49/m68k-Fix-invalid-.section-syntax.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/6.1.53/macsonic.patch (renamed from target/linux/patches/6.1.49/macsonic.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/6.1.53/nios2.patch (renamed from target/linux/patches/6.1.49/nios2.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/6.1.53/riscv32.patch (renamed from target/linux/patches/6.1.49/riscv32.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/6.1.53/rockchip-115200.patch (renamed from target/linux/patches/6.1.49/rockchip-115200.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/6.1.53/rockchip-pcie-timeout.patch (renamed from target/linux/patches/6.1.49/rockchip-pcie-timeout.patch) | 0 | ||||
-rw-r--r-- | target/linux/patches/6.4.12/armnommu-fix-elf-fdpic-personality.patch | 54 | ||||
-rw-r--r-- | target/linux/patches/6.4.12/armnommu-fix-thread-registers.patch | 57 | ||||
-rw-r--r-- | target/linux/patches/6.4.12/armnommu-versatile.patch | 101 |
17 files changed, 3 insertions, 231 deletions
diff --git a/mk/linux-ver.mk b/mk/linux-ver.mk index dad646962..76a4a1cb7 100644 --- a/mk/linux-ver.mk +++ b/mk/linux-ver.mk @@ -21,17 +21,11 @@ KERNEL_RELEASE:= 1 KERNEL_VERSION:= $(KERNEL_FILE_VER)-$(KERNEL_RELEASE) KERNEL_HASH:= 23765dd44425462cd92adbee52670608fd7f3fd183a83b25ba7a7b4883d0451b endif -ifeq ($(ADK_TARGET_LINUX_KERNEL_VERSION_6_4),y) -KERNEL_FILE_VER:= 6.4.12 -KERNEL_RELEASE:= 1 -KERNEL_VERSION:= $(KERNEL_FILE_VER)-$(KERNEL_RELEASE) -KERNEL_HASH:= cca91be956fe081f8f6da72034cded96fe35a50be4bfb7e103e354aa2159a674 -endif ifeq ($(ADK_TARGET_LINUX_KERNEL_VERSION_6_1),y) -KERNEL_FILE_VER:= 6.1.49 +KERNEL_FILE_VER:= 6.1.53 KERNEL_RELEASE:= 1 KERNEL_VERSION:= $(KERNEL_FILE_VER)-$(KERNEL_RELEASE) -KERNEL_HASH:= c9ea14231ca4ca6e3882a9339a8c3c414e4c91519d3e50af6822f47e99057a0f +KERNEL_HASH:= 5f57e0a04810d24f2b1a8fc95451241f80530e678717eda0f45104c6dc78ed7e endif ifeq ($(ADK_TARGET_LINUX_KERNEL_VERSION_5_15),y) KERNEL_FILE_VER:= 5.15.128 diff --git a/target/linux/Config.in.kernelversion b/target/linux/Config.in.kernelversion index 7dd28bd5a..2fd58eeab 100644 --- a/target/linux/Config.in.kernelversion +++ b/target/linux/Config.in.kernelversion @@ -46,18 +46,8 @@ config ADK_TARGET_LINUX_KERNEL_VERSION_6_5 depends on !ADK_TARGET_ARCH_METAG depends on !ADK_TARGET_ARCH_NDS32 -config ADK_TARGET_LINUX_KERNEL_VERSION_6_4 - bool "6.4.12" - depends on !ADK_TARGET_ARCH_AVR32 - depends on !ADK_TARGET_ARCH_BFIN - depends on !ADK_TARGET_ARCH_C6X - depends on !ADK_TARGET_ARCH_CRIS - depends on !ADK_TARGET_ARCH_FRV - depends on !ADK_TARGET_ARCH_METAG - depends on !ADK_TARGET_ARCH_NDS32 - config ADK_TARGET_LINUX_KERNEL_VERSION_6_1 - bool "6.1.49" + bool "6.1.53" depends on !ADK_TARGET_ARCH_AVR32 depends on !ADK_TARGET_ARCH_BFIN depends on !ADK_TARGET_ARCH_C6X diff --git a/target/linux/patches/6.1.49/armnommu-fix-elf-fdpic-personality.patch b/target/linux/patches/6.1.53/armnommu-fix-elf-fdpic-personality.patch index 78b1a10ff..78b1a10ff 100644 --- a/target/linux/patches/6.1.49/armnommu-fix-elf-fdpic-personality.patch +++ b/target/linux/patches/6.1.53/armnommu-fix-elf-fdpic-personality.patch diff --git a/target/linux/patches/6.1.49/armnommu-fix-thread-registers.patch b/target/linux/patches/6.1.53/armnommu-fix-thread-registers.patch index 8ab2196dc..8ab2196dc 100644 --- a/target/linux/patches/6.1.49/armnommu-fix-thread-registers.patch +++ b/target/linux/patches/6.1.53/armnommu-fix-thread-registers.patch diff --git a/target/linux/patches/6.1.49/armnommu-versatile.patch b/target/linux/patches/6.1.53/armnommu-versatile.patch index f8f10f50b..f8f10f50b 100644 --- a/target/linux/patches/6.1.49/armnommu-versatile.patch +++ b/target/linux/patches/6.1.53/armnommu-versatile.patch diff --git a/target/linux/patches/6.1.49/board-rockpi4-0003-arm64-dts-pcie.patch b/target/linux/patches/6.1.53/board-rockpi4-0003-arm64-dts-pcie.patch index 1777e7a86..1777e7a86 100644 --- a/target/linux/patches/6.1.49/board-rockpi4-0003-arm64-dts-pcie.patch +++ b/target/linux/patches/6.1.53/board-rockpi4-0003-arm64-dts-pcie.patch diff --git a/target/linux/patches/6.1.49/enable-ethernet-bpi-m2-plus.patch b/target/linux/patches/6.1.53/enable-ethernet-bpi-m2-plus.patch index 7e9abd9ce..7e9abd9ce 100644 --- a/target/linux/patches/6.1.49/enable-ethernet-bpi-m2-plus.patch +++ b/target/linux/patches/6.1.53/enable-ethernet-bpi-m2-plus.patch diff --git a/target/linux/patches/6.1.49/hppa-cross-compile.patch b/target/linux/patches/6.1.53/hppa-cross-compile.patch index 5400e87a0..5400e87a0 100644 --- a/target/linux/patches/6.1.49/hppa-cross-compile.patch +++ b/target/linux/patches/6.1.53/hppa-cross-compile.patch diff --git a/target/linux/patches/6.1.49/m68k-Fix-invalid-.section-syntax.patch b/target/linux/patches/6.1.53/m68k-Fix-invalid-.section-syntax.patch index c2a73d76a..c2a73d76a 100644 --- a/target/linux/patches/6.1.49/m68k-Fix-invalid-.section-syntax.patch +++ b/target/linux/patches/6.1.53/m68k-Fix-invalid-.section-syntax.patch diff --git a/target/linux/patches/6.1.49/macsonic.patch b/target/linux/patches/6.1.53/macsonic.patch index 177397221..177397221 100644 --- a/target/linux/patches/6.1.49/macsonic.patch +++ b/target/linux/patches/6.1.53/macsonic.patch diff --git a/target/linux/patches/6.1.49/nios2.patch b/target/linux/patches/6.1.53/nios2.patch index 43631971e..43631971e 100644 --- a/target/linux/patches/6.1.49/nios2.patch +++ b/target/linux/patches/6.1.53/nios2.patch diff --git a/target/linux/patches/6.1.49/riscv32.patch b/target/linux/patches/6.1.53/riscv32.patch index 648b0de4d..648b0de4d 100644 --- a/target/linux/patches/6.1.49/riscv32.patch +++ b/target/linux/patches/6.1.53/riscv32.patch diff --git a/target/linux/patches/6.1.49/rockchip-115200.patch b/target/linux/patches/6.1.53/rockchip-115200.patch index ad8a2d7a7..ad8a2d7a7 100644 --- a/target/linux/patches/6.1.49/rockchip-115200.patch +++ b/target/linux/patches/6.1.53/rockchip-115200.patch diff --git a/target/linux/patches/6.1.49/rockchip-pcie-timeout.patch b/target/linux/patches/6.1.53/rockchip-pcie-timeout.patch index 2ef7df2da..2ef7df2da 100644 --- a/target/linux/patches/6.1.49/rockchip-pcie-timeout.patch +++ b/target/linux/patches/6.1.53/rockchip-pcie-timeout.patch diff --git a/target/linux/patches/6.4.12/armnommu-fix-elf-fdpic-personality.patch b/target/linux/patches/6.4.12/armnommu-fix-elf-fdpic-personality.patch deleted file mode 100644 index 78b1a10ff..000000000 --- a/target/linux/patches/6.4.12/armnommu-fix-elf-fdpic-personality.patch +++ /dev/null @@ -1,54 +0,0 @@ -From ab7647c2b04501297c50ce7cdb6f6895b9582d22 Mon Sep 17 00:00:00 2001 -From: Greg Ungerer <gerg@kernel.org> -Date: Fri, 21 Apr 2023 00:21:38 +1000 -Subject: [PATCH] fs: binfmt_elf_efpic: fix personality for fdpic ELF - -The elf-fdpic loader hard sets the process personality to either -PER_LINUX_FDPIC for true elf-fdpic binaries or to PER_LINUX for -normal ELF binaries (in this case they would be constant displacement -compiled with -pie for example). The problem with that is that it -will lose any other bits that may be in the ELF header personality -(such as the "bug emulation" bits). - -On the ARM architecture the ADDR_LIMIT_32BIT flag is used to signify -a normal 32bit binary - as opposed to a legacy 26bit address binary. -This matters since start_thread() will set the ARM CPSR register as -required based on this flag. If the elf-fdpic loader loses this bit -the process will be mis-configured and crash out pretty quickly. - -Modify elf-fdpic loaders personality setting binaries so that it -preserves the upper three bytes by using the SET_PERSONALITY macro -to set it. This macro in the generic case sets PER_LINUX and preserves -the upper bytes. Architectures can override this for their specific -use case, and ARM does exactly this. - -The problem shows up quite easily runing under qemu, but not necessarily -on all types of real ARM hardware. If the underlying ARM processor does -not support the legacy 26-bit addressing mode then everyting will work -as expected. - -Signed-off-by: Greg Ungerer <gerg@kernel.org> ---- - fs/binfmt_elf_fdpic.c | 5 ++--- - 1 file changed, 2 insertions(+), 3 deletions(-) - -diff --git a/fs/binfmt_elf_fdpic.c b/fs/binfmt_elf_fdpic.c -index a05eafcacfb2..f29ae1d96fd7 100644 ---- a/fs/binfmt_elf_fdpic.c -+++ b/fs/binfmt_elf_fdpic.c -@@ -345,10 +345,9 @@ - /* there's now no turning back... the old userspace image is dead, - * defunct, deceased, etc. - */ -+ SET_PERSONALITY(exec_params.hdr); - if (elf_check_fdpic(&exec_params.hdr)) -- set_personality(PER_LINUX_FDPIC); -- else -- set_personality(PER_LINUX); -+ current->personality |= PER_LINUX_FDPIC; - if (elf_read_implies_exec(&exec_params.hdr, executable_stack)) - current->personality |= READ_IMPLIES_EXEC; - --- -2.25.1 - diff --git a/target/linux/patches/6.4.12/armnommu-fix-thread-registers.patch b/target/linux/patches/6.4.12/armnommu-fix-thread-registers.patch deleted file mode 100644 index 8ab2196dc..000000000 --- a/target/linux/patches/6.4.12/armnommu-fix-thread-registers.patch +++ /dev/null @@ -1,57 +0,0 @@ -From 1410ebe685f13c1699a16bf147ae1332e7fd1983 Mon Sep 17 00:00:00 2001 -From: Greg Ungerer <gerg@kernel.org> -Date: Thu, 20 Apr 2023 09:52:08 +1000 -Subject: [PATCH] ARM: start_thread: restore registers on ELF load for noMMU - -The binfmt_elf-fdpic loader is capable of loading constant displacement -ELF format binaries (like those compiled -pie) on noMMU systems as well -as elf-fdpic format binaries. The traditional ELF loader cannot be -enabled on noMMU systems. - -Commit 5e588114329c ("ARM: start_thread(): don't always clear all regs") -fixed the start_thread() code so that it maintains the required -elf-fdpic registers through to the new process, but it only does that if -current has its personality FDPIC_FUNCPTRS bit set. That is true for -elf-fdpic format binaries but will not be true for non-fdpic ELF -binaries. - -Modify the test of the FDPIC_FUNCPTRS personality bit to also carry out -the register restore if this is a noMMU system. This is not perfect, -since it will also preserve these registers on noMMU systems for all -binary format types (could be flat format for example). That won't break -anything, but it is potentially leaking some information into the new -process. But for the noMMU case we need those start time registers set to -be able to finalize the runtime loading of the -pie style ELF binary -(carry out its segment and dynamic relocation processing). - -Unfortunately the FDPIC_FUNCPTRS flag cannot just be enabled for all -elf-fdpic loaded binaries. That personality bit is used for other things -like the controlling the changed behavior for signal handling. - -There is no change in behavior for normal ELF loading on MMU systems. -A -pie style ELF binary built for noMMU systems can be load and run using -the usual ELF loader on an MMU system (elf-fdpic loader not required in -this case). - -Signed-off-by: Greg Ungerer <gerg@kernel.org> ---- - arch/arm/include/asm/processor.h | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/arch/arm/include/asm/processor.h b/arch/arm/include/asm/processor.h -index 326864f79d18..5074cc3ae4e1 100644 ---- a/arch/arm/include/asm/processor.h -+++ b/arch/arm/include/asm/processor.h -@@ -60,7 +60,8 @@ static inline void arch_thread_struct_whitelist(unsigned long *offset, - } \ - memset(regs->uregs, 0, sizeof(regs->uregs)); \ - if (IS_ENABLED(CONFIG_BINFMT_ELF_FDPIC) && \ -- current->personality & FDPIC_FUNCPTRS) { \ -+ ((! IS_ENABLED(CONFIG_MMU)) || \ -+ current->personality & FDPIC_FUNCPTRS)) { \ - regs->ARM_r7 = r7; \ - regs->ARM_r8 = r8; \ - regs->ARM_r9 = r9; \ --- -2.25.1 - diff --git a/target/linux/patches/6.4.12/armnommu-versatile.patch b/target/linux/patches/6.4.12/armnommu-versatile.patch deleted file mode 100644 index f8f10f50b..000000000 --- a/target/linux/patches/6.4.12/armnommu-versatile.patch +++ /dev/null @@ -1,101 +0,0 @@ -From 77c038d93769c92ef54cdbb50388564d1b37987b Mon Sep 17 00:00:00 2001 -From: Greg Ungerer <gerg@kernel.org> -Date: Fri, 23 Sep 2016 13:37:34 +1000 -Subject: [PATCH] ARM: versatile: support configuring versatile machine for no-MMU - -Allow the arm versatile machine to be configured for no-MMU operation. - -Older kernels had the ability to build the versatile machine with the MMU -disabled (!CONFIG_MMU). Recent changes to convert the versatile machine -to device tree lost this ability. (Although older kernels could be built -they did not run due to a bug in the IO_ADDRESS() mapping on this machine). - -The motivation for this is that the versatile machine is well supported -in qemu. And this provides an excellent platform for development and -testing no-MMU support on ARM in general. - -This patch adds a versatile platform selection in the upper level arm -system type menu - where it appeared in older kernel versions - when -configuring for the no-MMU case. There is no visible change to the way -versatile is selected for the MMU enabled case. - -Signed-off-by: Greg Ungerer <gerg@kernel.org> ---- - arch/arm/Kconfig | 13 ++++++++++++- - arch/arm/include/asm/mach/map.h | 1 + - arch/arm/mach-versatile/Kconfig | 2 +- - arch/arm/mach-versatile/versatile.c | 4 ++++ - 4 files changed, 18 insertions(+), 2 deletions(-) - -diff --git a/arch/arm/mach-versatile/versatile.c b/arch/arm/mach-versatile/versatile.c -index 02ba68abe533..835b51bc597b 100644 ---- a/arch/arm/mach-versatile/versatile.c -+++ b/arch/arm/mach-versatile/versatile.c -@@ -22,7 +22,11 @@ - #include <asm/mach/map.h> - - /* macro to get at MMIO space when running virtually */ -+#ifdef CONFIG_MMU - #define IO_ADDRESS(x) (((x) & 0x0fffffff) + (((x) >> 4) & 0x0f000000) + 0xf0000000) -+#else -+#define IO_ADDRESS(x) (x) -+#endif - #define __io_address(n) ((void __iomem __force *)IO_ADDRESS(n)) - - /* -diff --git a/arch/arm/include/asm/mach/map.h b/arch/arm/include/asm/mach/map.h -index 2b8970d8e5a2..41844ab6aec5 100644 ---- a/arch/arm/include/asm/mach/map.h -+++ b/arch/arm/include/asm/mach/map.h -@@ -60,6 +60,7 @@ extern int ioremap_page(unsigned long virt, unsigned long phys, - #else - #define iotable_init(map,num) do { } while (0) - #define vm_reserve_area_early(a,s,c) do { } while (0) -+#define debug_ll_io_init() do { } while (0) - #endif - - #endif -diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig -index e24a9820e12f..342e1efa583a 100644 ---- a/arch/arm/Kconfig -+++ b/arch/arm/Kconfig -@@ -307,12 +307,23 @@ config MMU - Select if you want MMU-based virtualised addressing space - support by paged memory management. If unsure, say 'Y'. - -+choice -+ prompt "ARM system type" -+ depends on !MMU -+ default ARM_SINGLE_ARMV7M -+ - config ARM_SINGLE_ARMV7M -- def_bool !MMU -+ bool "ARMv7-M based platforms (Cortex-M0/M3/M4)" - select ARM_NVIC - select CPU_V7M - select NO_IOPORT_MAP - -+config ARM_SINGLE_ARM926 -+ bool "ARM926 based platforms" -+ select CPU_ARM926T -+ -+endchoice -+ - config ARCH_MMAP_RND_BITS_MIN - default 8 - -diff --git a/arch/arm/mach-versatile/Kconfig b/arch/arm/mach-versatile/Kconfig -index b1519b4dc03a..2f1bf95daeb0 100644 ---- a/arch/arm/mach-versatile/Kconfig -+++ b/arch/arm/mach-versatile/Kconfig -@@ -1,7 +1,7 @@ - # SPDX-License-Identifier: GPL-2.0 - config ARCH_VERSATILE - bool "ARM Ltd. Versatile family" -- depends on ARCH_MULTI_V5 -+ depends on ARCH_MULTI_V5 || ARM_SINGLE_ARM926 - depends on CPU_LITTLE_ENDIAN - select ARM_AMBA - select ARM_TIMER_SP804 --- -2.25.1 |