forked from Ivasoft/openwrt
ath79: add support for Qihoo C301
Specifications: - SoC: AR9344 - RAM: 128MB - Flash: 2 * 16MB (MX25L12845) - Ethernet: 2 * FE LAN & 1 * FE WAN - WiFi: 2.4G: AR9344 5G: QCA9882 Flash instruction: 1. Hold reset and power up the router 2. Set your IP to 192.168.1.x 3. Open 192.168.1.1 and upload the generated *factory* firmware Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
This commit is contained in:
@@ -184,6 +184,11 @@ ath79_setup_interfaces()
|
||||
ucidef_add_switch "switch0" \
|
||||
"0@eth0" "3:lan:1" "5:lan:2" "4:wan"
|
||||
;;
|
||||
qihoo,c301)
|
||||
ucidef_set_interface_wan "eth1"
|
||||
ucidef_add_switch "switch0" \
|
||||
"0@eth0" "2:lan" "3:lan"
|
||||
;;
|
||||
rosinson,wr818)
|
||||
ucidef_add_switch "switch0" \
|
||||
"0@eth0" "1:lan" "2:lan" "3:wan"
|
||||
@@ -328,6 +333,10 @@ ath79_setup_macs()
|
||||
lan_mac=$(k2t_get_mac "lan_mac")
|
||||
wan_mac=$(k2t_get_mac "wan_mac")
|
||||
;;
|
||||
qihoo,c301)
|
||||
lan_mac=$(mtd_get_mac_ascii devdata lanmac)
|
||||
wan_mac=$(mtd_get_mac_ascii devdata wanmac)
|
||||
;;
|
||||
rosinson,wr818)
|
||||
wan_mac=$(mtd_get_mac_binary factory 0)
|
||||
lan_mac=$(macaddr_setbit_la "$wan_mac")
|
||||
|
||||
Reference in New Issue
Block a user