Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ramips: xiaomi cr6606: increase firmware partition size #6915

Merged
merged 1 commit into from
Jun 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 6 additions & 26 deletions target/linux/ramips/dts/mt7621_xiaomi_mi-router-cr6606.dts
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,18 @@
};
};

keys: keys {
keys {
compatible = "gpio-keys";

reset {
label = "reset";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
linux,code = <KEY_RESTART>;
};

wps {
label = "wps";
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
debounce-interval = <60>;
linux,code = <KEY_WPS_BUTTON>;
};
};
Expand Down Expand Up @@ -110,25 +108,13 @@
};

partition@200000 {
label = "firmware";
compatible = "denx,uimage";
reg = <0x200000 0x1e00000>;
label = "kernel";
reg = <0x200000 0x400000>;
};

partition@2000000 {
label = "firmware1";
reg = <0x2000000 0x1e00000>;
};

partition@3e00000 {
partition@600000 {
label = "ubi";
reg = <0x3e00000 0x3200000>;
};

partition@7000000 {
label = "obr";
reg = <0x7000000 0x1000000>;
read-only;
reg = <0x600000 0x7980000>;
};
};
};
Expand All @@ -140,17 +126,11 @@
&pcie1 {
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0 0 0 0 0>;
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0>;
};
};

&pcie2 {
wifi@0,0 {
reg = <0x0 0 0 0 0>;
};
};

&gmac0 {
mtd-mac-address = <&factory 0x3fff4>;
};
Expand Down
10 changes: 5 additions & 5 deletions target/linux/ramips/image/mt7621.mk
Original file line number Diff line number Diff line change
Expand Up @@ -1112,14 +1112,14 @@ define Device/xiaomi_mi-router-cr6606
BLOCKSIZE := 128k
PAGESIZE := 2048
UBINIZE_OPTS := -E 5
IMAGE_SIZE := 51200k
IMAGES += firmware.bin overlay.bin
IMAGE/firmware.bin := append-kernel | pad-to 128k | append-rootfs | pad-rootfs
IMAGE/overlay.bin := append-ubi | check-size
KERNEL_SIZE := 4096k
IMAGE_SIZE := 128512k
IMAGES += factory.bin
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | check-size
DEVICE_VENDOR := Xiaomi
DEVICE_MODEL := Mi Router CR6606
DEVICE_PACKAGES += uboot-envtools kmod-mt7915e wpad-openssl
DEVICE_PACKAGES += kmod-mt7915e wpad-openssl uboot-envtools
endef
TARGET_DEVICES += xiaomi_mi-router-cr6606

Expand Down