ramips: xiaomi cr6606: increase firmware partition size (#6915)

This commit is contained in:
AmadeusGhost 2021-06-02 12:56:38 +08:00 committed by GitHub
parent 07ad9ff555
commit 213f55ba58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 31 deletions

View File

@ -46,20 +46,18 @@
}; };
}; };
keys: keys { keys {
compatible = "gpio-keys"; compatible = "gpio-keys";
reset { reset {
label = "reset"; label = "reset";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>; gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
}; };
wps { wps {
label = "wps"; label = "wps";
gpios = <&gpio 7 GPIO_ACTIVE_LOW>; gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
}; };
}; };
@ -110,25 +108,13 @@
}; };
partition@200000 { partition@200000 {
label = "firmware"; label = "kernel";
compatible = "denx,uimage"; reg = <0x200000 0x400000>;
reg = <0x200000 0x1e00000>;
}; };
partition@2000000 { partition@600000 {
label = "firmware1";
reg = <0x2000000 0x1e00000>;
};
partition@3e00000 {
label = "ubi"; label = "ubi";
reg = <0x3e00000 0x3200000>; reg = <0x600000 0x7980000>;
};
partition@7000000 {
label = "obr";
reg = <0x7000000 0x1000000>;
read-only;
}; };
}; };
}; };
@ -140,17 +126,11 @@
&pcie1 { &pcie1 {
wifi@0,0 { wifi@0,0 {
compatible = "mediatek,mt76"; compatible = "mediatek,mt76";
reg = <0x0 0 0 0 0>; reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0>; mediatek,mtd-eeprom = <&factory 0x0>;
}; };
}; };
&pcie2 {
wifi@0,0 {
reg = <0x0 0 0 0 0>;
};
};
&gmac0 { &gmac0 {
mtd-mac-address = <&factory 0x3fff4>; mtd-mac-address = <&factory 0x3fff4>;
}; };

View File

@ -1112,14 +1112,14 @@ define Device/xiaomi_mi-router-cr6606
BLOCKSIZE := 128k BLOCKSIZE := 128k
PAGESIZE := 2048 PAGESIZE := 2048
UBINIZE_OPTS := -E 5 UBINIZE_OPTS := -E 5
IMAGE_SIZE := 51200k KERNEL_SIZE := 4096k
IMAGES += firmware.bin overlay.bin IMAGE_SIZE := 128512k
IMAGE/firmware.bin := append-kernel | pad-to 128k | append-rootfs | pad-rootfs IMAGES += factory.bin
IMAGE/overlay.bin := append-ubi | check-size
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | check-size
DEVICE_VENDOR := Xiaomi DEVICE_VENDOR := Xiaomi
DEVICE_MODEL := Mi Router CR6606 DEVICE_MODEL := Mi Router CR6606
DEVICE_PACKAGES += uboot-envtools kmod-mt7915e wpad-openssl DEVICE_PACKAGES += kmod-mt7915e wpad-openssl uboot-envtools
endef endef
TARGET_DEVICES += xiaomi_mi-router-cr6606 TARGET_DEVICES += xiaomi_mi-router-cr6606