aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-07-03 23:22:16 +0200
committerDaniel Golle <daniel@makrotopia.org>2019-07-10 17:36:29 +0200
commit83efa8329b35a1a2688309323169fa624cec4e5c (patch)
treef32718e54dca7bd8d9b7ebea8edc10d5024f8081 /target/linux/ramips/base-files
parentc2334ad60dc82cedc2ec9a6eb8166200d7cbf5e3 (diff)
downloadupstream-83efa8329b35a1a2688309323169fa624cec4e5c.tar.gz
upstream-83efa8329b35a1a2688309323169fa624cec4e5c.tar.bz2
upstream-83efa8329b35a1a2688309323169fa624cec4e5c.zip
ramips/rt288x,rt3883: Synchronize Makefiles with DTS compatible
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds12
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network48
-rw-r--r--target/linux/ramips/base-files/lib/preinit/04_handle_checksumming2
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh48
4 files changed, 31 insertions, 79 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds
index d044ec7bcc..ec8abae582 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -18,7 +18,7 @@ led_wlan="$(get_dt_led wlan)"
case $board in
3g-6200n|\
-br-6475nd|\
+edimax,br-6475nd|\
mzk-w300nh2)
set_wifi_led "$boardname:amber:wlan"
;;
@@ -59,8 +59,8 @@ all0256n-8M)
ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "all0256n:green:rssihigh" "wlan0" "70" "100" "-69" "8"
set_wifi_led "rt2800pci-phy0::radio"
;;
-ar670w|\
-ar725w|\
+airlink101,ar670w|\
+airlink101,ar725w|\
awapn2403)
set_wifi_led "rt2800soc-phy0::radio"
;;
@@ -127,7 +127,7 @@ hlk-rm04|\
kn|\
nbg-419n2|\
sl-r7205|\
-v11st-fe|\
+ralink,v11st-fe|\
w306r-v20|\
w502u|\
wt1520-4M|\
@@ -175,7 +175,7 @@ netgear,ex3700)
ucidef_set_led_netdev "wlan5g" "ROUTER (green)" "$boardname:green:router" "wlan0"
ucidef_set_led_netdev "wlan2g" "DEVICE (green)" "$boardname:green:device" "wlan1"
;;
-f5d8235-v1)
+belkin,f5d8235-v1)
set_wifi_led "$boardname:blue:wireless"
;;
fonera20n|\
@@ -211,7 +211,7 @@ hg255d)
set_wifi_led "$boardname:green:wlan"
ucidef_set_led_netdev "internet" "internet" "$boardname:green:internet" "eth0.2"
;;
-hpm)
+omnima,hpm)
ucidef_set_led_netdev "eth" "ETH" "$boardname:green:eth" "eth0"
set_wifi_led "$boardname:green:wifi"
;;
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index 94cc9e0ccd..8bbd362589 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -164,7 +164,7 @@ ramips_setup_interfaces()
dlink,dch-m225|\
netgear,ex2700|\
netgear,ex3700|\
- hpm|\
+ omnima,hpm|\
planex,mzk-ex300np|\
planex,mzk-ex750np|\
sercomm,na930|\
@@ -174,8 +174,8 @@ ramips_setup_interfaces()
tplink,tl-mr3020-v3|\
tplink,tl-wr802n-v4|\
kimax,u25awf-h1|\
- wli-tx4-ag300n|\
- wmdr-143n|\
+ buffalo,wli-tx4-ag300n|\
+ loewe,wmdr-143n|\
buffalo,wmr-300|\
netgear,wn3000rp-v3|\
elecom,wrh-300cr)
@@ -200,15 +200,15 @@ ramips_setup_interfaces()
ucidef_add_switch "switch0" \
"0:lan:1" "1:lan:2" "2:lan:3" "3:lan:4" "4:wan:5" "6@eth0"
;;
- ar670w|\
- ar725w|\
+ airlink101,ar670w|\
+ airlink101,ar725w|\
rakwireless,rak633|\
asus,rt-ac51u)
ucidef_add_switch "switch0" \
"0:wan" "1:lan" "2:lan" "3:lan" "4:lan" "6t@eth0"
;;
belkin,f9k1109v1|\
- rt-n15|\
+ asus,rt-n15|\
wl-351)
ucidef_add_switch "switch0" \
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0"
@@ -224,7 +224,7 @@ ramips_setup_interfaces()
awm002-evb-8M|\
bdcom,wap2100-sk|\
tplink,archer-c20i|\
- dir-645|\
+ dlink,dir-645|\
glinet,gl-mt300a|\
glinet,gl-mt300n|\
glinet,gl-mt750|\
@@ -297,7 +297,7 @@ ramips_setup_interfaces()
wr6202)
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
;;
- br-6475nd)
+ edimax,br-6475nd)
ucidef_add_switch "switch0" \
"1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "9@eth0"
;;
@@ -310,7 +310,7 @@ ramips_setup_interfaces()
ucidef_add_switch "switch0" \
"2:lan:2" "3:lan:1" "4:wan" "6@eth0"
;;
- cy-swr1100)
+ samsung,cy-swr1100)
ucidef_add_switch "switch0" \
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "9@eth0"
;;
@@ -394,7 +394,7 @@ ramips_setup_interfaces()
ucidef_add_switch "switch0" \
"0:lan:1" "1:lan:2" "2:lan:3" "3:lan:4" "6@eth0"
;;
- rt-n56u)
+ asus,rt-n56u)
ucidef_add_switch "switch0" \
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "8@eth0"
;;
@@ -403,9 +403,9 @@ ramips_setup_interfaces()
"4:lan" "6@eth0"
;;
lava,lr-25g001|\
- tew-691gr|\
- tew-692gr|\
- wlr-6000)
+ trendnet,tew-691gr|\
+ trendnet,tew-692gr|\
+ sitecom,wlr-6000)
ucidef_add_switch "switch0" \
"1:lan" "2:lan" "3:lan" "4:lan" "5:wan" "0@eth0"
;;
@@ -424,11 +424,11 @@ ramips_setup_interfaces()
ucidef_add_switch "switch0" \
"0:lan" "2:lan" "6t@eth0"
;;
- f5d8235-v1|\
+ belkin,f5d8235-v1|\
f5d8235-v2|\
tew-714tru|\
- v11st-fe|\
- wzr-agl300nh)
+ ralink,v11st-fe|\
+ buffalo,wzr-agl300nh)
ucidef_add_switch "switch0" \
"1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "5@eth0"
;;
@@ -499,7 +499,7 @@ ramips_setup_macs()
case $board in
a5-v11|\
ht-tm02|\
- wmdr-143n)
+ loewe,wmdr-143n)
lan_mac=$(cat /sys/class/net/eth0/address)
;;
carambola|\
@@ -531,15 +531,15 @@ ramips_setup_macs()
wan_mac=$(mtd_get_mac_ascii uboot-env HW_WAN_MAC)
lan_mac=$(mtd_get_mac_ascii uboot-env HW_LAN_MAC)
;;
- br-6475nd)
+ edimax,br-6475nd)
lan_mac=$(cat /sys/class/net/eth0/address)
wan_mac=$(mtd_get_mac_binary devdata 7)
;;
- cy-swr1100|\
+ samsung,cy-swr1100|\
dlink,dch-m225)
lan_mac=$(mtd_get_mac_ascii factory lanmac)
;;
- dir-645)
+ dlink,dir-645)
lan_mac=$(mtd_get_mac_ascii nvram lanmac)
wan_mac=$(mtd_get_mac_ascii nvram wanmac)
;;
@@ -637,7 +637,7 @@ ramips_setup_macs()
wan_mac=$(mtd_get_mac_binary factory 4)
lan_mac=$(macaddr_add "$wan_mac" 1)
;;
- rt-n56u)
+ asus,rt-n56u)
lan_mac=$(cat /sys/class/net/eth0/address)
lan_mac=$(macaddr_setbit_la "$lan_mac")
wan_mac=$(mtd_get_mac_binary factory 32772)
@@ -646,10 +646,10 @@ ramips_setup_macs()
lan_mac=$(mtd_get_mac_binary factory 40)
wan_mac=$(mtd_get_mac_binary factory 46)
;;
- tew-691gr)
+ trendnet,tew-691gr)
wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 4)" 3)
;;
- tew-692gr)
+ trendnet,tew-692gr)
wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 4)" 1)
;;
dovado,tiny-ac)
@@ -684,7 +684,7 @@ ramips_setup_macs()
lan_mac=$(mtd_get_mac_binary factory 4)
wan_mac=$(mtd_get_mac_binary factory 40)
;;
- wlr-6000)
+ sitecom,wlr-6000)
wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 32772)" 2)
;;
xiaomi,mir3g|\
diff --git a/target/linux/ramips/base-files/lib/preinit/04_handle_checksumming b/target/linux/ramips/base-files/lib/preinit/04_handle_checksumming
index 007abf79f6..3be82ae441 100644
--- a/target/linux/ramips/base-files/lib/preinit/04_handle_checksumming
+++ b/target/linux/ramips/base-files/lib/preinit/04_handle_checksumming
@@ -35,7 +35,7 @@ do_checksumming_disable() {
echo "Checksum is already zero, nothing to do."
fi
;;
- rt-n56u)
+ asus,rt-n56u)
echo "Board is ASUS RT-N56U, replacing uImage header..."
local firmware_mtd=$(find_mtd_part firmware)
local rootfs_mtd=$(find_mtd_part rootfs)
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index 013412b589..e52402f0a2 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -40,12 +40,6 @@ ramips_board_detect() {
*"ALL5003")
name="all5003"
;;
- *"AR670W")
- name="ar670w"
- ;;
- *"AR725W")
- name="ar725w"
- ;;
*"ASL26555 (8M)")
name="asl26555-8M"
;;
@@ -67,18 +61,12 @@ ramips_board_detect() {
*"BC2")
name="bc2"
;;
- *"BR-6475nD")
- name="br-6475nd"
- ;;
*"Broadway")
name="broadway"
;;
*"Carambola")
name="carambola"
;;
- *"CY-SWR1100")
- name="cy-swr1100"
- ;;
*"D105")
name="d105"
;;
@@ -118,18 +106,12 @@ ramips_board_detect() {
*"DIR-620 D1")
name="dir-620-d1"
;;
- *"DIR-645")
- name="dir-645"
- ;;
*"DWR-512 B")
name="dwr-512-b"
;;
*"ESR-9753")
name="esr-9753"
;;
- *"F5D8235 v1")
- name="f5d8235-v1"
- ;;
*"F5D8235 v2")
name="f5d8235-v2"
;;
@@ -148,9 +130,6 @@ ramips_board_detect() {
*"HLK-RM04")
name="hlk-rm04"
;;
- *"HPM")
- name="hpm"
- ;;
*"HT-TM02")
name="ht-tm02"
;;
@@ -259,12 +238,6 @@ ramips_board_detect() {
*"RT-N13U")
name="rt-n13u"
;;
- *"RT-N15")
- name="rt-n15"
- ;;
- *"RT-N56U")
- name="rt-n56u"
- ;;
*"RUT5XX")
name="rut5xx"
;;
@@ -274,12 +247,6 @@ ramips_board_detect() {
*"TEW-638APB v2")
name="tew-638apb-v2"
;;
- *"TEW-691GR")
- name="tew-691gr"
- ;;
- *"TEW-692GR")
- name="tew-692gr"
- ;;
*"TEW-714TRU")
name="tew-714tru"
;;
@@ -289,9 +256,6 @@ ramips_board_detect() {
*"UR-336UN")
name="ur-336un"
;;
- *"V11ST-FE")
- name="v11st-fe"
- ;;
*"V22RW-2X2")
name="v22rw-2x2"
;;
@@ -331,15 +295,6 @@ ramips_board_detect() {
*"WL-351 v1 002")
name="wl-351"
;;
- *"WLI-TX4-AG300N")
- name="wli-tx4-ag300n"
- ;;
- *"WLR-6000")
- name="wlr-6000"
- ;;
- *"WMDR-143N")
- name="wmdr-143n"
- ;;
*"WNCE2001")
name="wnce2001"
;;
@@ -358,9 +313,6 @@ ramips_board_detect() {
*"WT1520 (8M)")
name="wt1520-8M"
;;
- *"WZR-AGL300NH")
- name="wzr-agl300nh"
- ;;
*"X5")
name="x5"
;;