From 63d7f7fc925ebfa3aba7e65837676d2ba85c1c69 Mon Sep 17 00:00:00 2001 From: Mathias Kresin Date: Sat, 8 Apr 2017 11:16:21 +0200 Subject: [PATCH] lantiq: use the compatible string as board name Use the first compatible string as board name in userspace. Add the new board name as well as the former used board name to the image metadata to keep compatibilty with already deployed installations. Don't add the former used boardname for boards which exists only in master or evaluation boards. Signed-off-by: Mathias Kresin --- package/boot/uboot-envtools/files/lantiq | 10 +-- .../lantiq/base-files/etc/board.d/01_leds | 27 ++++---- .../lantiq/base-files/etc/board.d/02_network | 64 +++++++++---------- .../etc/hotplug.d/firmware/11-ath10k-caldata | 2 +- .../etc/hotplug.d/firmware/12-ath9k-eeprom | 16 ++--- .../etc/uci-defaults/01_led_migration | 25 ++++---- .../lib/preinit/01_preinit_board.sh | 2 +- .../lantiq/base-files/lib/upgrade/platform.sh | 2 +- target/linux/lantiq/image/Makefile | 57 +++++++++++++++++ target/linux/lantiq/image/tp-link.mk | 3 + 10 files changed, 136 insertions(+), 72 deletions(-) diff --git a/package/boot/uboot-envtools/files/lantiq b/package/boot/uboot-envtools/files/lantiq index d1a6668e84..f4541a559b 100644 --- a/package/boot/uboot-envtools/files/lantiq +++ b/package/boot/uboot-envtools/files/lantiq @@ -13,19 +13,19 @@ touch /etc/config/ubootenv board=$(board_name) case "$board" in -BTHOMEHUBV2B) +bt,homehub-v2b) ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000" "1" ;; -BTHOMEHUBV3A) +bt,homehub-v3a) ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x4000" "0x4000" "1" ;; -GIGASX76X) +siemens,gigaset-sx76x) ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000" "1" ;; -P2812HNUF1) +zyxel,p-2812hnu-f1) ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x2000" "0x20000" "1" ;; -WBMR300) +buffalo,wbmr-300hpd) idx="$(find_mtd_index ubootconfig)" [ -n "$idx" ] && \ ubootenv_add_uci_config "/dev/mtd$idx" "0x0" "0x2000" "0x1000" "2" diff --git a/target/linux/lantiq/base-files/etc/board.d/01_leds b/target/linux/lantiq/base-files/etc/board.d/01_leds index 187ae68a13..0426fb18e6 100755 --- a/target/linux/lantiq/base-files/etc/board.d/01_leds +++ b/target/linux/lantiq/base-files/etc/board.d/01_leds @@ -32,40 +32,43 @@ led_dsl="$(get_dt_led dsl)" board=$(board_name) case "$board" in -ALL0333CJ) +allnet,all0333cj) ucidef_set_led_netdev "lan" "lan" "all0333cj:green:lan" "eth0.1" ;; -ARV4525PW) +arcadyan,arv4525pw) ucidef_set_led_netdev "wifi" "wifi" "arv4525pw:green:wlan" "wlan0" ;; -ARV7506PW11) +arcadyan,arv7506pw11) ucidef_set_led_wlan "wifi" "wifi" "arv7506pw11:green:wlan" "phy0radio" ;; -ARV7519RW22) +arcadyan,arv7519rw22) ucidef_set_led_netdev "lan" "lan" "arv7519rw22:green:lan" "eth0.1" ;; -ARV752DPW22) +arcadyan,arv752dpw22) ucidef_set_led_wlan "wifi" "wifi" "arv752dpw22:red:wifi" "phy0radio" ;; -BTHOMEHUBV5A) +bt,homehub-v5a) ucidef_set_led_default "dimmed" "dimmed" "dimmed" "0" ;; -DM200) +netgear,dm200) ucidef_set_led_netdev "lan" "lan" "dm200:green:lan" "eth0" ;; -FRITZ7320) +avm,fritz7320) ucidef_set_led_netdev "wifi" "wifi" "fritz7320:green:wlan" "wlan0" ;; -P2812HNUF*) +zyxel,p-2812hnu-f1|\ +zyxel,p-2812hnu-f3) ucidef_set_led_wlan "wifi" "wifi" "p2812hnufx:green:wlan" "phy0radio" ;; -VGV7510KW22*) +arcadyan,vgv7510kw22-nor|\ +arcadyan,vgv7510kw22-brn) ucidef_set_led_wlan "wifi" "wifi" "vgv7510kw22:green:wlan" "phy0radio" ;; -VGV7519*) +arcadyan,vgv7519-nor|\ +arcadyan,vgv7519-brn) ucidef_set_led_wlan "wifi" "wifi" "vgv7519:green:wireless" "phy0radio" ;; -WBMR300) +buffalo,wbmr-300hpd) ucidef_set_led_switch "lan1" "LAN1" "wbmr300:green:lan1" "switch0" "0x08" ucidef_set_led_switch "lan2" "LAN2" "wbmr300:green:lan2" "switch0" "0x04" ucidef_set_led_switch "wan" "WAN" "wbmr300:green:wan" "switch0" "0x10" diff --git a/target/linux/lantiq/base-files/etc/board.d/02_network b/target/linux/lantiq/base-files/etc/board.d/02_network index 0a52f1cf6f..efe631c99e 100755 --- a/target/linux/lantiq/base-files/etc/board.d/02_network +++ b/target/linux/lantiq/base-files/etc/board.d/02_network @@ -23,199 +23,199 @@ interface_wan="dsl0" board=$(board_name) case "$board" in -ACMP252) +audiocodes,mp-252) ucidef_add_switch "switch0" \ "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5t@eth0" ;; -ALL0333CJ) +allnet,all0333cj) annex="b" lan_mac=$(mtd_get_mac_ascii uboot_env ethaddr) wan_mac=$(macaddr_add "$lan_mac" 1) ucidef_set_interface_lan 'eth0' ;; -ARV4510PW) +arcadyan,arv4510pw) lan_mac=$(mtd_get_mac_ascii uboot_env ethaddr) wan_mac=$(macaddr_add "$lan_mac" 1) ucidef_add_switch "switch0" \ "0:lan:4" "2:lan:2" "1:lan:3" "3:lan:1" "5t@eth0" ;; -ARV4519PW|ARV7510PW22|ARV7518PW) +arcadyan,arv4519pw|arcadyan,arv7510pw22|arcadyan,arv7518pw) ucidef_add_switch "switch0" \ "0t@eth0" "2:lan" "3:lan" "4:lan" "5:lan" ;; -ARV4520PW) +arcadyan,arv4520pw) annex="b" ucidef_add_switch "switch0" \ "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5t@eth0" ;; -ARV4525PW|ARV452CQW|ARV7525PW|ARV752DPW) +arcadyan,arv4525pw|arcadyan,arv452cqw|arcadyan,arv7525pw|arcadyan,arv752dpw) annex="b" ucidef_set_interface_lan 'eth0' ;; -ARV7506PW11) +arcadyan,arv7506pw11) annex="b" wan_mac=$(macaddr_add "$(mtd_get_mac_binary board_config 22)" 2) ucidef_add_switch "switch0" \ "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5t@eth0" ;; -ARV7519PW) +arcadyan,arv7519pw) wan_mac=$(macaddr_add "$(mtd_get_mac_binary board_config 22)" 1) ucidef_add_switch "switch0" \ "0:lan" "1:lan" "2:lan" "3:lan" "4t@eth0" ;; -ARV7519RW22) +arcadyan,arv7519rw22) wan_mac=$(macaddr_add "$(mtd_get_mac_binary boardconfig 22)" 1) ucidef_add_switch "switch0" \ "0:lan:5" "2:lan:3" "3:lan:4" "4:lan:1" "5:lan:2" "6t@eth0" ;; -ARV752DPW22|ARV8539PW22) +arcadyan,arv752dpw22|arcadyan,arv8539pw22) annex="b" ucidef_add_switch "switch0" \ "0t@eth0" "2:lan" "3:lan" "4:lan" "5:lan" ;; -ASL56026) +alphanetworks,asl56026) lan_mac=$(mtd_get_mac_ascii uboot_env ethaddr) wan_mac=$(mtd_get_mac_ascii uboot_env wanmac) ucidef_add_switch "switch0"\ "2:lan" "3:lan" "6t@eth0" ;; -BTHOMEHUBV2B) +bt,homehub-v2b) lan_mac=$(mtd_get_mac_ascii uboot_env ethaddr) wan_mac=$(macaddr_add "$lan_mac" 1) ucidef_add_switch "switch0" \ "1:lan" "2:lan" "3:lan" "4:lan" "5t@eth0" ;; -BTHOMEHUBV3A) +bt,homehub-v3a) lan_mac=$(mtd_get_mac_ascii uboot_env ethaddr) wan_mac=$(macaddr_add "$lan_mac" 1) ucidef_set_interface_lan 'eth0' ;; -BTHOMEHUBV5A) +bt,homehub-v5a) lan_mac=$(mtd_get_mac_binary_ubi caldata 4364) wan_mac=$(macaddr_add "$lan_mac" 1) ucidef_add_switch "switch0" \ "0:lan:3" "1:lan:4" "2:lan:2" "4:lan:1" "5:wan:5" "6t@eth0" ;; -DGN1000B) +netgear,dgn1000b) annex="b" ucidef_set_interface_lan 'eth0' ;; -DGN3500*) +netgear,dgn3500|netgear,dgn3500b) lan_mac=$(mtd_get_mac_ascii uboot-env ethaddr) wan_mac=$(macaddr_add "$lan_mac" 1) ucidef_add_switch "switch0" \ "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "5t@eth0" ;; -DM200) +netgear,dm200) lan_mac=$(mtd_get_mac_binary ART 0) wan_mac=$(macaddr_add "$lan_mac" 1) ucidef_set_interface_lan 'eth0' ;; -EASY80920NAND|EASY80920NOR) +lantiq,easy80920-nand|lantiq,easy80920-nor) lan_mac=$(mtd_get_mac_ascii uboot_env ethaddr) wan_mac=$(macaddr_add "$lan_mac" 1) ucidef_add_switch "switch0" \ "0:lan:4" "1:lan:3" "2:lan:2" "4:lan:1" "5:wan:5" "6t@eth0" ;; -FRITZ3370) +avm,fritz3370) annex="b" wan_mac=$(macaddr_add "$(mtd_get_mac_binary urlader 2439)" 1) ucidef_set_interface_lan 'eth0' ;; -FRITZ7320) +avm,fritz7320) annex="b" wan_mac=$(macaddr_add "$(mtd_get_mac_binary urlader 2705)" 1) ucidef_set_interface_lan 'eth0' ;; -FRITZ7360SL) +avm,fritz7360sl) annex="b" wan_mac=$(macaddr_add "$(mtd_get_mac_binary urlader 2705)" 1) ucidef_add_switch "switch0" \ "0:lan:3" "1:lan:4" "2:lan:2" "4:lan:1" "6t@eth0" ;; -GIGASX76X) +siemens,gigaset-sx76x) annex="b" ucidef_add_switch "switch0" \ "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5t@eth0" ;; -H201L) +zte,h201l) annex="b" ucidef_add_switch "switch0" \ "0:lan" "1:lan" "2:lan" "3:lan" "4t@eth0" ;; -P2601HNFX) +zyxel,p-2601hn) ucidef_add_switch "switch0" \ "0:lan" "1:lan" "2:lan" "3:lan" "5t@eth0" ;; -P2812HNUF*) +zyxel,p-2812hnu-f1|zyxel,p-2812hnu-f3) lan_mac=$(mtd_get_mac_ascii uboot-env ethaddr) wan_mac=$(macaddr_add "$lan_mac" 1) ucidef_add_switch "switch0" \ "0:lan" "1:lan" "2:lan" "4:lan" "5:wan" "6t@eth0" ;; -TDW8970|TDW8980) +tplink,tdw8970|tplink,tdw8980) wan_mac=$(macaddr_add "$(mtd_get_mac_binary boardconfig 61696)" 1) ucidef_add_switch "switch0" \ "0:lan:2" "2:lan:3" "4:lan:4" "5:lan:1" "6t@eth0" ;; -VG3503J) +arcadyan,vg3503j) lan_mac=$(mtd_get_mac_ascii uboot-env ethaddr) wan_mac=$(macaddr_add "$lan_mac" 1) ucidef_add_switch "switch0" \ "2:lan:1" "4:lan:2" "6t@eth0" ;; -VR200v) +tplink,vr200v) wan_mac=$(macaddr_add "$(mtd_get_mac_binary romfile 61696)" 1) ucidef_add_switch "switch0" \ "0:lan" "2:lan" "4:lan" "5:lan" "6t@eth0" ;; -VGV7510KW22*) +arcadyan,vgv7510kw22-nor|arcadyan,vgv7510kw22-brn) annex="b" wan_mac=$(macaddr_add "$(mtd_get_mac_binary board_config 22)" 2) ucidef_add_switch "switch0" \ "2:lan:2" "3:lan:1" "4:lan:4" "5:lan:3" "0:wan:5" "6t@eth0" ;; -VGV7519*) +arcadyan,vgv7519-nor|arcadyan,vgv7519-brn) wan_mac=$(mtd_get_mac_binary board_config 22) ucidef_add_switch "switch0" \ "0:lan:4" "1:lan:3" "2:lan:2" "4:lan:1" "5:wan:5" "6t@eth0" ;; -WBMR) +buffalo,wbmr-hp-g300h) ucidef_add_switch "switch0" \ "0t@eth0" "2:lan" "3:lan" "4:lan" "5:lan" ;; -WBMR300) +buffalo,wbmr-300hpd) lan_mac=$(mtd_get_mac_ascii ubootconfig ethaddr) wan_mac="$lan_mac" ucidef_add_switch "switch0" \ diff --git a/target/linux/lantiq/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/lantiq/base-files/etc/hotplug.d/firmware/11-ath10k-caldata index 1c2b8456fc..6b4d09dd33 100644 --- a/target/linux/lantiq/base-files/etc/hotplug.d/firmware/11-ath10k-caldata +++ b/target/linux/lantiq/base-files/etc/hotplug.d/firmware/11-ath10k-caldata @@ -38,7 +38,7 @@ case "$FIRMWARE" in "ath10k/cal-pci-0000:02:00.0.bin") board=$(board_name) case $board in - BTHOMEHUBV5A) + bt,homehub-v5a) ath10k_caldata_extract_ubi "caldata" 20480 2116 ath10k_caldata_set_macaddr $(macaddr_add $(mtd_get_mac_binary_ubi caldata 4364) +3) ;; diff --git a/target/linux/lantiq/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom b/target/linux/lantiq/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom index 7144423d43..498a509012 100644 --- a/target/linux/lantiq/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom +++ b/target/linux/lantiq/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom @@ -116,32 +116,32 @@ case "$FIRMWARE" in board=$(board_name) case "$board" in - ARV7518PW) + arcadyan,arv7518pw) ath9k_eeprom_extract "boardconfig" 1024 1 ;; - ARV8539PW22) + arcadyan,arv8539pw22) ath9k_eeprom_extract "art" 1024 1 ;; - BTHOMEHUBV2B) + bt,homehub-v2b) ath9k_eeprom_extract "art" 0 1 ath9k_patch_fw_mac_crc "00:00:00:00:00:00" 524 ;; - BTHOMEHUBV3A) + bt,homehub-v3a) ath9k_eeprom_extract "art-copy" 0 1 ath9k_patch_fw_mac_crc $(macaddr_add $(mtd_get_mac_ascii uboot_env ethaddr) +2) 268 ;; - BTHOMEHUBV5A) + bt,homehub-v5a) ath9k_ubi_eeprom_extract "caldata" 4096 0 ath9k_patch_fw_mac_crc $(macaddr_add $(mtd_get_mac_binary_ubi caldata 4364) +2) 268 ;; - DGN3500*) + netgear,dgn3500|netgear,dgn3500b) ath9k_eeprom_extract "calibration" 61440 0 ath9k_patch_fw_mac_crc $(macaddr_add $(mtd_get_mac_ascii uboot-env ethaddr) +2) 524 ;; - FRITZ3370|FRITZ7320|FRITZ7360SL) + avm,fritz3370|avm,fritz7320|avm,fritz7360sl) ath9k_eeprom_extract "urlader" 2437 0 ;; - TDW8970|TDW8980) + tplink,tdw8970|tplink,tdw8980) ath9k_eeprom_extract "boardconfig" 135168 0 ;; *) diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/01_led_migration b/target/linux/lantiq/base-files/etc/uci-defaults/01_led_migration index 6ff4355853..dc594e35e9 100644 --- a/target/linux/lantiq/base-files/etc/uci-defaults/01_led_migration +++ b/target/linux/lantiq/base-files/etc/uci-defaults/01_led_migration @@ -56,20 +56,21 @@ migrate_leds() } case "$(board_name)" in -ARV452CQW|\ -ARV7510PW22|\ -ARV7519RW22|\ -ARV752DPW|\ -ARV752DPW22|\ -ASL56026|\ -BTHOMEHUBV2B|\ -BTHOMEHUBV3A|\ -BTHOMEHUBV5A|\ -FRTZ7360SL|\ -VG3503J) +arcadyan,arv452cqw|\ +arcadyan,arv7510pw22|\ +arcadyan,arv7519rw22|\ +arcadyan,arv752dpw|\ +arcadyan,arv752dpw22|\ +alphanetworks,asl56026|\ +bt,homehub-v2b|\ +bt,homehub-v3a|\ +bt,homehub-v5a|\ +avm,fritz7360sl|\ +arcadyan,vg3503j) do_internet_led_rename ;; -DGN3500*) +netgear,dgn3500|\ +netgear,dgn3500b) migrate_leds "dgn3500:blue:wireless=dgn3500:green:wireless" ;; *) diff --git a/target/linux/lantiq/base-files/lib/preinit/01_preinit_board.sh b/target/linux/lantiq/base-files/lib/preinit/01_preinit_board.sh index aef946036e..bbbac97bae 100755 --- a/target/linux/lantiq/base-files/lib/preinit/01_preinit_board.sh +++ b/target/linux/lantiq/base-files/lib/preinit/01_preinit_board.sh @@ -1,7 +1,7 @@ #!/bin/sh lantiq_board_detect() { - name=`grep "^machine" /proc/cpuinfo | sed "s/machine.*: \(.*\)/\1/g" | sed "s/\(.*\) - .*/\1/g"` + name="$(strings /proc/device-tree/compatible | head -1)" model=`grep "^machine" /proc/cpuinfo | sed "s/machine.*: \(.*\)/\1/g" | sed "s/.* - \(.*\)/\1/g"` [ -z "$name" ] && name="unknown" [ -z "$model" ] && model="unknown" diff --git a/target/linux/lantiq/base-files/lib/upgrade/platform.sh b/target/linux/lantiq/base-files/lib/upgrade/platform.sh index 9158fa742f..77b3868dc0 100755 --- a/target/linux/lantiq/base-files/lib/upgrade/platform.sh +++ b/target/linux/lantiq/base-files/lib/upgrade/platform.sh @@ -9,7 +9,7 @@ platform_pre_upgrade() { local board=$(board_name) case "$board" in - BTHOMEHUBV2B|BTHOMEHUBV3A|BTHOMEHUBV5A|P2812HNUF* ) + bt,homehub-v2b|bt,homehub-v3a|bt,homehub-v5a|zyxel,p-2812hnu-f1|zyxel,p-2812hnu-f3) nand_do_upgrade $1 ;; esac diff --git a/target/linux/lantiq/image/Makefile b/target/linux/lantiq/image/Makefile index 596c46110f..71fb6e2315 100644 --- a/target/linux/lantiq/image/Makefile +++ b/target/linux/lantiq/image/Makefile @@ -116,6 +116,7 @@ define Device/ALL0333CJ DEVICE_PACKAGES := kmod-ltq-adsl-ase kmod-ltq-adsl-ase-mei \ kmod-ltq-adsl-ase-fw-b kmod-ltq-atm-ase \ ltq-adsl-app ppp-mod-pppoe + SUPPORTED_DEVICES := allnet,all0333cj endef TARGET_DEVICES += ALL0333CJ @@ -126,6 +127,7 @@ define Device/DGN1000B DEVICE_PACKAGES := kmod-ltq-adsl-ase kmod-ltq-adsl-ase-mei \ kmod-ltq-adsl-ase-fw-b kmod-ltq-atm-ase \ ltq-adsl-app ppp-mod-pppoe + SUPPORTED_DEVICES += netgear,dgn1000b endef TARGET_DEVICES += DGN1000B @@ -141,6 +143,7 @@ define Device/ARV4520PW kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \ ltq-adsl-app ppp-mod-pppoa \ kmod-rt61-pci wpad-mini + SUPPORTED_DEVICES += arcadyan,arv4520pw endef TARGET_DEVICES += ARV4520PW @@ -151,6 +154,7 @@ define Device/ARV4525PW kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \ ltq-adsl-app ppp-mod-pppoa -swconfig + SUPPORTED_DEVICES += arcadyan,arv4525pw endef TARGET_DEVICES += ARV4525PW @@ -162,6 +166,7 @@ define Device/ARV452CQW kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \ ltq-adsl-app ppp-mod-pppoa + SUPPORTED_DEVICES += arcadyan,arv452cqw endef TARGET_DEVICES += ARV452CQW @@ -173,6 +178,7 @@ define Device/ARV4518PWR01 kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \ ltq-adsl-app ppp-mod-pppoa \ kmod-ath5k wpad-mini + SUPPORTED_DEVICES += arcadyan,arv4518pwr01 endef TARGET_DEVICES += ARV4518PWR01 @@ -184,6 +190,7 @@ define Device/ARV4518PWR01A kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \ ltq-adsl-app ppp-mod-pppoa \ kmod-ath5k wpad-mini + SUPPORTED_DEVICES += arcadyan,arv4518pwr01a endef TARGET_DEVICES += ARV4518PWR01A @@ -202,12 +209,14 @@ define Device/BTHOMEHUBV2B kmod-ltq-deu-danube \ ltq-adsl-app ppp-mod-pppoa \ kmod-ath9k kmod-owl-loader wpad-mini + SUPPORTED_DEVICES += bt,homehub-v2b endef TARGET_DEVICES += BTHOMEHUBV2B define Device/EASY50712 IMAGE_SIZE := 3776k DEVICE_TITLE := Lantiq Danube - EASY50712 + SUPPORTED_DEVICES := lantiq,easy50712 endef TARGET_DEVICES += EASY50712 @@ -221,6 +230,7 @@ define Device/ACMP252 kmod-rt2800-pci \ ltq-adsl-app ppp-mod-pppoa \ wpad-mini + SUPPORTED_DEVICES += audiocodes,mp-252 endef TARGET_DEVICES += ACMP252 @@ -233,6 +243,7 @@ define Device/ARV4510PW ltq-adsl-app ppp-mod-pppoa \ kmod-ltq-tapi kmod-ltq-vmmc \ kmod-rt2800-pci kmod-ath5k wpad-mini + SUPPORTED_DEVICES += arcadyan,arv4510pw endef TARGET_DEVICES += ARV4510PW @@ -243,6 +254,7 @@ define Device/ARV7525PW kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \ ltq-adsl-app ppp-mod-pppoa -swconfig + SUPPORTED_DEVICES += arcadyan,arv7525pw endef TARGET_DEVICES += ARV7525PW @@ -253,6 +265,7 @@ define Device/ARV4519PW kmod-ltq-adsl-danube-mei kmod-ltq-adsl-danube \ kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \ ltq-adsl-app ppp-mod-pppoa + SUPPORTED_DEVICES += arcadyan,arv4519pw endef TARGET_DEVICES += ARV4519PW @@ -263,6 +276,7 @@ define Device/ARV7506PW11 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \ ltq-adsl-app ppp-mod-pppoa \ kmod-rt2800-pci wpad-mini + SUPPORTED_DEVICES += arcadyan,arv7506pw11 endef TARGET_DEVICES += ARV7506PW11 @@ -276,6 +290,7 @@ define Device/ARV7510PW22 kmod-ltq-tapi kmod-ltq-vmmc \ kmod-rt2800-pci wpad-mini \ kmod-usb-uhci kmod-usb2 kmod-usb2-pci + SUPPORTED_DEVICES += arcadyan,arv7510pw22 endef TARGET_DEVICES += ARV7510PW22 @@ -287,6 +302,7 @@ define Device/ARV7518PW kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \ ltq-adsl-app ppp-mod-pppoa \ kmod-ath9k kmod-owl-loader wpad-mini + SUPPORTED_DEVICES += arcadyan,arv7518pw endef TARGET_DEVICES += ARV7518PW @@ -298,6 +314,7 @@ define Device/ARV7519PW kmod-ltq-adsl-danube-fw-a kmod-ltq-atm-danube \ ltq-adsl-app ppp-mod-pppoa \ kmod-rt2800-pci wpad-mini + SUPPORTED_DEVICES += arcadyan,arv7519pw endef TARGET_DEVICES += ARV7519PW @@ -310,6 +327,7 @@ define Device/ARV752DPW ltq-adsl-app ppp-mod-pppoa \ kmod-ltq-tapi kmod-ltq-vmmc \ kmod-rt2800-pci wpad-mini + SUPPORTED_DEVICES += arcadyan,arv752dpw endef TARGET_DEVICES += ARV752DPW @@ -322,6 +340,7 @@ define Device/ARV752DPW22 ltq-adsl-app ppp-mod-pppoa \ kmod-ltq-tapi kmod-ltq-vmmc \ kmod-rt2800-pci wpad-mini + SUPPORTED_DEVICES += arcadyan,arv752dpw22 endef TARGET_DEVICES += ARV752DPW22 @@ -333,6 +352,7 @@ define Device/ARV8539PW22 kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \ ltq-adsl-app ppp-mod-pppoa \ kmod-ath9k kmod-owl-loader wpad-mini + SUPPORTED_DEVICES += arcadyan,arv8539pw22 endef TARGET_DEVICES += ARV8539PW22 @@ -344,6 +364,7 @@ define Device/GIGASX76X kmod-ltq-adsl-danube-fw-b kmod-ltq-atm-danube \ ltq-adsl-app ppp-mod-pppoe \ kmod-ath5k wpad-mini + SUPPORTED_DEVICES += siemens,gigaset-sx76x endef TARGET_DEVICES += GIGASX76X @@ -360,6 +381,7 @@ define Device/BTHOMEHUBV3A ltq-adsl-app ppp-mod-pppoa \ kmod-ath9k kmod-owl-loader wpad-mini \ uboot-envtools + SUPPORTED_DEVICES += bt,homehub-v3a endef TARGET_DEVICES += BTHOMEHUBV3A @@ -391,6 +413,7 @@ define Device/DGN3500 kmod-ltq-adsl-ar9-fw-a kmod-ltq-atm-ar9 \ ltq-adsl-app ppp-mod-pppoa \ kmod-ltq-deu-ar9 + SUPPORTED_DEVICES += netgear,dgn3500 endef TARGET_DEVICES += DGN3500 @@ -411,6 +434,7 @@ define Device/DGN3500B kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \ ltq-adsl-app ppp-mod-pppoa \ kmod-ltq-deu-ar9 + SUPPORTED_DEVICES += netgear,dgn3500b endef TARGET_DEVICES += DGN3500B @@ -423,6 +447,7 @@ define Device/WBMRA kmod-ltq-adsl-ar9-fw-a kmod-ltq-atm-ar9 \ ltq-adsl-app ppp-mod-pppoa \ kmod-ath9k kmod-owl-loader wpad-mini + SUPPORTED_DEVICES += buffalo,wbmr-hp-g300h endef TARGET_DEVICES += WBMRA @@ -435,6 +460,7 @@ define Device/WBMRB kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \ ltq-adsl-app ppp-mod-pppoa \ kmod-ath9k kmod-owl-loader wpad-mini + SUPPORTED_DEVICES += buffalo,wbmr-hp-g300h endef TARGET_DEVICES += WBMRB @@ -447,6 +473,7 @@ define Device/FRITZ7320 kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \ ltq-adsl-app ppp-mod-pppoa \ kmod-ltq-deu-ar9 kmod-usb-dwc2 -swconfig + SUPPORTED_DEVICES += avm,fritz7320 endef TARGET_DEVICES += FRITZ7320 @@ -459,6 +486,7 @@ define Device/H201L ltq-adsl-app ppp-mod-pppoe \ kmod-ltq-deu-ar9 kmod-usb-dwc2 kmod-usb-ledtrig-usbport \ kmod-ltq-tapi kmod-ltq-vmmc + SUPPORTED_DEVICES += zte,h201l endef TARGET_DEVICES += H201L @@ -470,6 +498,7 @@ define Device/P2601HNFX kmod-ltq-adsl-ar9-fw-b kmod-ltq-atm-ar9 \ ltq-adsl-app ppp-mod-pppoe \ kmod-ltq-deu-ar9 kmod-usb-dwc2 + SUPPORTED_DEVICES += zyxel,p-2601hn endef TARGET_DEVICES += P2601HNFX @@ -485,6 +514,7 @@ define Device/P2812HNUF1 $(Device/NAND) DEVICE_TITLE := ZyXEL P-2812HNU-F1 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2 kmod-usb-ledtrig-usbport + SUPPORTED_DEVICES += zyxel,p-2812hnu-f1 endef TARGET_DEVICES += P2812HNUF1 @@ -492,6 +522,7 @@ define Device/P2812HNUF3 $(Device/NAND) DEVICE_TITLE := ZyXEL P-2812HNU-F3 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2 + SUPPORTED_DEVICES += zyxel,p-2812hnu-f3 endef TARGET_DEVICES += P2812HNUF3 @@ -499,12 +530,14 @@ define Device/ARV7519RW22 IMAGE_SIZE := 31232k DEVICE_TITLE := Livebox Astoria ARV7519RW22 DEVICE_PACKAGES := kmod-usb-dwc2 + SUPPORTED_DEVICES += arcadyan,arv7519rw22 endef TARGET_DEVICES += ARV7519RW22 define Device/ASL56026 IMAGE_SIZE := 7488k DEVICE_TITLE := BT OpenReach - ECI VDSL Modem V-2FUb/I + SUPPORTED_DEVICES := alphanetworks,asl56026 endef TARGET_DEVICES += ASL56026 @@ -513,6 +546,7 @@ define Device/BTHOMEHUBV5A DEVICE_TITLE := BT Home Hub 5A DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader \ kmod-ath10k ath10k-firmware-qca988x wpad-mini kmod-usb-dwc2 + SUPPORTED_DEVICES += bt,homehub-v5a endef TARGET_DEVICES += BTHOMEHUBV5A @@ -523,6 +557,7 @@ define Device/DM200 DEVICE_TITLE := Netgear DM200 NETGEAR_BOARD_ID := DM200 NETGEAR_HW_ID := 29765233+8+0+64+0+0 + SUPPORTED_DEVICES := netgear,dm200 endef DEVICE_VARS += NETGEAR_BOARD_ID NETGEAR_HW_ID TARGET_DEVICES += DM200 @@ -532,6 +567,7 @@ define Device/EASY80920NAND IMAGE_SIZE := 64512k DEVICE_TITLE := Lantiq VR9 - EASY80920NAND DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-mini kmod-usb-dwc2 kmod-usb-ledtrig-usbport + SUPPORTED_DEVICES := lantiq,easy80920-nand endef TARGET_DEVICES += EASY80920NAND @@ -539,6 +575,7 @@ define Device/EASY80920NOR IMAGE_SIZE := 7936k DEVICE_TITLE := Lantiq VR9 - EASY80920NOR DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-mini kmod-usb-dwc2 kmod-usb-ledtrig-usbport + SUPPORTED_DEVICES := lantiq,easy80920-nor endef TARGET_DEVICES += EASY80920NOR @@ -547,6 +584,7 @@ define Device/FRITZ3370 $(Device/NAND) DEVICE_TITLE := Fritz!Box WLan - FRITZ3370 DEVICE_PACKAGES := kmod-ath9k wpad-mini kmod-usb-dwc2 + SUPPORTED_DEVICES += avm,fritz3370 endef TARGET_DEVICES += FRITZ3370 @@ -555,12 +593,14 @@ define Device/FRITZ7360SL IMAGE_SIZE := 15744k DEVICE_TITLE := 1&1 HomeServer - FRITZ7360SL DEVICE_PACKAGES := kmod-ath9k kmod-owl-loader wpad-mini kmod-usb-dwc2 + SUPPORTED_DEVICES += avm,fritz7360sl endef TARGET_DEVICES += FRITZ7360SL define Device/VG3503J IMAGE_SIZE := 8000k DEVICE_TITLE := BT OpenReach - ECI VDSL Modem V-2FUb/R + SUPPORTED_DEVICES += arcadyan,vg3503j endef TARGET_DEVICES += VG3503J @@ -570,6 +610,7 @@ define Device/WBMR300 IMAGE_SIZE := 15616k DEVICE_TITLE := Buffalo WBMR-300HPD DEVICE_PACKAGES := kmod-mt7603 wpad-mini kmod-usb-dwc2 + SUPPORTED_DEVICES += buffalo,wbmr-300hpd endef TARGET_DEVICES += WBMR300 @@ -577,6 +618,7 @@ define Device/VGV7510KW22NOR IMAGE_SIZE := 15232k DEVICE_TITLE := o2 Box 6431 / Arcadyan VGV7510KW22 (NOR) DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2 kmod-ltq-tapi kmod-ltq-vmmc + SUPPORTED_DEVICES += arcadyan,vgv7510kw22-nor endef TARGET_DEVICES += VGV7510KW22NOR @@ -588,6 +630,7 @@ define Device/VGV7510KW22BRN CRC32_POLY := 0x04c11db7 DEVICE_TITLE := o2 Box 6431 / Arcadyan VGV7510KW22 (BRN) DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2 kmod-ltq-tapi kmod-ltq-vmmc + SUPPORTED_DEVICES += arcadyan,vgv7510kw22-brn endef TARGET_DEVICES += VGV7510KW22BRN @@ -595,6 +638,7 @@ define Device/VGV7519NOR IMAGE_SIZE := 15360k DEVICE_TITLE := Experiabox 8 VGV7519 DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2 kmod-ltq-tapi kmod-ltq-vmmc + SUPPORTED_DEVICES += arcadyan,vgv7519-nor endef TARGET_DEVICES += VGV7519NOR @@ -606,6 +650,7 @@ define Device/VGV7519BRN CRC32_POLY := 0x2083b8ed DEVICE_TITLE := Experiabox 8 VGV7519 (BRN) DEVICE_PACKAGES := kmod-rt2800-pci wpad-mini kmod-usb-dwc2 kmod-ltq-tapi kmod-ltq-vmmc + SUPPORTED_DEVICES += arcadyan,vgv7519-brn endef TARGET_DEVICES += VGV7519BRN @@ -618,6 +663,7 @@ define Device/EASY98000NOR IMAGE_SIZE := 3904k DEVICE_TITLE := EASY98000 - Lantiq Falcon Eval Board NOR DEVICE_PACKAGES := kmod-dm9000 kmod-i2c-lantiq kmod-eeprom-at24 + SUPPORTED_DEVICES := lantiq,easy98000-nor endef TARGET_DEVICES += EASY98000NOR @@ -625,6 +671,7 @@ define Device/EASY98000NAND IMAGE_SIZE := 3904k DEVICE_TITLE := EASY98000 - Lantiq Falcon Eval Board NAND DEVICE_PACKAGES := kmod-dm9000 kmod-i2c-lantiq kmod-eeprom-at24 + SUPPORTED_DEVICES := lantiq,easy98000-nand endef TARGET_DEVICES += EASY98000NAND @@ -632,60 +679,70 @@ define Device/EASY98000SFLASH IMAGE_SIZE := 7424k DEVICE_TITLE := EASY98000 - Lantiq Falcon Eval Board SFLASH DEVICE_PACKAGES := kmod-dm9000 kmod-i2c-lantiq kmod-eeprom-at24 + SUPPORTED_DEVICES := lantiq,easy98000-sflash endef TARGET_DEVICES += EASY98000SFLASH define Device/FALCON-MDU IMAGE_SIZE := 7424k DEVICE_TITLE := MDU - Lantiq Falcon / VINAXdp MDU Board + SUPPORTED_DEVICES := lantiq,falcon-mdu endef TARGET_DEVICES += FALCON-MDU define Device/EASY88388 IMAGE_SIZE := 7424k DEVICE_TITLE := EASY88388 - Lantiq Falcon FTTDP8 Reference Board + SUPPORTED_DEVICES := lantiq,easy88388 endef TARGET_DEVICES += EASY88388 define Device/EASY88444 IMAGE_SIZE := 7424k DEVICE_TITLE := EASY88444 - Lantiq Falcon FTTdp G.FAST Reference Board + SUPPORTED_DEVICES := lantiq,easy88444 endef TARGET_DEVICES += EASY88444 define Device/FALCON-SFP IMAGE_SIZE := 7424k DEVICE_TITLE := SFP - Lantiq Falcon SFP Stick + SUPPORTED_DEVICES := lantiq,falcon-sfp endef TARGET_DEVICES += FALCON-SFP define Device/EASY98035SYNCE IMAGE_SIZE := 7424k DEVICE_TITLE := EASY98035SYNCE - Lantiq Falcon SFP Stick with Synchronous Ethernet + SUPPORTED_DEVICES := lantiq,easy98035synce endef TARGET_DEVICES += EASY98035SYNCE define Device/EASY98035SYNCE1588 IMAGE_SIZE := 7424k DEVICE_TITLE := EASY98035SYNCE1588 - Lantiq Falcon SFP Stick with SyncE and IEEE1588 + SUPPORTED_DEVICES := lantiq,easy98035synce1588 endef TARGET_DEVICES += EASY98035SYNCE1588 define Device/EASY98020 IMAGE_SIZE := 7424k DEVICE_TITLE := EASY98020 - Lantiq Falcon SFU Reference Board + SUPPORTED_DEVICES := lantiq,easy98020 endef TARGET_DEVICES += EASY98020 define Device/EASY98020V18 IMAGE_SIZE := 7424k DEVICE_TITLE := EASY98020V18 - Lantiq Falcon SFU Reference Board V1.8 + SUPPORTED_DEVICES := lantiq,easy98020-v18 endef TARGET_DEVICES += EASY98020V18 define Device/EASY98021 IMAGE_SIZE := 7424k DEVICE_TITLE := EASY98021 - Lantiq Falcon HGU Reference Board + SUPPORTED_DEVICES := lantiq,easy98021 endef TARGET_DEVICES += EASY98021 diff --git a/target/linux/lantiq/image/tp-link.mk b/target/linux/lantiq/image/tp-link.mk index f674ba298f..dc88605616 100644 --- a/target/linux/lantiq/image/tp-link.mk +++ b/target/linux/lantiq/image/tp-link.mk @@ -20,6 +20,7 @@ define Device/TDW8970 IMAGE_SIZE := 7680k DEVICE_TITLE := TP-LINK TD-W8970 DEVICE_PACKAGES:= kmod-ath9k wpad-mini kmod-usb-dwc2 kmod-usb-ledtrig-usbport + SUPPORTED_DEVICES += tplink,tdw8970 endef TARGET_DEVICES += TDW8970 @@ -32,6 +33,7 @@ define Device/TDW8980 IMAGE_SIZE := 7680k DEVICE_TITLE := TP-LINK TD-W8980 DEVICE_PACKAGES:= kmod-ath9k kmod-owl-loader wpad-mini kmod-usb-dwc2 kmod-usb-ledtrig-usbport + SUPPORTED_DEVICES += tplink,tdw8980 endef TARGET_DEVICES += TDW8980 @@ -45,6 +47,7 @@ define Device/VR200v IMAGE_SIZE := 15808k DEVICE_TITLE := TP-LINK Archer VR200v DEVICE_PACKAGES:= kmod-usb-dwc2 kmod-usb-ledtrig-usbport + SUPPORTED_DEVICES += tplink,vr200v endef TARGET_DEVICES += VR200v