ipq807x: improve support for ZTE MF269 (#7800)

This commit is contained in:
AmadeusGhost 2021-09-15 15:00:09 +08:00 committed by GitHub
parent 2ba47c8f12
commit 49f7faa21f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 529 additions and 732 deletions

View File

@ -21,8 +21,9 @@ ipq807x_setup_interfaces()
;;
zte,mf269)
ucidef_set_interfaces_lan_wan "eth0" "eth1"
ucidef_set_interface_macaddr "lan" "$(macaddr_add $(mtd_get_mac_binary "mac" 0x0) 1)"
ucidef_set_interface_macaddr "wan" "$(mtd_get_mac_binary "mac" 0x0)"
hw_mac_addr=$(mtd_get_mac_binary "mac" 0x0)
ucidef_set_interface_macaddr "wan" "$hw_mac_addr"
ucidef_set_interface_macaddr "lan" "$(macaddr_add $hw_mac_addr 1)"
;;
*)
echo "Unsupported hardware. Network interfaces not initialized"

View File

@ -73,14 +73,14 @@ endef
TARGET_DEVICES += xiaomi_ax9000
define Device/zte_mf269
$(call Device/FitImage)
$(call Device/UbiFit)
DEVICE_VENDOR := ZTE
DEVICE_MODEL := MF269
BLOCKSIZE := 128k
PAGESIZE := 2048
DEVICE_DTS_CONFIG := config@ac04
SOC := ipq8071
DEVICE_PACKAGES := ipq-wifi-zte_mf269 uboot-envtools
$(call Device/FitImage)
$(call Device/UbiFit)
DEVICE_VENDOR := ZTE
DEVICE_MODEL := MF269
BLOCKSIZE := 128k
PAGESIZE := 2048
DEVICE_DTS_CONFIG := config@ac04
SOC := ipq8071
DEVICE_PACKAGES := ipq-wifi-zte_mf269 uboot-envtools
endef
TARGET_DEVICES += zte_mf269