diff --git a/patch/kernel/archive/spacemit-6.18/008-expand-norflash-from-12-to-16Mb.patch b/patch/kernel/archive/spacemit-6.18/008-expand-norflash-from-12-to-16Mb.patch new file mode 100644 index 0000000000..fbd3c2d426 --- /dev/null +++ b/patch/kernel/archive/spacemit-6.18/008-expand-norflash-from-12-to-16Mb.patch @@ -0,0 +1,30 @@ +From 1556e4107edd760d94aa1151560f19b9b82b70cc Mon Sep 17 00:00:00 2001 +From: Sven-Ola Tuecke +Date: Sun, 11 Jan 2026 20:36:39 +0100 +Subject: [PATCH] When reading SPI-NOR, got "greater than the map size" error + when reaching 0xc00000 (12M). Expand address space for 16M NOR flash. +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Sven-Ola Tücke +--- + arch/riscv/boot/dts/spacemit/k1-x.dtsi | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/arch/riscv/boot/dts/spacemit/k1-x.dtsi b/arch/riscv/boot/dts/spacemit/k1-x.dtsi +index 24366372e0..d1fe52fec8 100644 +--- a/arch/riscv/boot/dts/spacemit/k1-x.dtsi ++++ b/arch/riscv/boot/dts/spacemit/k1-x.dtsi +@@ -2357,7 +2357,7 @@ qspi: spi@d420c000 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0 0xd420c000 0x0 0x1000>, +- <0x0 0xb8000000 0x0 0xc00000>; ++ <0x0 0xb8000000 0x0 0x1000000>; + reg-names = "qspi-base", "qspi-mmap"; + k1x,qspi-sfa1ad = <0x4000000>; + k1x,qspi-sfa2ad = <0x100000>; +-- +2.34.1 + diff --git a/patch/kernel/archive/spacemit-6.6/008-expand-norflash-from-12-to-16Mb.patch b/patch/kernel/archive/spacemit-6.6/008-expand-norflash-from-12-to-16Mb.patch new file mode 100644 index 0000000000..fbd3c2d426 --- /dev/null +++ b/patch/kernel/archive/spacemit-6.6/008-expand-norflash-from-12-to-16Mb.patch @@ -0,0 +1,30 @@ +From 1556e4107edd760d94aa1151560f19b9b82b70cc Mon Sep 17 00:00:00 2001 +From: Sven-Ola Tuecke +Date: Sun, 11 Jan 2026 20:36:39 +0100 +Subject: [PATCH] When reading SPI-NOR, got "greater than the map size" error + when reaching 0xc00000 (12M). Expand address space for 16M NOR flash. +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Sven-Ola Tücke +--- + arch/riscv/boot/dts/spacemit/k1-x.dtsi | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/arch/riscv/boot/dts/spacemit/k1-x.dtsi b/arch/riscv/boot/dts/spacemit/k1-x.dtsi +index 24366372e0..d1fe52fec8 100644 +--- a/arch/riscv/boot/dts/spacemit/k1-x.dtsi ++++ b/arch/riscv/boot/dts/spacemit/k1-x.dtsi +@@ -2357,7 +2357,7 @@ qspi: spi@d420c000 { + #address-cells = <1>; + #size-cells = <0>; + reg = <0x0 0xd420c000 0x0 0x1000>, +- <0x0 0xb8000000 0x0 0xc00000>; ++ <0x0 0xb8000000 0x0 0x1000000>; + reg-names = "qspi-base", "qspi-mmap"; + k1x,qspi-sfa1ad = <0x4000000>; + k1x,qspi-sfa2ad = <0x100000>; +-- +2.34.1 +