aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/cortexa9
diff options
context:
space:
mode:
authorTad Davanzo <tad@spotco.us>2021-02-05 22:42:47 -0500
committerHauke Mehrtens <hauke@hauke-m.de>2021-03-29 21:17:32 +0200
commit5a3b1e5b5765208990e45c852c0412f210d63594 (patch)
tree0d41ff51b9d8eed084c440986d53921e65ac5f4b /target/linux/mvebu/cortexa9
parent8458ebe18b84702039020c523018e39f564ccf6c (diff)
downloadupstream-5a3b1e5b5765208990e45c852c0412f210d63594.tar.gz
upstream-5a3b1e5b5765208990e45c852c0412f210d63594.tar.bz2
upstream-5a3b1e5b5765208990e45c852c0412f210d63594.zip
mvebu: venom resize kernel to 6MB
venom has a 3MB kernel partition as specified by the DTS. 3MB is not sufficient for building with many kernel modules or newer kernel versions. venom uboot however as set from factory will load up to 6MB. This can be observed by looking a uboot log: NAND read: device 0 offset 0x900000, size 0x600000 6291456 bytes read: OK and from uboot environment variables: $ fw_printenv | grep "priKernSize"; priKernSize=0x0600000 Resize the root partitions from 120MB to 117MB to let kernel expand into it another 3MB. And set kernel target size to 6MB. Lastly set the kernel-size-migration compatibility version on venom to prevent sysupgrading without first reinstalling from a factory image. Signed-off-by: Tad Davanzo <tad@spotco.us> (cherry picked from commit 15309f5133d55e92bec3ed91dfb3ac9d124f6a96)
Diffstat (limited to 'target/linux/mvebu/cortexa9')
-rw-r--r--target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/05_fix-compat-version3
1 files changed, 2 insertions, 1 deletions
diff --git a/target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/05_fix-compat-version b/target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/05_fix-compat-version
index 70e0e9ef95..8856bf23a4 100644
--- a/target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/05_fix-compat-version
+++ b/target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/05_fix-compat-version
@@ -1,7 +1,8 @@
. /lib/functions.sh
case "$(board_name)" in
- linksys,wrt1900ac-v1)
+ linksys,wrt1900ac-v1|\
+ linksys,wrt32x)
uci set system.@system[0].compat_version="2.0"
uci commit system
;;