aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/patches-5.10
diff options
context:
space:
mode:
authorTad Davanzo <tad@spotco.us>2021-02-05 22:38:03 -0500
committerHauke Mehrtens <hauke@hauke-m.de>2021-03-19 15:30:01 +0100
commit10415d5e7016b69dc71c5f1b03e8e17b586f8edd (patch)
treed1535ae8a763c67ef142c1e41b3972289ce35c4d /target/linux/mvebu/patches-5.10
parent72885e9608d9c0fa06abce6bdb6dd054c2116eb7 (diff)
downloadupstream-10415d5e7016b69dc71c5f1b03e8e17b586f8edd.tar.gz
upstream-10415d5e7016b69dc71c5f1b03e8e17b586f8edd.tar.bz2
upstream-10415d5e7016b69dc71c5f1b03e8e17b586f8edd.zip
mvebu: mamba resize kernel to 4MB
mamba has a 3MB kernel partition as specified by the DTS. 3MB is not sufficient for building with many kernel modules or newer kernel versions. mamba uboot however as set from factory will load up to 4MB. This can be observed by looking a uboot log: NAND read: device 0 offset 0xa00000, size 0x400000 4194304 bytes read: OK and from uboot environment variables: $ fw_printenv | grep "pri_kern_size"; pri_kern_size=0x400000 Resize the root partitions from 37MB to 36MB to let kernel expand into it another 1MB. And set kernel target size to 4MB. Lastly add a compatibility version message: kernel-size-migration. And set it on mamba to prevent sysupgrading without first reinstalling from a factory image. Signed-off-by: Tad Davanzo <tad@spotco.us>
Diffstat (limited to 'target/linux/mvebu/patches-5.10')
-rw-r--r--target/linux/mvebu/patches-5.10/316-armada-xp-linksys-mamba-resize-kernel.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/target/linux/mvebu/patches-5.10/316-armada-xp-linksys-mamba-resize-kernel.patch b/target/linux/mvebu/patches-5.10/316-armada-xp-linksys-mamba-resize-kernel.patch
new file mode 100644
index 0000000000..f1fddceff4
--- /dev/null
+++ b/target/linux/mvebu/patches-5.10/316-armada-xp-linksys-mamba-resize-kernel.patch
@@ -0,0 +1,37 @@
+From 258233f00bcd013050efee00c5d9128ef8cd62dd Mon Sep 17 00:00:00 2001
+From: Tad <tad@spotco.us>
+Date: Fri, 5 Feb 2021 22:32:11 -0500
+Subject: [PATCH] ARM: dts: armada-xp-linksys-mamba: Increase kernel
+ partition to 4MB
+
+Signed-off-by: Tad Davanzo <tad@spotco.us>
+---
+ arch/arm/boot/dts/armada-xp-linksys-mamba.dts | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+--- a/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
++++ b/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
+@@ -456,9 +456,9 @@
+ reg = <0xa00000 0x2800000>; /* 40MB */
+ };
+
+- partition@d00000 {
++ partition@e00000 {
+ label = "rootfs1";
+- reg = <0xd00000 0x2500000>; /* 37MB */
++ reg = <0xe00000 0x2400000>; /* 36MB */
+ };
+
+ /* kernel2 overlaps with rootfs2 by design */
+@@ -467,9 +467,9 @@
+ reg = <0x3200000 0x2800000>; /* 40MB */
+ };
+
+- partition@3500000 {
++ partition@3600000 {
+ label = "rootfs2";
+- reg = <0x3500000 0x2500000>; /* 37MB */
++ reg = <0x3600000 0x2400000>; /* 36MB */
+ };
+
+ /*