aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-01-17 07:07:15 +0000
committerJohn Crispin <john@openwrt.org>2015-01-17 07:07:15 +0000
commit7f77870c19218b65d4262e329b1736ababb9e384 (patch)
tree44e057c607c69727ef82e87d4f3b440ca15ba20f /target/linux/lantiq/base-files
parentb4d2b69c43b032f8b8ef07fc1d9dcbb80d23556d (diff)
downloadupstream-7f77870c19218b65d4262e329b1736ababb9e384.tar.gz
upstream-7f77870c19218b65d4262e329b1736ababb9e384.tar.bz2
upstream-7f77870c19218b65d4262e329b1736ababb9e384.zip
Add profile and userspace for P2812HNUF1/3, switch from UBI_GLUEBI to UBI_BLOCK
Add profile and userspace for P2812HNUF1/3, switch from UBI_GLUEBI to UBI_BLOCK Signed-off-by: Sylwester Petela <sscapi@gmail.com> SVN-Revision: 43987
Diffstat (limited to 'target/linux/lantiq/base-files')
-rw-r--r--target/linux/lantiq/base-files/etc/uci-defaults/01_leds7
-rw-r--r--target/linux/lantiq/base-files/etc/uci-defaults/02_network4
-rwxr-xr-xtarget/linux/lantiq/base-files/lib/upgrade/platform.sh2
3 files changed, 11 insertions, 2 deletions
diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/01_leds b/target/linux/lantiq/base-files/etc/uci-defaults/01_leds
index 10ba2a13b7..3502eb2b27 100644
--- a/target/linux/lantiq/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/lantiq/base-files/etc/uci-defaults/01_leds
@@ -37,6 +37,13 @@ VGV7519)
ucidef_set_led_netdev "internet_yellow" "internet_yellow" "internet_yellow" "nas0"
ucidef_set_led_netdev "broadband_yellow" "broadband_yellow" "broadband_yellow" "pppoe-wan"
;;
+P2812HNUF*)
+ ucidef_set_led_default "power" "power" "power" "0"
+ ucidef_set_led_default "power2" "power2" "power2" "1"
+ ucidef_set_led_wlan "wireless_green" "wireless_green" "wireless_green" "phy0radio"
+ ucidef_set_led_netdev "dsl" "dsl" "dsl" "nas0"
+ ucidef_set_led_netdev "internet_green" "internet_green" "internet_green" "pppoe-wan"
+ ;;
*)
;;
esac
diff --git a/target/linux/lantiq/base-files/etc/uci-defaults/02_network b/target/linux/lantiq/base-files/etc/uci-defaults/02_network
index 1df83a6a9d..f9cac7c440 100644
--- a/target/linux/lantiq/base-files/etc/uci-defaults/02_network
+++ b/target/linux/lantiq/base-files/etc/uci-defaults/02_network
@@ -145,7 +145,9 @@ P2601HNFX)
ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 5t"
;;
-P2812HNUFX)
+P2812HNUF*)
+ lan_mac=$(mtd_get_mac_ascii uboot-env ethaddr)
+ wan_mac=$(macaddr_add "$lan_mac" 1)
ucidef_set_interface_lan 'eth0.1'
ucidef_add_switch "switch0" "1" "1"
ucidef_add_switch_vlan "switch0" "1" "0 1 2 4 5 6t"
diff --git a/target/linux/lantiq/base-files/lib/upgrade/platform.sh b/target/linux/lantiq/base-files/lib/upgrade/platform.sh
index 84f15c41ae..1688d3af2e 100755
--- a/target/linux/lantiq/base-files/lib/upgrade/platform.sh
+++ b/target/linux/lantiq/base-files/lib/upgrade/platform.sh
@@ -7,7 +7,7 @@ platform_check_image() {
local board=$(lantiq_board_name)
case "$board" in
- BTHOMEHUBV2B|BTHOMEHUBV3A )
+ BTHOMEHUBV2B|BTHOMEHUBV3A|P2812HNUF* )
nand_do_platform_check $board $1
return $?;
;;