aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorINAGAKI Hiroshi <musashino.open@gmail.com>2023-08-27 18:37:15 +0900
committerHauke Mehrtens <hauke@hauke-m.de>2023-09-24 18:42:11 +0200
commite8646f5b3d050d61084b4cf373f8f64507ced8a6 (patch)
tree563c23f4f614be9fd322313744d4cfdd5df49a6d /target/linux
parentd0929006f2290307f6b9ba37d221f44a145d8d1b (diff)
downloadupstream-e8646f5b3d050d61084b4cf373f8f64507ced8a6.tar.gz
upstream-e8646f5b3d050d61084b4cf373f8f64507ced8a6.tar.bz2
upstream-e8646f5b3d050d61084b4cf373f8f64507ced8a6.zip
mediatek: expand kernel size to 6MiB for WSR-2533DHP2
Expand kernel partition size on WSR-2533DHP2 for the kernel larger than 4 MiB. To prevent upgrading from old firmware before this commit, bump the compat version to 1.1 and add a message for forced sysupgrade using factory-uboot.bin image. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/mediatek/image/mt7622.mk6
-rw-r--r--target/linux/mediatek/mt7622/base-files/etc/uci-defaults/05_fix-compat-version3
2 files changed, 7 insertions, 2 deletions
diff --git a/target/linux/mediatek/image/mt7622.mk b/target/linux/mediatek/image/mt7622.mk
index cf9534e2a54..6f64740628c 100644
--- a/target/linux/mediatek/image/mt7622.mk
+++ b/target/linux/mediatek/image/mt7622.mk
@@ -101,7 +101,7 @@ define Device/buffalo_wsr-2533dhp2
DEVICE_DTS := mt7622-buffalo-wsr-2533dhp2
DEVICE_DTS_DIR := ../dts
IMAGE_SIZE := 59392k
- KERNEL_SIZE := 4096k
+ KERNEL_SIZE := 6144k
BLOCKSIZE := 128k
PAGESIZE := 2048
SUBPAGESIZE := 512
@@ -123,6 +123,10 @@ define Device/buffalo_wsr-2533dhp2
buffalo-trx 0x32504844 $(KDIR)/tmp/$$(DEVICE_NAME).null | \
sysupgrade-tar kernel=$$$$@ | append-metadata
DEVICE_PACKAGES := kmod-mt7615-firmware swconfig
+ DEVICE_COMPAT_VERSION := 1.1
+ DEVICE_COMPAT_MESSAGE := Partition table has been changed due to kernel size restrictions. \
+ Please upgrade via sysupgrade with factory-uboot.bin image and '-F' option. \
+ (Warning: your configurations will be erased!)
endef
TARGET_DEVICES += buffalo_wsr-2533dhp2
diff --git a/target/linux/mediatek/mt7622/base-files/etc/uci-defaults/05_fix-compat-version b/target/linux/mediatek/mt7622/base-files/etc/uci-defaults/05_fix-compat-version
index c77e1cb8bd1..83310378694 100644
--- a/target/linux/mediatek/mt7622/base-files/etc/uci-defaults/05_fix-compat-version
+++ b/target/linux/mediatek/mt7622/base-files/etc/uci-defaults/05_fix-compat-version
@@ -1,7 +1,8 @@
. /lib/functions.sh
case "$(board_name)" in
- bananapi,bpi-r64)
+ bananapi,bpi-r64|\
+ buffalo,wsr-2533dhp2)
uci set system.@system[0].compat_version="1.1"
uci commit system
;;