aboutsummaryrefslogtreecommitdiff
path: root/target/linux/lantiq/xrx200/base-files/etc
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/lantiq/xrx200/base-files/etc')
-rw-r--r--target/linux/lantiq/xrx200/base-files/etc/board.d/01_leds3
-rw-r--r--target/linux/lantiq/xrx200/base-files/etc/board.d/02_network37
-rw-r--r--target/linux/lantiq/xrx200/base-files/etc/board.d/05_compat-version4
-rw-r--r--target/linux/lantiq/xrx200/base-files/etc/hotplug.d/firmware/11-ath10k-caldata20
-rw-r--r--target/linux/lantiq/xrx200/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom16
-rw-r--r--target/linux/lantiq/xrx200/base-files/etc/uci-defaults/01_led_migration34
6 files changed, 14 insertions, 100 deletions
diff --git a/target/linux/lantiq/xrx200/base-files/etc/board.d/01_leds b/target/linux/lantiq/xrx200/base-files/etc/board.d/01_leds
index dfc647a43e..815f312dac 100644
--- a/target/linux/lantiq/xrx200/base-files/etc/board.d/01_leds
+++ b/target/linux/lantiq/xrx200/base-files/etc/board.d/01_leds
@@ -64,9 +64,6 @@ buffalo,wbmr-300hpd)
ucidef_set_led_switch "lan3" "LAN3" "green:lan3" "switch0" "0x20"
ucidef_set_led_default "router" "router" "green:router" "1"
;;
-netgear,dm200)
- ucidef_set_led_netdev "lan" "lan" "green:lan" "eth0"
- ;;
esac
board_config_flush
diff --git a/target/linux/lantiq/xrx200/base-files/etc/board.d/02_network b/target/linux/lantiq/xrx200/base-files/etc/board.d/02_network
index 2208752c14..ca40c9cbd6 100644
--- a/target/linux/lantiq/xrx200/base-files/etc/board.d/02_network
+++ b/target/linux/lantiq/xrx200/base-files/etc/board.d/02_network
@@ -11,22 +11,16 @@ lantiq_setup_interfaces()
local board="$1"
case "$board" in
- alphanetworks,asl56026|\
- arcadyan,vg3503j)
- ucidef_set_interface_lan "lan1 lan2"
- ;;
arcadyan,arv7519rw22)
ucidef_set_interface_lan "lan1 lan2 lan3 lan4 lan5"
;;
- avm,fritz5490|\
- avm,fritz5490-micron)
- ucidef_set_interfaces_lan_wan "lan1 lan2" "wan"
- ;;
arcadyan,vgv7510kw22-brn|\
arcadyan,vgv7510kw22-nor|\
arcadyan,vgv7519-brn|\
arcadyan,vgv7519-nor|\
arcadyan,vrv9510kwac23|\
+ avm,fritz5490|\
+ avm,fritz5490-micron|\
bt,homehub-v5a|\
lantiq,easy80920-nand|\
lantiq,easy80920-nor|\
@@ -46,14 +40,11 @@ lantiq_setup_interfaces()
avm,fritz7490|\
avm,fritz7490-micron|\
buffalo,wbmr-300hpd|\
- tplink,tdw8970|\
- tplink,tdw8980|\
tplink,vr200|\
tplink,vr200v)
ucidef_set_interface_lan "lan1 lan2 lan3 lan4"
;;
- avm,fritz7412|\
- netgear,dm200)
+ avm,fritz7412)
ucidef_set_interface_lan "lan"
;;
*)
@@ -95,14 +86,9 @@ lantiq_setup_macs()
local wan_mac=""
case "$board" in
- alphanetworks,asl56026)
- lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
- wan_mac=$(mtd_get_mac_ascii u-boot-env wanmac)
- ;;
arcadyan,arv7519rw22)
wan_mac=$(macaddr_add "$(mtd_get_mac_binary boardconfig 0x16)" 1)
;;
- arcadyan,vg3503j|\
lantiq,easy80920-nand|\
lantiq,easy80920-nor|\
zyxel,p-2812hnu-f1|\
@@ -110,10 +96,6 @@ lantiq_setup_macs()
lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
wan_mac=$(macaddr_add "$lan_mac" 1)
;;
- arcadyan,vgv7510kw22-brn|\
- arcadyan,vgv7510kw22-nor)
- wan_mac=$(macaddr_add "$(mtd_get_mac_binary board_config 0x16)" 2)
- ;;
arcadyan,vgv7519-brn|\
arcadyan,vgv7519-nor|\
arcadyan,vrv9510kwac23)
@@ -143,23 +125,15 @@ lantiq_setup_macs()
tffsdev=$(find_mtd_chardev "nand-tffs")
lan_mac=$(/usr/bin/fritz_tffs_nand -d $tffsdev -n maca -o)
wan_mac=$(/usr/bin/fritz_tffs_nand -d $tffsdev -n macdsl -o)
+ label_mac=$lan_mac
;;
bt,homehub-v5a)
- lan_mac=$(mtd_get_mac_binary_ubi caldata 0x110c)
- wan_mac=$(macaddr_add "$lan_mac" 1)
+ wan_mac=$(macaddr_add "$(mtd_get_mac_binary_ubi caldata 0x110c)" 5)
;;
buffalo,wbmr-300hpd)
lan_mac=$(mtd_get_mac_ascii u-boot-env ethaddr)
wan_mac="$lan_mac"
;;
- netgear,dm200)
- lan_mac=$(mtd_get_mac_binary ART 0x0)
- wan_mac=$(macaddr_add "$lan_mac" 1)
- ;;
- tplink,tdw8970|\
- tplink,tdw8980)
- wan_mac=$(macaddr_add "$(mtd_get_mac_binary boardconfig 0xf100)" 1)
- ;;
tplink,vr200|\
tplink,vr200v)
wan_mac=$(macaddr_add "$(mtd_get_mac_binary romfile 0xf100)" 1)
@@ -168,6 +142,7 @@ lantiq_setup_macs()
[ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" "$lan_mac"
[ -n "$wan_mac" ] && ucidef_set_interface_macaddr "wan" "$wan_mac"
+ [ -n "$label_mac" ] && ucidef_set_label_macaddr "$label_mac"
}
board_config_update
diff --git a/target/linux/lantiq/xrx200/base-files/etc/board.d/05_compat-version b/target/linux/lantiq/xrx200/base-files/etc/board.d/05_compat-version
index 45bef9385b..5690d84874 100644
--- a/target/linux/lantiq/xrx200/base-files/etc/board.d/05_compat-version
+++ b/target/linux/lantiq/xrx200/base-files/etc/board.d/05_compat-version
@@ -8,6 +8,10 @@
board_config_update
case "$(board_name)" in
+ zyxel,p-2812hnu-f1)
+ ucidef_set_compat_version "2.0"
+ ;;
+
*)
ucidef_set_compat_version "1.1"
;;
diff --git a/target/linux/lantiq/xrx200/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/lantiq/xrx200/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
deleted file mode 100644
index c555aa2c12..0000000000
--- a/target/linux/lantiq/xrx200/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/sh
-
-[ -e /lib/firmware/$FIRMWARE ] && exit 0
-
-. /lib/functions/caldata.sh
-
-case "$FIRMWARE" in
-"ath10k/cal-pci-0000:02:00.0.bin")
- board=$(board_name)
- case $board in
- bt,homehub-v5a)
- caldata_extract_ubi "caldata" 0x5000 0x844
- ath10k_patch_mac $(macaddr_add $(mtd_get_mac_binary_ubi caldata 0x110c) 3)
- ;;
- *)
- caldata_die "board $board is not supported yet"
- ;;
- esac
- ;;
-esac
diff --git a/target/linux/lantiq/xrx200/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom b/target/linux/lantiq/xrx200/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom
index eefc39b30b..a3968b2303 100644
--- a/target/linux/lantiq/xrx200/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom
+++ b/target/linux/lantiq/xrx200/base-files/etc/hotplug.d/firmware/12-ath9k-eeprom
@@ -19,21 +19,13 @@ case "$FIRMWARE" in
avm,fritz3390)
caldata_extract_reverse "urlader" 0x2546 0x440
;;
- avm,fritz7360sl)
- caldata_extract "urlader" 0x985 0x1000
- ;;
- avm,fritz7412|\
- avm,fritz7430)
+ avm,fritz7412)
/usr/bin/fritz_cal_extract -i 1 -s 0x1e000 -e 0x207 -l 5120 -o /lib/firmware/$FIRMWARE $(find_mtd_chardev "urlader") || \
/usr/bin/fritz_cal_extract -i 1 -s 0x1e800 -e 0x207 -l 5120 -o /lib/firmware/$FIRMWARE $(find_mtd_chardev "urlader")
;;
- bt,homehub-v5a)
- caldata_extract_ubi "caldata" 0x1000 0x1000
- ath9k_patch_mac_crc $(macaddr_add $(mtd_get_mac_binary_ubi caldata 0x110c) 2) 0x10c
- ;;
- tplink,tdw8970|\
- tplink,tdw8980)
- caldata_extract "boardconfig" 0x21000 0x1000
+ avm,fritz7430)
+ /usr/bin/fritz_cal_extract -r -i 4 -s 0x1e000 -e 0x207 -l 5120 -o /lib/firmware/$FIRMWARE $(find_mtd_chardev "urlader") || \
+ /usr/bin/fritz_cal_extract -r -i 4 -s 0x1e800 -e 0x207 -l 5120 -o /lib/firmware/$FIRMWARE $(find_mtd_chardev "urlader")
;;
*)
caldata_die "board $board is not supported yet"
diff --git a/target/linux/lantiq/xrx200/base-files/etc/uci-defaults/01_led_migration b/target/linux/lantiq/xrx200/base-files/etc/uci-defaults/01_led_migration
deleted file mode 100644
index 94f9df78bd..0000000000
--- a/target/linux/lantiq/xrx200/base-files/etc/uci-defaults/01_led_migration
+++ /dev/null
@@ -1,34 +0,0 @@
-#
-# Copyright (C) 2013 OpenWrt.org
-#
-
-. /lib/functions/migrations.sh
-
-do_internet_led_rename()
-{
- config_load system
-
- [ -n $(config_get led_internet name) ] || return
- [ -z $(config_get led_dsl name) ] || return
-
- uci rename system.led_internet=led_dsl
- uci set system.led_dsl.name=dsl
-
- logger -t led-migration "internet led renamed to dsl"
-}
-
-case "$(board_name)" in
-alphanetworks,asl56026|\
-arcadyan,arv7519rw22|\
-arcadyan,vg3503j|\
-avm,fritz7360sl|\
-bt,homehub-v5a)
- do_internet_led_rename
- ;;
-esac
-
-remove_devicename_leds
-
-migrations_apply system
-
-exit 0