ramips: jcg q20: improve support with upstream review
Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
This commit is contained in:
parent
9e711faa54
commit
7f6624aaa0
@ -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
|
||||
*/
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@ -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 | \
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user