Explorar el Código

linux: add fixes for MIPS rb532 support

Waldemar Brodkorb hace 5 días
padre
commit
048f646e3d

+ 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,