forked from Ivasoft/openwrt
ramips: Xiaomi MIR3G: detect board name from DTS
- Former "mir3g" board name becomes "xiaomi,mir3g". - Reorder some entries to maintain alphabetical order. - Change DTS so status LEDs (yellow/red/blue) mimic Xiaomi stock firmware: (Section Indicator) <http://files.xiaomi-mi.co.uk/files/router_pro/router%20PRO%20EN.pdf> <http://files.xiaomi-mi.co.uk/files/Mi_WiFi_router_3/MiWiFi_router3_EN.pdf> |Yellow: Update (LED flickering), the launch of the system (steady light); |Blue: during normal operation (steady light); |Red: Safe mode (display flicker), system failure (steady light); Signed-off-by: Ozgur Can Leonard <ozgurcan@gmail.com> [Added link to similar Router 3 model] Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
This commit is contained in:
committed by
Christian Lamparter
parent
f22c33b40c
commit
201d3d1a82
@@ -179,10 +179,6 @@ ramips_setup_interfaces()
|
||||
ucidef_add_switch "switch0" \
|
||||
"1:lan:2" "2:lan:1" "3:lan:3" "4:lan" "0:wan" "6@eth0"
|
||||
;;
|
||||
mir3g)
|
||||
ucidef_add_switch "switch0" \
|
||||
"2:lan:2" "3:lan:1" "1:wan" "6t@eth0"
|
||||
;;
|
||||
psg1218b)
|
||||
ucidef_add_switch "switch0" \
|
||||
"0:lan:3" "1:lan:2" "2:lan:1" "3:wan" "6@eth0"
|
||||
@@ -437,6 +433,10 @@ ramips_setup_interfaces()
|
||||
ucidef_add_switch "switch0" \
|
||||
"4:lan" "0:wan" "6@eth0"
|
||||
;;
|
||||
xiaomi,mir3g)
|
||||
ucidef_add_switch "switch0" \
|
||||
"2:lan:2" "3:lan:1" "1:wan" "6t@eth0"
|
||||
;;
|
||||
xiaomi,mir3p)
|
||||
ucidef_add_switch "switch0" \
|
||||
"1:lan:3" "2:lan:2" "3:lan:1" "4:wan" "6@eth0"
|
||||
@@ -568,10 +568,6 @@ ramips_setup_macs()
|
||||
lan_mac=$(mtd_get_mac_binary factory_info 13)
|
||||
wan_mac=$(macaddr_add "$lan_mac" 1)
|
||||
;;
|
||||
mir3g|\
|
||||
xiaomi,mir3p)
|
||||
lan_mac=$(mtd_get_mac_binary Factory 0xe006)
|
||||
;;
|
||||
miwifi-mini)
|
||||
wan_mac=$(cat /sys/class/net/eth0/address)
|
||||
lan_mac=$(macaddr_setbit_la "$wan_mac")
|
||||
@@ -653,6 +649,10 @@ ramips_setup_macs()
|
||||
wlr-6000)
|
||||
wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 32772)" 2)
|
||||
;;
|
||||
xiaomi,mir3g|\
|
||||
xiaomi,mir3p)
|
||||
lan_mac=$(mtd_get_mac_binary Factory 0xe006)
|
||||
;;
|
||||
*)
|
||||
lan_mac=$(cat /sys/class/net/eth0/address)
|
||||
wan_mac=$(macaddr_add "$lan_mac" 1)
|
||||
|
||||
Reference in New Issue
Block a user