ramips/rt305x: Synchronize Makefiles with DTS compatible

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Adrian Schmutzler 2019-07-03 23:22:19 +02:00 committed by Daniel Golle
parent 83efa8329b
commit 7dd3a234be
12 changed files with 460 additions and 668 deletions

View File

@ -17,17 +17,17 @@ led_wlan="$(get_dt_led wlan)"
[ -n "$led_wlan" ] && ucidef_set_led_wlan "wifi_led" "wifi" "$led_wlan" "phy0tpt" [ -n "$led_wlan" ] && ucidef_set_led_wlan "wifi_led" "wifi" "$led_wlan" "phy0tpt"
case $board in case $board in
3g-6200n|\ edimax,3g-6200n|\
edimax,br-6475nd|\ edimax,br-6475nd|\
mzk-w300nh2) planex,mzk-w300nh2)
set_wifi_led "$boardname:amber:wlan" set_wifi_led "$boardname:amber:wlan"
;; ;;
3g-6200nl|\ edimax,3g-6200nl|\
air3gii|\ airlive,air3gii|\
hilink,hlk-7628n|\ hilink,hlk-7628n|\
mr-102n|\ aximcom,mr-102n|\
skylab,skw92a|\ skylab,skw92a|\
wnce2001|\ netgear,wnce2001|\
zbtlink,zbt-we2026) zbtlink,zbt-we2026)
set_wifi_led "$boardname:green:wlan" set_wifi_led "$boardname:green:wlan"
;; ;;
@ -51,8 +51,8 @@ alfa-network,tube-e4g)
ucidef_set_led_netdev "4g" "4g" "$boardname:green:4g" "wwan0" ucidef_set_led_netdev "4g" "4g" "$boardname:green:4g" "wwan0"
ucidef_set_led_netdev "lan" "lan" "$boardname:blue:lan" "eth0" ucidef_set_led_netdev "lan" "lan" "$boardname:blue:lan" "eth0"
;; ;;
all0256n-4M|\ allnet,all0256n-4m|\
all0256n-8M) allnet,all0256n-8m)
ucidef_set_rssimon "wlan0" "200000" "1" ucidef_set_rssimon "wlan0" "200000" "1"
ucidef_set_led_rssi "rssilow" "RSSILOW" "all0256n:green:rssilow" "wlan0" "1" "40" "0" "6" ucidef_set_led_rssi "rssilow" "RSSILOW" "all0256n:green:rssilow" "wlan0" "1" "40" "0" "6"
ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "all0256n:green:rssimed" "wlan0" "30" "80" "-29" "5" ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "all0256n:green:rssimed" "wlan0" "30" "80" "-29" "5"
@ -61,11 +61,11 @@ all0256n-8M)
;; ;;
airlink101,ar670w|\ airlink101,ar670w|\
airlink101,ar725w|\ airlink101,ar725w|\
awapn2403) asiarf,awapn2403)
set_wifi_led "rt2800soc-phy0::radio" set_wifi_led "rt2800soc-phy0::radio"
;; ;;
asl26555-8M|\ alphanetworks,asl26555-8m|\
asl26555-16M) alphanetworks,asl26555-16m)
ucidef_set_led_netdev "eth" "ETH" "asl26555:green:eth" "eth0" ucidef_set_led_netdev "eth" "ETH" "asl26555:green:eth" "eth0"
set_wifi_led "asl26555:green:wlan" set_wifi_led "asl26555:green:wlan"
;; ;;
@ -77,7 +77,7 @@ belkin,f9k1109v1)
set_usb_led "$boardname:green:usb1" set_usb_led "$boardname:green:usb1"
ucidef_set_led_netdev "lan" "lan" "$boardname:blue:wps" "eth0" ucidef_set_led_netdev "lan" "lan" "$boardname:blue:wps" "eth0"
;; ;;
broadway) hauppauge,broadway)
set_wifi_led "$boardname:red:wps_active" set_wifi_led "$boardname:red:wps_active"
;; ;;
hnet,c108) hnet,c108)
@ -111,31 +111,31 @@ rakwireless,rak633|\
asus,rt-ac51u) asus,rt-ac51u)
set_wifi_led "$boardname:blue:wifi" set_wifi_led "$boardname:blue:wifi"
;; ;;
dcs-930l-b1) dlink,dcs-930l-b1)
ucidef_set_led_netdev "wifi" "WiFi" "$boardname:blue:wps" ucidef_set_led_netdev "wifi" "WiFi" "$boardname:blue:wps"
;; ;;
dir-300-b1|\ dlink,dir-300-b1|\
dir-300-b7|\ dlink,dir-300-b7|\
dir-320-b1|\ dlink,dir-320-b1|\
dir-600-b1|\ dlink,dir-600-b1|\
dir-610-a1|\ dlink,dir-610-a1|\
dir-615-d|\ dlink,dir-615-d|\
dir-615-h1|\ dlink,dir-615-h1|\
dir-620-a1|\ dlink,dir-620-a1|\
esr-9753|\ engenius,esr-9753|\
hlk-rm04|\ hilink,hlk-rm04|\
kn|\ zyxel,keenetic|\
nbg-419n2|\ zyxel,nbg-419n-v2|\
sl-r7205|\ skyline,sl-r7205|\
ralink,v11st-fe|\ ralink,v11st-fe|\
w306r-v20|\ tenda,w306r-v2|\
w502u|\ alfa-network,w502u|\
wt1520-4M|\ nexx,wt1520-4m|\
wt1520-8M|\ nexx,wt1520-8m|\
zyxel,keenetic-start) zyxel,keenetic-start)
set_wifi_led "rt2800pci-phy0::radio" set_wifi_led "rt2800pci-phy0::radio"
;; ;;
dir-620-d1|\ dlink,dir-620-d1|\
dlink,dwr-116-a1|\ dlink,dwr-116-a1|\
head-weblink,hdrm200|\ head-weblink,hdrm200|\
zyxel,keenetic-omni|\ zyxel,keenetic-omni|\
@ -143,7 +143,7 @@ zyxel,keenetic-omni-ii|\
zyxel,keenetic-viva|\ zyxel,keenetic-viva|\
planex,mzk-ex300np|\ planex,mzk-ex300np|\
ohyeah,oy-0001|\ ohyeah,oy-0001|\
tew-714tru|\ trendnet,tew-714tru|\
zbtlink,zbt-wr8305rt) zbtlink,zbt-wr8305rt)
set_wifi_led "$boardname:green:wifi" set_wifi_led "$boardname:green:wifi"
;; ;;
@ -178,7 +178,7 @@ netgear,ex3700)
belkin,f5d8235-v1) belkin,f5d8235-v1)
set_wifi_led "$boardname:blue:wireless" set_wifi_led "$boardname:blue:wireless"
;; ;;
fonera20n|\ fon,fonera-20n|\
dovado,tiny-ac) dovado,tiny-ac)
set_wifi_led "$boardname:orange:wifi" set_wifi_led "$boardname:orange:wifi"
;; ;;
@ -207,7 +207,7 @@ hiwifi,hc5861)
ucidef_set_led_netdev "wifi5g" "wifi5g" "$boardname:blue:wlan5g" "wlan0" ucidef_set_led_netdev "wifi5g" "wifi5g" "$boardname:blue:wlan5g" "wlan0"
ucidef_set_led_netdev "wifi2g" "wifi2g" "$boardname:blue:wlan2g" "wlan1" ucidef_set_led_netdev "wifi2g" "wifi2g" "$boardname:blue:wlan2g" "wlan1"
;; ;;
hg255d) huawei,hg255d)
set_wifi_led "$boardname:green:wlan" set_wifi_led "$boardname:green:wlan"
ucidef_set_led_netdev "internet" "internet" "$boardname:green:internet" "eth0.2" ucidef_set_led_netdev "internet" "internet" "$boardname:green:internet" "eth0.2"
;; ;;
@ -215,7 +215,7 @@ omnima,hpm)
ucidef_set_led_netdev "eth" "ETH" "$boardname:green:eth" "eth0" ucidef_set_led_netdev "eth" "ETH" "$boardname:green:eth" "eth0"
set_wifi_led "$boardname:green:wifi" set_wifi_led "$boardname:green:wifi"
;; ;;
ht-tm02) hootoo,ht-tm02)
ucidef_set_led_netdev "eth" "Ethernet" "$boardname:green:lan" "eth0" ucidef_set_led_netdev "eth" "Ethernet" "$boardname:green:lan" "eth0"
set_wifi_led "$boardname:blue:wlan" set_wifi_led "$boardname:blue:wlan"
;; ;;
@ -235,7 +235,7 @@ lava,lr-25g001)
mediatek,linkit-smart-7688) mediatek,linkit-smart-7688)
ucidef_set_led_wlan "wifi" "wifi" "linkit-smart-7688:orange:wifi" "phy0tpt" ucidef_set_led_wlan "wifi" "wifi" "linkit-smart-7688:orange:wifi" "phy0tpt"
;; ;;
m2m) intenso,memory2move)
set_wifi_led "$boardname:blue:wifi" set_wifi_led "$boardname:blue:wifi"
ucidef_set_led_netdev "eth" "Ethernet" "$boardname:green:wan" "eth0" ucidef_set_led_netdev "eth" "Ethernet" "$boardname:green:wan" "eth0"
;; ;;
@ -247,7 +247,7 @@ mikrotik,rbm11g)
ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$boardname:green:rssi3" "wlan0" "60" "100" ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$boardname:green:rssi3" "wlan0" "60" "100"
ucidef_set_led_rssi "rssiveryhigh" "RSSIVERYHIGH" "$boardname:green:rssi4" "wlan0" "80" "100" ucidef_set_led_rssi "rssiveryhigh" "RSSIVERYHIGH" "$boardname:green:rssi4" "wlan0" "80" "100"
;; ;;
miniembplug) omnima,miniembplug)
set_wifi_led "$boardname:red:wlan" set_wifi_led "$boardname:red:wlan"
;; ;;
tplink,archer-mr200) tplink,archer-mr200)
@ -279,8 +279,8 @@ d-team,newifi-d2)
phicomm,psg1208) phicomm,psg1208)
set_wifi_led "$boardname:white:wlan2g" set_wifi_led "$boardname:white:wlan2g"
;; ;;
px-4885-4M|\ 7links,px-4885-4m|\
px-4885-8M) 7links,px-4885-8m)
set_wifi_led "px-4885:orange:wifi" set_wifi_led "px-4885:orange:wifi"
;; ;;
netgear,r6220|\ netgear,r6220|\
@ -382,8 +382,8 @@ unielec,u7628-01-128m-16m)
ucidef_set_led_switch "wan" "wan" "u7628-01:green:wan" "switch0" "0x01" ucidef_set_led_switch "wan" "wan" "u7628-01:green:wan" "switch0" "0x01"
set_wifi_led "u7628-01:green:wlan" set_wifi_led "u7628-01:green:wlan"
;; ;;
vocore-8M|\ vocore,vocore-8m|\
vocore-16M) vocore,vocore-16m)
ucidef_set_led_netdev "eth" "ETH" "vocore:orange:eth" "eth0" ucidef_set_led_netdev "eth" "ETH" "vocore:orange:eth" "eth0"
;; ;;
wavlink,wl-wn570ha1) wavlink,wl-wn570ha1)

View File

@ -33,7 +33,7 @@ ramips_setup_interfaces()
case $board in case $board in
wevo,11acnas|\ wevo,11acnas|\
d-team,newifi-d2|\ d-team,newifi-d2|\
dir-615-h1|\ dlink,dir-615-h1|\
wevo,w2914ns-v2|\ wevo,w2914ns-v2|\
zbtlink,zbt-we2026) zbtlink,zbt-we2026)
ucidef_add_switch "switch0" \ ucidef_add_switch "switch0" \
@ -42,35 +42,35 @@ ramips_setup_interfaces()
asiarf,ap7621-001) asiarf,ap7621-001)
ucidef_add_switch "switch0" "0:lan" "4:wan" "6@eth0" ucidef_add_switch "switch0" "0:lan" "4:wan" "6@eth0"
;; ;;
3g150b|\ tenda,3g150b|\
3g300m|\ tenda,3g300m|\
a5-v11|\ unbranded,a5-v11|\
all0256n-4M|\ allnet,all0256n-4m|\
all0256n-8M|\ allnet,all0256n-8m|\
all5002|\ allnet,all5002|\
all5003|\ allnet,all5003|\
yukai,bocco|\ yukai,bocco|\
broadway|\ hauppauge,broadway|\
dcs-930|\ dlink,dcs-930|\
dcs-930l-b1|\ dlink,dcs-930l-b1|\
edimax,ew-7476rpc|\ edimax,ew-7476rpc|\
edimax,ew-7478ac|\ edimax,ew-7478ac|\
ht-tm02|\ hootoo,ht-tm02|\
kimax,u35wf|\ kimax,u35wf|\
mediatek,linkit-smart-7688|\ mediatek,linkit-smart-7688|\
m2m|\ intenso,memory2move|\
microduino,microwrt|\ microduino,microwrt|\
mikrotik,rbm11g|\ mikrotik,rbm11g|\
mpr-a2|\ hame,mpr-a2|\
ncs601w|\ wansview,ncs601w|\
onion,omega2|\ onion,omega2|\
onion,omega2p|\ onion,omega2p|\
thunder,timecloud|\ thunder,timecloud|\
tplink,tl-wa801nd-v5|\ tplink,tl-wa801nd-v5|\
w150m|\ tenda,w150m|\
widora,neo-16m|\ widora,neo-16m|\
widora,neo-32m|\ widora,neo-32m|\
wnce2001|\ netgear,wnce2001|\
zbtlink,zbt-cpe102|\ zbtlink,zbt-cpe102|\
zorlik,zl5900v2|\ zorlik,zl5900v2|\
zte,q7) zte,q7)
@ -79,20 +79,20 @@ ramips_setup_interfaces()
ucidef_set_interface_lan "eth0" ucidef_set_interface_lan "eth0"
;; ;;
kingston,mlw221|\ kingston,mlw221|\
mr-102n) aximcom,mr-102n)
ucidef_set_interface_lan "eth0.2" ucidef_set_interface_lan "eth0.2"
;; ;;
3g-6200n|\ edimax,3g-6200n|\
aigale,ai-br100|\ aigale,ai-br100|\
alfa-network,ac1200rm|\ alfa-network,ac1200rm|\
mediatek,ap-mt7621a-v60|\ mediatek,ap-mt7621a-v60|\
xzwifi,creativebox-v1|\ xzwifi,creativebox-v1|\
sanlinking,d240|\ sanlinking,d240|\
planex,db-wrt01|\ planex,db-wrt01|\
dir-300-b7|\ dlink,dir-300-b7|\
dir-320-b1|\ dlink,dir-320-b1|\
dir-610-a1|\ dlink,dir-610-a1|\
dir-615-h1|\ dlink,dir-615-h1|\
dlink,dir-810l|\ dlink,dir-810l|\
dlink,dwr-116-a1|\ dlink,dwr-116-a1|\
dlink,dwr-921-c1|\ dlink,dwr-921-c1|\
@ -101,9 +101,9 @@ ramips_setup_interfaces()
firefly,firewrt|\ firefly,firewrt|\
hiwifi,hc5661a|\ hiwifi,hc5661a|\
hiwifi,hc5962|\ hiwifi,hc5962|\
hlk-rm04|\ hilink,hlk-rm04|\
phicomm,k2p|\ phicomm,k2p|\
kn|\ zyxel,keenetic|\
zyxel,keenetic-omni|\ zyxel,keenetic-omni|\
mercury,mac1200r-v2|\ mercury,mac1200r-v2|\
xiaomi,miwifi-mini|\ xiaomi,miwifi-mini|\
@ -112,9 +112,9 @@ ramips_setup_interfaces()
mediatek,mt7628an-eval-board|\ mediatek,mt7628an-eval-board|\
mtc,wr1201|\ mtc,wr1201|\
planex,mzk-750dhp|\ planex,mzk-750dhp|\
mzk-w300nh2|\ planex,mzk-w300nh2|\
nixcore-x1-8M|\ nixcore,x1-8m|\
nixcore-x1-16M|\ nixcore,x1-16m|\
ohyeah,oy-0001|\ ohyeah,oy-0001|\
d-team,pbr-m1|\ d-team,pbr-m1|\
phicomm,psg1208|\ phicomm,psg1208|\
@ -133,7 +133,7 @@ ramips_setup_interfaces()
wavlink,wl-wn570ha1|\ wavlink,wl-wn570ha1|\
wavlink,wl-wn575a3|\ wavlink,wl-wn575a3|\
netis,wf-2881|\ netis,wf-2881|\
whr-g300n|\ buffalo,whr-g300n|\
mqmaker,witi-256m|\ mqmaker,witi-256m|\
mqmaker,witi-512m|\ mqmaker,witi-512m|\
netgear,wndr3700-v5|\ netgear,wndr3700-v5|\
@ -159,7 +159,7 @@ ramips_setup_interfaces()
alfa-network,awusfree1|\ alfa-network,awusfree1|\
alfa-network,tube-e4g|\ alfa-network,tube-e4g|\
planex,cs-qr10|\ planex,cs-qr10|\
d105|\ huawei,d105|\
dlink,dap-1522-a1|\ dlink,dap-1522-a1|\
dlink,dch-m225|\ dlink,dch-m225|\
netgear,ex2700|\ netgear,ex2700|\
@ -209,19 +209,19 @@ ramips_setup_interfaces()
;; ;;
belkin,f9k1109v1|\ belkin,f9k1109v1|\
asus,rt-n15|\ asus,rt-n15|\
wl-351) sitecom,wl-351)
ucidef_add_switch "switch0" \ ucidef_add_switch "switch0" \
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0" "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0"
;; ;;
asl26555-8M|\ alphanetworks,asl26555-8m|\
asl26555-16M|\ alphanetworks,asl26555-16m|\
asus,rp-n53) asus,rp-n53)
ucidef_add_switch "switch0" \ ucidef_add_switch "switch0" \
"1:lan" "2:lan" "3:lan" "4:lan" "6t@eth0" "1:lan" "2:lan" "3:lan" "4:lan" "6t@eth0"
;; ;;
atp-52b|\ argus,atp-52b|\
awm002-evb-4M|\ asiarf,awm002-evb-4m|\
awm002-evb-8M|\ asiarf,awm002-evb-8m|\
bdcom,wap2100-sk|\ bdcom,wap2100-sk|\
tplink,archer-c20i|\ tplink,archer-c20i|\
dlink,dir-645|\ dlink,dir-645|\
@ -230,12 +230,12 @@ ramips_setup_interfaces()
glinet,gl-mt750|\ glinet,gl-mt750|\
hilink,hlk-7628n|\ hilink,hlk-7628n|\
hiwifi,hc5861b|\ hiwifi,hc5861b|\
jhr-n805r|\ jcg,jhr-n805r|\
jhr-n825r|\ jcg,jhr-n825r|\
jhr-n926r|\ jcg,jhr-n926r|\
mikrotik,rb750gr3|\ mikrotik,rb750gr3|\
mikrotik,rbm33g|\ mikrotik,rbm33g|\
mzk-wdpr|\ planex,mzk-wdpr|\
asus,rt-n14u|\ asus,rt-n14u|\
skylab,skw92a|\ skylab,skw92a|\
tplink,archer-c20-v4|\ tplink,archer-c20-v4|\
@ -250,7 +250,7 @@ ramips_setup_interfaces()
unielec,u7628-01-128m-16m|\ unielec,u7628-01-128m-16m|\
ubiquiti,edgerouterx|\ ubiquiti,edgerouterx|\
ubiquiti,edgerouterx-sfp|\ ubiquiti,edgerouterx-sfp|\
ur-326n4g|\ upvel,ur-326n4g|\
wrtnode,wrtnode|\ wrtnode,wrtnode|\
wrtnode,wrtnode2p|\ wrtnode,wrtnode2p|\
wrtnode,wrtnode2r|\ wrtnode,wrtnode2r|\
@ -269,7 +269,7 @@ ramips_setup_interfaces()
elecom,wrc-1167ghbk2-s|\ elecom,wrc-1167ghbk2-s|\
elecom,wrc-2533gst|\ elecom,wrc-2533gst|\
elecom,wrc-1900gst|\ elecom,wrc-1900gst|\
hg255d|\ huawei,hg255d|\
iodata,wn-ax1167gr|\ iodata,wn-ax1167gr|\
iodata,wn-gx300gr) iodata,wn-gx300gr)
ucidef_add_switch "switch0" \ ucidef_add_switch "switch0" \
@ -284,17 +284,17 @@ ramips_setup_interfaces()
ucidef_add_switch "switch0" \ ucidef_add_switch "switch0" \
"1:lan" "0:wan" "6@eth0" "1:lan" "0:wan" "6@eth0"
;; ;;
awapn2403) asiarf,awapn2403)
ucidef_add_switch "switch0" \ ucidef_add_switch "switch0" \
"0:lan" "1:wan" "6@eth0" "0:lan" "1:wan" "6@eth0"
;; ;;
b2c|\ b2c|\
nw718|\ netcore,nw718|\
psr-680w|\ petatel,psr-680w|\
sl-r7205|\ skyline,sl-r7205|\
ur-336un|\ upvel,ur-336un|\
w502u|\ alfa-network,w502u|\
wr6202) accton,wr6202)
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
;; ;;
edimax,br-6475nd) edimax,br-6475nd)
@ -352,8 +352,8 @@ ramips_setup_interfaces()
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "7t@eth0" "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "7t@eth0"
;; ;;
kingston,mlwg2|\ kingston,mlwg2|\
wizard8800|\ easyacc,wizard-8800|\
wl-330n) asus,wl-330n)
ucidef_set_interface_lan "eth0.1" ucidef_set_interface_lan "eth0.1"
;; ;;
tplink,archer-mr200) tplink,archer-mr200)
@ -369,9 +369,9 @@ ramips_setup_interfaces()
ucidef_add_switch "switch0" \ ucidef_add_switch "switch0" \
"1:lan" "4:lan" "0:wan" "6@eth0" "1:lan" "4:lan" "0:wan" "6@eth0"
;; ;;
mzk-dp150n|\ planex,mzk-dp150n|\
vocore-8M|\ vocore,vocore-8m|\
vocore-16M) vocore,vocore-16m)
ucidef_add_switch "switch0" \ ucidef_add_switch "switch0" \
"0:lan" "4:lan" "6t@eth0" "0:lan" "4:lan" "6t@eth0"
;; ;;
@ -398,7 +398,7 @@ ramips_setup_interfaces()
ucidef_add_switch "switch0" \ ucidef_add_switch "switch0" \
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "8@eth0" "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "8@eth0"
;; ;;
tew-638apb-v2) trendnet,tew-638apb-v2)
ucidef_add_switch "switch0" \ ucidef_add_switch "switch0" \
"4:lan" "6@eth0" "4:lan" "6@eth0"
;; ;;
@ -414,8 +414,8 @@ ramips_setup_interfaces()
"4:lan" "6@eth0" "4:lan" "6@eth0"
;; ;;
vonets,var11n-300|\ vonets,var11n-300|\
wt1520-4M|\ nexx,wt1520-4m|\
wt1520-8M) nexx,wt1520-8m)
ucidef_add_switch "switch0" \ ucidef_add_switch "switch0" \
"0:lan" "4:wan" "6@eth0" "0:lan" "4:wan" "6@eth0"
;; ;;
@ -425,8 +425,8 @@ ramips_setup_interfaces()
"0:lan" "2:lan" "6t@eth0" "0:lan" "2:lan" "6t@eth0"
;; ;;
belkin,f5d8235-v1|\ belkin,f5d8235-v1|\
f5d8235-v2|\ belkin,f5d8235-v2|\
tew-714tru|\ trendnet,tew-714tru|\
ralink,v11st-fe|\ ralink,v11st-fe|\
buffalo,wzr-agl300nh) buffalo,wzr-agl300nh)
ucidef_add_switch "switch0" \ ucidef_add_switch "switch0" \
@ -436,7 +436,7 @@ ramips_setup_interfaces()
ucidef_add_switch "switch0" \ ucidef_add_switch "switch0" \
"3:lan" "4:wan" "6@eth0" "3:lan" "4:wan" "6@eth0"
;; ;;
wcr-150gn|\ sparklan,wcr-150gn|\
zbtlink,we1026-5g-16m) zbtlink,we1026-5g-16m)
ucidef_add_switch "switch0" \ ucidef_add_switch "switch0" \
"0:lan" "6t@eth0" "0:lan" "6t@eth0"
@ -445,7 +445,7 @@ ramips_setup_interfaces()
ucidef_add_switch "switch0" \ ucidef_add_switch "switch0" \
"0:lan" "1:lan" "2:lan" "3:lan" "5:wan" "6@eth0" "0:lan" "1:lan" "2:lan" "3:lan" "5:wan" "6@eth0"
;; ;;
wizfi630a) wiznet,wizfi630a)
ucidef_add_switch "switch0" \ ucidef_add_switch "switch0" \
"0:lan" "1:lan" "2:wan" "6@eth0" "0:lan" "1:lan" "2:wan" "6@eth0"
;; ;;
@ -497,30 +497,30 @@ ramips_setup_macs()
local wan_mac="" local wan_mac=""
case $board in case $board in
a5-v11|\ unbranded,a5-v11|\
ht-tm02|\ hootoo,ht-tm02|\
loewe,wmdr-143n) loewe,wmdr-143n)
lan_mac=$(cat /sys/class/net/eth0/address) lan_mac=$(cat /sys/class/net/eth0/address)
;; ;;
carambola|\ 8devices,carambola|\
freestation5|\ arcwireless,freestation5|\
w502u|\ alfa-network,w502u|\
wnce2001) netgear,wnce2001)
wan_mac=$(mtd_get_mac_binary factory 46) wan_mac=$(mtd_get_mac_binary factory 46)
;; ;;
bc2|\ nexaira,bc2|\
broadway|\ hauppauge,broadway|\
d105|\ huawei,d105|\
dir-300-b7|\ dlink,dir-300-b7|\
dir-320-b1|\ dlink,dir-320-b1|\
dir-620-a1|\ dlink,dir-620-a1|\
esr-9753|\ engenius,esr-9753|\
freestation5|\ arcwireless,freestation5|\
hilink,hlk-7628n|\ hilink,hlk-7628n|\
hlk-rm04|\ hilink,hlk-rm04|\
mpr-a1|\ hame,mpr-a1|\
psr-680w|\ petatel,psr-680w|\
sl-r7205|\ skyline,sl-r7205|\
lenovo,newifi-y1|\ lenovo,newifi-y1|\
lenovo,newifi-y1s) lenovo,newifi-y1s)
lan_mac=$(cat /sys/class/net/eth0/address) lan_mac=$(cat /sys/class/net/eth0/address)
@ -571,7 +571,7 @@ ramips_setup_macs()
wan_mac=$(mtd_get_mac_binary factory 57350) wan_mac=$(mtd_get_mac_binary factory 57350)
;; ;;
glinet,gl-mt300n-v2|\ glinet,gl-mt300n-v2|\
whr-g300n) buffalo,whr-g300n)
wan_mac=$(mtd_get_mac_binary factory 4) wan_mac=$(mtd_get_mac_binary factory 4)
;; ;;
hiwifi,hc5661|\ hiwifi,hc5661|\
@ -609,11 +609,11 @@ ramips_setup_macs()
wan_mac=$(cat /sys/class/net/eth0/address) wan_mac=$(cat /sys/class/net/eth0/address)
lan_mac=$(macaddr_setbit_la "$wan_mac") lan_mac=$(macaddr_setbit_la "$wan_mac")
;; ;;
m3|\ poray,m3|\
m4-4M|\ poray,m4-4m|\
m4-8M|\ poray,m4-8m|\
x5|\ poray,x5|\
x8) poray,x8)
lan_mac=$(cat /sys/class/net/eth0/address) lan_mac=$(cat /sys/class/net/eth0/address)
lan_mac=$(macaddr_add "$lan_mac" -2) lan_mac=$(macaddr_add "$lan_mac" -2)
;; ;;
@ -660,7 +660,7 @@ ramips_setup_macs()
lan_mac=$(mtd_get_mac_binary factory 57344) lan_mac=$(mtd_get_mac_binary factory 57344)
wan_mac=$(mtd_get_mac_binary factory 57350) wan_mac=$(mtd_get_mac_binary factory 57350)
;; ;;
w306r-v20) tenda,w306r-v2)
lan_mac=$(cat /sys/class/net/eth0/address) lan_mac=$(cat /sys/class/net/eth0/address)
wan_mac=$(macaddr_add "$lan_mac" 5) wan_mac=$(macaddr_add "$lan_mac" 5)
;; ;;
@ -670,7 +670,7 @@ ramips_setup_macs()
wan_mac="$(grep -m1 mac= "/dev/mtd${index}" | cut -d= -f2)" wan_mac="$(grep -m1 mac= "/dev/mtd${index}" | cut -d= -f2)"
lan_mac=$wan_mac lan_mac=$wan_mac
;; ;;
wcr-150gn) sparklan,wcr-150gn)
wan_mac=$(mtd_get_mac_binary factory 40) wan_mac=$(mtd_get_mac_binary factory 40)
;; ;;
buffalo,whr-1166d|\ buffalo,whr-1166d|\
@ -680,7 +680,7 @@ ramips_setup_macs()
wan_mac=$(mtd_get_mac_binary factory 4) wan_mac=$(mtd_get_mac_binary factory 4)
lan_mac=$wan_mac lan_mac=$wan_mac
;; ;;
wizfi630a) wiznet,wizfi630a)
lan_mac=$(mtd_get_mac_binary factory 4) lan_mac=$(mtd_get_mac_binary factory 4)
wan_mac=$(mtd_get_mac_binary factory 40) wan_mac=$(mtd_get_mac_binary factory 40)
;; ;;

View File

@ -11,7 +11,7 @@ do_checksumming_disable() {
local board=$(board_name) local board=$(board_name)
case "$board" in case "$board" in
wnce2001) netgear,wnce2001)
echo "Board is WNCE2001, updating checksum partition..." echo "Board is WNCE2001, updating checksum partition..."
local zeroes=/dev/zero local zeroes=/dev/zero
local tmpfile=/tmp/wnce2001_checksum local tmpfile=/tmp/wnce2001_checksum

View File

@ -10,318 +10,9 @@ ramips_board_detect() {
machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo) machine=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /machine/ {print $2}' /proc/cpuinfo)
case "$machine" in case "$machine" in
*"3G150B")
name="3g150b"
;;
*"3G300M")
name="3g300m"
;;
*"3g-6200n")
name="3g-6200n"
;;
*"3g-6200nl")
name="3g-6200nl"
;;
*"A5-V11")
name="a5-v11"
;;
*"Air3GII")
name="air3gii"
;;
*"ALL0256N (4M)")
name="all0256n-4M"
;;
*"ALL0256N (8M)")
name="all0256n-8M"
;;
*"ALL5002")
name="all5002"
;;
*"ALL5003")
name="all5003"
;;
*"ASL26555 (8M)")
name="asl26555-8M"
;;
*"ASL26555 (16M)")
name="asl26555-16M"
;;
*"ATP-52B")
name="atp-52b"
;;
*"AWAPN2403")
name="awapn2403"
;;
*"AWM002 EVB (4M)")
name="awm002-evb-4M"
;;
*"AWM002 EVB (8M)")
name="awm002-evb-8M"
;;
*"BC2")
name="bc2"
;;
*"Broadway")
name="broadway"
;;
*"Carambola")
name="carambola"
;;
*"D105")
name="d105"
;;
*"DAP-1350")
name="dap-1350"
;;
*"DCS-930")
name="dcs-930"
;;
*"DCS-930L B1")
name="dcs-930l-b1"
;;
*"DIR-300 B1")
name="dir-300-b1"
;;
*"DIR-300 B7")
name="dir-300-b7"
;;
*"DIR-320 B1")
name="dir-320-b1"
;;
*"DIR-600 B1")
name="dir-600-b1"
;;
*"DIR-610 A1")
name="dir-610-a1"
;;
*"DIR-615 D")
name="dir-615-d"
;;
*"DIR-615 H1")
name="dir-615-h1"
;;
*"DIR-620 A1")
name="dir-620-a1"
;;
*"DIR-620 D1")
name="dir-620-d1"
;;
*"DWR-512 B")
name="dwr-512-b"
;;
*"ESR-9753")
name="esr-9753"
;;
*"F5D8235 v2")
name="f5d8235-v2"
;;
*"F7C027")
name="f7c027"
;;
*"Fonera 2.0N")
name="fonera20n"
;;
*"FreeStation5")
name="freestation5"
;;
*"HG255D")
name="hg255d"
;;
*"HLK-RM04")
name="hlk-rm04"
;;
*"HT-TM02")
name="ht-tm02"
;;
*"HW550-3G")
name="hw550-3g"
;;
*"IP2202")
name="ip2202"
;;
*"JHR-N805R")
name="jhr-n805r"
;;
*"JHR-N825R")
name="jhr-n825r"
;;
*"JHR-N926R")
name="jhr-n926r"
;;
*"M3")
name="m3"
;;
*"M4 (4M)")
name="m4-4M"
;;
*"M4 (8M)")
name="m4-8M"
;;
*"Memory 2 Move")
name="m2m"
;;
*"MiniEMBPlug")
name="miniembplug"
;;
*"MiniEMBWiFi")
name="miniembwifi"
;;
*"MOFI3500-3GN")
name="mofi3500-3gn"
;;
*"MPR-A1")
name="mpr-a1"
;;
*"MPR-A2")
name="mpr-a2"
;;
*"MR-102N")
name="mr-102n"
;;
*"MT7688 evaluation"*) *"MT7688 evaluation"*)
name="mt7688" name="mt7688"
;; ;;
*"MZK-DP150N")
name="mzk-dp150n"
;;
*"MZK-W300NH2"*)
name="mzk-w300nh2"
;;
*"MZK-WDPR"*)
name="mzk-wdpr"
;;
*"NBG-419N")
name="nbg-419n"
;;
*"NBG-419N v2")
name="nbg-419n2"
;;
*"NCS601W")
name="ncs601w"
;;
*"NixcoreX1 (8M)")
name="nixcore-x1-8M"
;;
*"NixcoreX1 (16M)")
name="nixcore-x1-16M"
;;
*"NW718")
name="nw718"
;;
*"PSR-680W"*)
name="psr-680w"
;;
*"PWH2004")
name="pwh2004"
;;
*"PX-4885 (4M)")
name="px-4885-4M"
;;
*"PX-4885 (8M)")
name="px-4885-8M"
;;
*"RN502J")
name="xdxrn502j"
;;
*"RT5350F-OLinuXino")
name="rt5350f-olinuxino"
;;
*"RT5350F-OLinuXino-EVB")
name="rt5350f-olinuxino-evb"
;;
*"RT-G32 B1")
name="rt-g32-b1"
;;
*"RT-N10+")
name="rt-n10-plus"
;;
*"RT-N13U")
name="rt-n13u"
;;
*"RUT5XX")
name="rut5xx"
;;
*"SL-R7205"*)
name="sl-r7205"
;;
*"TEW-638APB v2")
name="tew-638apb-v2"
;;
*"TEW-714TRU")
name="tew-714tru"
;;
*"UR-326N4G")
name="ur-326n4g"
;;
*"UR-336UN")
name="ur-336un"
;;
*"V22RW-2X2")
name="v22rw-2x2"
;;
*"VoCore (8M)")
name="vocore-8M"
;;
*"VoCore (16M)")
name="vocore-16M"
;;
*"W150M")
name="w150m"
;;
*"W306R V2.0")
name="w306r-v20"
;;
*"W502U")
name="w502u"
;;
*"WCR-150GN")
name="wcr-150gn"
;;
*"WHR-G300N")
name="whr-g300n"
;;
*"WIZARD 8800")
name="wizard8800"
;;
*"WizFi630A")
name="wizfi630a"
;;
*"WL-330N")
name="wl-330n"
;;
*"WL-330N3G")
name="wl-330n3g"
;;
*"WL-351 v1 002")
name="wl-351"
;;
*"WNCE2001")
name="wnce2001"
;;
*"WR512-3GN (4M)")
name="wr512-3gn-4M"
;;
*"WR512-3GN (8M)")
name="wr512-3gn-8M"
;;
*"WR6202")
name="wr6202"
;;
*"WT1520 (4M)")
name="wt1520-4M"
;;
*"WT1520 (8M)")
name="wt1520-8M"
;;
*"X5")
name="x5"
;;
*"X8")
name="x8"
;;
*"ZyXEL Keenetic")
name="kn"
;;
esac esac
# use generic board detect if no name is set # use generic board detect if no name is set

View File

@ -6,7 +6,7 @@
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "dlink,dir-615-d1", "ralink,rt3050-soc"; compatible = "dlink,dir-615-d", "ralink,rt3050-soc";
model = "D-Link DIR-615 D"; model = "D-Link DIR-615 D";
aliases { aliases {

View File

@ -6,7 +6,7 @@
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "fon,fonera20n", "ralink,rt3052-soc"; compatible = "fon,fonera-20n", "ralink,rt3052-soc";
model = "La Fonera 2.0N"; model = "La Fonera 2.0N";
aliases { aliases {

View File

@ -6,8 +6,8 @@
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "alfanetworks,w502u", "ralink,rt3052-soc"; compatible = "alfa-network,w502u", "ralink,rt3052-soc";
model = "ALFA Networks W502U"; model = "ALFA Network W502U";
aliases { aliases {
led-boot = &led_wps; led-boot = &led_wps;

View File

@ -6,7 +6,7 @@
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "sparklan,wcr150gn", "ralink,rt3050-soc"; compatible = "sparklan,wcr-150gn", "ralink,rt3050-soc";
model = "Sparklan WCR-150GN"; model = "Sparklan WCR-150GN";
aliases { aliases {

View File

@ -3,7 +3,7 @@
#include "rt5350.dtsi" #include "rt5350.dtsi"
/ { / {
compatible = "easyacc,wizard8800", "ralink,rt5350-soc"; compatible = "easyacc,wizard-8800", "ralink,rt5350-soc";
model = "EASYACC WI-STOR WIZARD 8800"; model = "EASYACC WI-STOR WIZARD 8800";
}; };

View File

@ -7,7 +7,7 @@
/ { / {
compatible = "accton,wr6202", "ralink,rt3052-soc"; compatible = "accton,wr6202", "ralink,rt3052-soc";
model = "AWB WR6202"; model = "Accton WR6202";
chosen { chosen {
bootargs = "console=ttyS0,115200"; bootargs = "console=ttyS0,115200";

View File

@ -6,7 +6,7 @@
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
compatible = "unbranded,xdxrn502j", "ralink,rt3052-soc"; compatible = "unbranded,xdx-rn502j", "ralink,rt3052-soc";
model = "XDX RN502J"; model = "XDX RN502J";
aliases { aliases {

File diff suppressed because it is too large Load Diff