mirror of
https://github.com/coolsnowwolf/lede
synced 2025-01-07 07:46:47 +08:00
mediatek: expand kernel size to 6MiB for Xiaomi AX6S
Expand kernel partition size on Xiaomi AX6S for the kernel larger than 4 MiB. Manual upgrade from OpenWRT to new OpenWRT: cd /tmp dd if=factory.bin bs=1M count=4 | mtd write - kernel dd if=factory.bin bs=1M skip=4 count=2 | mtd write - ubi dd if=factory.bin bs=1M skip=6 | mtd -p 2097152 write - ubi Signed-off-by: Oleg S <remittor@gmail.com>
This commit is contained in:
parent
d242992f65
commit
21eb7bf2ae
@ -298,7 +298,7 @@
|
||||
*/
|
||||
partition@2c0000 {
|
||||
label = "kernel";
|
||||
reg = <0x2c0000 0x400000>;
|
||||
reg = <0x2c0000 0x600000>;
|
||||
};
|
||||
|
||||
/* ubi partition is the result of squashing
|
||||
@ -308,9 +308,9 @@
|
||||
* - overlay
|
||||
* - obr
|
||||
*/
|
||||
partition@6c0000 {
|
||||
partition@8c0000 {
|
||||
label = "ubi";
|
||||
reg = <0x6C0000 0x6f00000>;
|
||||
reg = <0x8c0000 0x6d00000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -345,7 +345,7 @@ define Device/xiaomi_redmi-router-ax6s
|
||||
IMAGES += factory.bin
|
||||
BLOCKSIZE := 128k
|
||||
PAGESIZE := 2048
|
||||
KERNEL_SIZE := 4096k
|
||||
KERNEL_SIZE := 6144k
|
||||
KERNEL_INITRAMFS_SUFFIX := -recovery.itb
|
||||
IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi
|
||||
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
||||
|
Loading…
Reference in New Issue
Block a user