mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-31 00:24:12 +00:00
mediatek: re-enable mt7622-rfb1-ubi with changed partition layout
The boot loader does not have a fixed size limit for the kernel, so we're free to change the layout. This may break sysupgrade, but a fresh flash from initramfs works. Fixes: 6e2962d4c548 ("mediatek: mt7622: skip build for MT7622 rfb1 (UBI)") Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
d6e008ace9
commit
c6319de48b
@ -44,12 +44,12 @@
|
|||||||
|
|
||||||
partition@200000 {
|
partition@200000 {
|
||||||
label = "kernel";
|
label = "kernel";
|
||||||
reg = <0x2c0000 0x400000>;
|
reg = <0x2c0000 0x600000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
partition@6c0000 {
|
partition@6c0000 {
|
||||||
label = "ubi";
|
label = "ubi";
|
||||||
reg = <0x6c0000 0x6f00000>;
|
reg = <0x8c0000 0x6f00000>;
|
||||||
};
|
};
|
||||||
|
|
||||||
/delete-node/ partition@2200000;
|
/delete-node/ partition@2200000;
|
||||||
|
@ -295,14 +295,14 @@ define Device/mediatek_mt7622-rfb1-ubi
|
|||||||
UBINIZE_OPTS := -E 5
|
UBINIZE_OPTS := -E 5
|
||||||
BLOCKSIZE := 128k
|
BLOCKSIZE := 128k
|
||||||
PAGESIZE := 2048
|
PAGESIZE := 2048
|
||||||
KERNEL_SIZE := 4194304
|
KERNEL_SIZE := 6291456
|
||||||
IMAGE_SIZE := 32768k
|
IMAGE_SIZE := 32768k
|
||||||
IMAGES += factory.bin
|
IMAGES += factory.bin
|
||||||
IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
|
IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \
|
||||||
check-size $$$$(IMAGE_SIZE)
|
check-size $$$$(IMAGE_SIZE)
|
||||||
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
||||||
endef
|
endef
|
||||||
# TARGET_DEVICES += mediatek_mt7622-rfb1-ubi
|
TARGET_DEVICES += mediatek_mt7622-rfb1-ubi
|
||||||
|
|
||||||
define Device/netgear_wax206
|
define Device/netgear_wax206
|
||||||
$(Device/dsa-migration)
|
$(Device/dsa-migration)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user