5 次代碼提交 8c82aafe79 ... 52541f9774

作者 SHA1 備註 提交日期
  Waldemar Brodkorb 52541f9774 linux: add symbol for YAFFS2 5 天之前
  Waldemar Brodkorb 048f646e3d linux: add fixes for MIPS rb532 support 5 天之前
  Waldemar Brodkorb 622e23ea3b mips: ubifs is missing kernel-install target 5 天之前
  Waldemar Brodkorb 6007bbd260 gcc: fix MIPS cross-compile when GCC 4.x is used 5 天之前
  Waldemar Brodkorb 9b3d2974b6 allow linux 3.4.112 for other archs, it has YAFFS2 support 5 天之前

+ 20 - 1
target/linux/Config.in.kernelversion

@@ -201,7 +201,26 @@ config ADK_TARGET_LINUX_KERNEL_VERSION_3_16
 
 config ADK_TARGET_LINUX_KERNEL_VERSION_3_4
 	bool "3.4.112"
-	depends on ADK_TARGET_ARCH_NDS32
+	depends on !ADK_TARGET_ARCH_ARC
+	depends on !ADK_TARGET_ARCH_BFIN
+	depends on !ADK_TARGET_ARCH_CSKY
+	depends on !ADK_TARGET_ARCH_H8300
+	depends on !ADK_TARGET_ARCH_NDS32
+	depends on !ADK_TARGET_ARCH_NIOS2
+	depends on !ADK_TARGET_ARCH_OR1K
+	depends on !ADK_TARGET_ARCH_RISCV32
+	depends on !ADK_TARGET_ARCH_RISCV64
+	depends on !ADK_TARGET_ARCH_SPARC
+	depends on !ADK_TARGET_BOARD_ATH79
+	depends on !ADK_TARGET_BOARD_BCM28XX
+	depends on !ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK
+	depends on !ADK_TARGET_SYSTEM_KINETIS_K70
+	depends on !ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
+	depends on !ADK_TARGET_SYSTEM_QEMU_M68K_MCF5208
+	depends on !ADK_TARGET_SYSTEM_NUMATO_MIMASV2
+	depends on !ADK_TARGET_CPU_MIPS_MIPS32R6
+	depends on !ADK_TARGET_CPU_MIPS64_MIPS64R6
+	depends on !ADK_TARGET_SYSTEM_ORANGE_PI0
 
 config ADK_TARGET_LINUX_KERNEL_VERSION_2_6_32
 	bool "2.6.32.70"

+ 5 - 0
target/linux/config/Config.in.fs

@@ -257,6 +257,11 @@ config ADK_LINUX_KERNEL_SQUASHFS
 	help
 	  Squashfs compressed read-only filesystem
 
+config ADK_LINUX_KERNEL_YAFFS_FS
+	tristate "YAFFS2 filesystem"
+	help
+	  YAFFS2 filesystem for NAND devices
+
 config ADK_LINUX_KERNEL_MTD_UBI_GLUEBI
 	bool
 

+ 12 - 0
target/linux/patches/3.16.85/rb532-part.patch

@@ -0,0 +1,12 @@
+diff -Nur linux-3.16.85.orig/arch/mips/rb532/devices.c linux-3.16.85/arch/mips/rb532/devices.c
+--- linux-3.16.85.orig/arch/mips/rb532/devices.c	2020-06-11 20:06:00.000000000 +0200
++++ linux-3.16.85/arch/mips/rb532/devices.c	2026-04-23 21:45:44.576281207 +0200
+@@ -187,7 +187,7 @@
+ 	{
+ 		.name = "Routerboard NAND boot",
+ 		.offset = 0,
+-		.size = 4 * 1024 * 1024,
++		.size = 8 * 1024 * 1024,
+ 	}, {
+ 		.name = "rootfs",
+ 		.offset = MTDPART_OFS_NXTBLK,

+ 12 - 0
target/linux/patches/3.4.112/rb532-part.patch

@@ -0,0 +1,12 @@
+diff -Nur linux-3.4.112.orig/arch/mips/rb532/devices.c linux-3.4.112/arch/mips/rb532/devices.c
+--- linux-3.4.112.orig/arch/mips/rb532/devices.c	2016-04-27 12:55:30.000000000 +0200
++++ linux-3.4.112/arch/mips/rb532/devices.c	2026-04-29 03:51:12.616903447 +0200
+@@ -186,7 +186,7 @@
+ 	{
+ 		.name = "Routerboard NAND boot",
+ 		.offset = 0,
+-		.size = 4 * 1024 * 1024,
++		.size = 12 * 1024 * 1024,
+ 	}, {
+ 		.name = "rootfs",
+ 		.offset = MTDPART_OFS_NXTBLK,

+ 12 - 0
target/linux/patches/4.14.336/mips-vdso-gcc15.patch

@@ -0,0 +1,12 @@
+diff -Nur linux-4.14.334.orig/arch/mips/vdso/Makefile linux-4.14.334/arch/mips/vdso/Makefile
+--- linux-4.14.334.orig/arch/mips/vdso/Makefile	2023-12-20 15:32:39.000000000 +0100
++++ linux-4.14.334/arch/mips/vdso/Makefile	2026-04-21 10:30:47.368235145 +0200
+@@ -16,7 +16,7 @@
+ 	-O2 -g -fPIC -fno-strict-aliasing -fno-common -fno-builtin -G 0 \
+ 	-DDISABLE_BRANCH_PROFILING \
+ 	$(call cc-option, -fno-asynchronous-unwind-tables) \
+-	$(call cc-option, -fno-stack-protector)
++	$(call cc-option, -fno-stack-protector) -std=gnu11
+ aflags-vdso := $(ccflags-vdso) \
+ 	-D__ASSEMBLY__ -Wa,-gdwarf-2
+ 

+ 17 - 0
target/linux/patches/4.14.336/rb532-serial.patch

@@ -0,0 +1,17 @@
+diff -Nur linux-4.14.334.orig/arch/mips/rb532/devices.c linux-4.14.334/arch/mips/rb532/devices.c
+--- linux-4.14.334.orig/arch/mips/rb532/devices.c	2023-12-20 15:32:39.000000000 +0100
++++ linux-4.14.334/arch/mips/rb532/devices.c	2026-04-21 10:44:49.676097062 +0200
+@@ -225,11 +225,11 @@
+ static struct plat_serial8250_port rb532_uart_res[] = {
+ 	{
+ 		.type           = PORT_16550A,
+-		.membase	= (char *)KSEG1ADDR(REGBASE + UART0BASE),
++		.mapbase        = REGBASE + UART0BASE,
+ 		.irq		= UART0_IRQ,
+ 		.regshift	= 2,
+ 		.iotype		= UPIO_MEM,
+-		.flags		= UPF_BOOT_AUTOCONF,
++		.flags		= UPF_BOOT_AUTOCONF | UPF_IOREMAP,
+ 	},
+ 	{
+ 		.flags		= 0,

+ 1 - 1
target/mips/Makefile

@@ -139,5 +139,5 @@ ifeq ($(ADK_TARGET_FS),nfsroot)
 imageinstall: dtb-install kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp
 endif
 ifeq ($(ADK_TARGET_FS),ubifs)
-imageinstall: $(FW_DIR)/$(ROOTFSUBIFS) targethelp
+imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUBIFS) targethelp
 endif

+ 2 - 0
toolchain/gcc/Makefile

@@ -145,9 +145,11 @@ ifneq ($(ADK_TARGET_INSTRUCTION_SET),)
 GCC_CONFOPTS+=		--with-mode=$(ADK_TARGET_INSTRUCTION_SET)
 endif
 
+ifneq ($(ADK_TOOLCHAIN_GCC_4),y)
 ifneq ($(ADK_TARGET_NAN_MODE),)
 GCC_CONFOPTS+=		--with-nan=$(ADK_TARGET_NAN_MODE)
 endif
+endif
 
 # .symver is broken for Blackfin, simple C++ apps fail to link
 ifeq ($(ADK_TARGET_ARCH_BFIN),y)