Skip to content

Commit

Permalink
mediatek: expand kernel size to 6MiB for Xiaomi AX6S
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
remittor committed Dec 12, 2024
1 parent d242992 commit 21eb7bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions target/linux/mediatek/dts/mt7622-xiaomi-redmi-router-ax6s.dts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
*/
partition@2c0000 {
label = "kernel";
reg = <0x2c0000 0x400000>;
reg = <0x2c0000 0x600000>;
};

/* ubi partition is the result of squashing
Expand All @@ -308,9 +308,9 @@
* - overlay
* - obr
*/
partition@6c0000 {
partition@8c0000 {
label = "ubi";
reg = <0x6C0000 0x6f00000>;
reg = <0x8c0000 0x6d00000>;
};
};
};
Expand Down
2 changes: 1 addition & 1 deletion target/linux/mediatek/image/mt7622.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 21eb7bf

Please sign in to comment.