diff options
author | Tad Davanzo <tad@spotco.us> | 2021-02-05 22:38:03 -0500 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2021-03-29 21:17:31 +0200 |
commit | 8458ebe18b84702039020c523018e39f564ccf6c (patch) | |
tree | b4d62e644aebc8aac9831be2519e3b53a48506dd /target/linux/mvebu/cortexa9/base-files | |
parent | 7939d4a1b13b0c44dbfa4cd03180fe4cd5b2fe6b (diff) | |
download | upstream-8458ebe18b84702039020c523018e39f564ccf6c.tar.gz upstream-8458ebe18b84702039020c523018e39f564ccf6c.tar.bz2 upstream-8458ebe18b84702039020c523018e39f564ccf6c.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>
(cherry picked from commit 10415d5e7016b69dc71c5f1b03e8e17b586f8edd)
Diffstat (limited to 'target/linux/mvebu/cortexa9/base-files')
-rw-r--r-- | target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/05_fix-compat-version | 10 |
1 files changed, 10 insertions, 0 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 new file mode 100644 index 0000000000..70e0e9ef95 --- /dev/null +++ b/target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/05_fix-compat-version @@ -0,0 +1,10 @@ +. /lib/functions.sh + +case "$(board_name)" in + linksys,wrt1900ac-v1) + uci set system.@system[0].compat_version="2.0" + uci commit system + ;; +esac + +exit 0 |