diff options
author | Sungbo Eo <mans0n@gorani.run> | 2019-12-21 12:43:40 +0900 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-12-22 01:04:51 +0100 |
commit | 80839694056d7eedb1fac1c4b61847c4a4f94d6a (patch) | |
tree | 3cd047de9f36694013aa4ad286e09feaf5ab1a6b /target/linux/ipq40xx/base-files/etc | |
parent | 9b02d32e34df2bb8821ec6f08f525bee22d0d1ba (diff) | |
download | upstream-80839694056d7eedb1fac1c4b61847c4a4f94d6a.tar.gz upstream-80839694056d7eedb1fac1c4b61847c4a4f94d6a.tar.bz2 upstream-80839694056d7eedb1fac1c4b61847c4a4f94d6a.zip |
ipq40xx: improve ASUS RT-AC58U support
This patch does the following:
- move WiFi LED setup to DTS
- fix LAN/WAN MAC addresses and add label MAC address
- wan5G -> wlan5G, power -> led_power
- increase flash SPI frequency to 30MHz
MAC addresses are stored in Factory partition at:
0x1006: WiFi 2.4GHz, WAN (label_mac)
0x5006: WiFi 5GHz, LAN (label_mac +4)
By improving flash speed,
`time dd if=/dev/mtdblock8 of=/dev/null bs=2k`
is reduced from 7m 10.26s to 5m 9.52s.
Using higher frequencies did not improve speed further.
Signed-off-by: Sungbo Eo <mans0n@gorani.run>
Diffstat (limited to 'target/linux/ipq40xx/base-files/etc')
-rwxr-xr-x | target/linux/ipq40xx/base-files/etc/board.d/01_leds | 2 | ||||
-rwxr-xr-x | target/linux/ipq40xx/base-files/etc/board.d/02_network | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/target/linux/ipq40xx/base-files/etc/board.d/01_leds b/target/linux/ipq40xx/base-files/etc/board.d/01_leds index 9cd51e5de0..0326bab382 100755 --- a/target/linux/ipq40xx/base-files/etc/board.d/01_leds +++ b/target/linux/ipq40xx/base-files/etc/board.d/01_leds @@ -15,8 +15,6 @@ alfa-network,ap120c-ac) ucidef_set_led_netdev "wan" "WAN" "${boardname}:amber:wan" "eth1" ;; asus,rt-ac58u) - ucidef_set_led_wlan "wlan2g" "WLAN2G" "${boardname}:blue:wlan2G" "phy0tpt" - ucidef_set_led_wlan "wlan5g" "WLAN5G" "${boardname}:blue:wlan5G" "phy1tpt" ucidef_set_led_netdev "wan" "WAN" "${boardname}:blue:wan" "eth1" ucidef_set_led_switch "lan" "LAN" "${boardname}:blue:lan" "switch0" "0x1e" ;; diff --git a/target/linux/ipq40xx/base-files/etc/board.d/02_network b/target/linux/ipq40xx/base-files/etc/board.d/02_network index dcf684f511..ae8cb2efe7 100755 --- a/target/linux/ipq40xx/base-files/etc/board.d/02_network +++ b/target/linux/ipq40xx/base-files/etc/board.d/02_network @@ -79,12 +79,16 @@ ipq40xx_setup_interfaces() ipq40xx_setup_macs() { local board="$1" + local lan_mac="" + local wan_mac="" + local label_mac="" case "$board" in asus,rt-ac58u) CI_UBIPART=UBI_DEV - wan_mac=$(mtd_get_mac_binary_ubi Factory 0x5006) - lan_mac=$(mtd_get_mac_binary_ubi Factory 0x1006) + wan_mac=$(mtd_get_mac_binary_ubi Factory 0x1006) + lan_mac=$(mtd_get_mac_binary_ubi Factory 0x5006) + label_mac=$wan_mac ;; cilab,meshpoint-one) label_mac=$(mtd_get_mac_binary "ART" 0x1006) |