diff --git a/target/linux/ramips/dts/mt7621_jcg_q20.dts b/target/linux/ramips/dts/mt7621_jcg_q20.dts index 9cd3e62f44..f0e829393c 100644 --- a/target/linux/ramips/dts/mt7621_jcg_q20.dts +++ b/target/linux/ramips/dts/mt7621_jcg_q20.dts @@ -62,7 +62,7 @@ partition@0 { label = "ubi"; - reg = <0x0 0x5980000>; + reg = <0x0 0x5900000>; }; }; }; @@ -122,8 +122,12 @@ ubiconcat1: partition@4280000 { label = "ubiconcat1"; - reg = <0x4280000 0x3d80000>; + reg = <0x4280000 0x3d00000>; }; + + /* + * last 512 KiB are for the bad block table + */ }; }; diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk index afea605aab..0ba91db522 100644 --- a/target/linux/ramips/image/mt7621.mk +++ b/target/linux/ramips/image/mt7621.mk @@ -658,12 +658,11 @@ endef TARGET_DEVICES += jcg_jhr-ac876m define Device/jcg_q20 - $(Device/uimage-lzma-loader) BLOCKSIZE := 128k PAGESIZE := 2048 UBINIZE_OPTS := -E 5 KERNEL_SIZE := 4096k - IMAGE_SIZE := 32768k + IMAGE_SIZE := 91136k IMAGES += factory.bin IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata IMAGE/factory.bin := append-kernel | pad-to $$(KERNEL_SIZE) | append-ubi | \ diff --git a/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac b/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac index 59c97d82b8..53c4795fec 100644 --- a/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac +++ b/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac @@ -14,6 +14,10 @@ case "$board" in [ "$PHYNBR" = "1" ] && \ macaddr_add "$(mtd_get_mac_binary factory 0x4)" 1 > /sys${DEVPATH}/macaddress ;; + jcg,q20) + [ "$PHYNBR" = "1" ] && \ + macaddr_setbit_la "$(mtd_get_mac_binary Factory 0x4)" > /sys${DEVPATH}/macaddress + ;; linksys,ea7300-v1|\ linksys,ea7500-v2) hw_mac_addr=$(mtd_get_mac_ascii devinfo hw_mac_addr)