Add profile and userspace for P2812HNUF1/3, switch from UBI_GLUEBI to UBI_BLOCK
authorJohn Crispin <john@openwrt.org>
Sat, 17 Jan 2015 07:07:15 +0000 (07:07 +0000)
committerJohn Crispin <john@openwrt.org>
Sat, 17 Jan 2015 07:07:15 +0000 (07:07 +0000)
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

target/linux/lantiq/base-files/etc/uci-defaults/01_leds
target/linux/lantiq/base-files/etc/uci-defaults/02_network
target/linux/lantiq/base-files/lib/upgrade/platform.sh
target/linux/lantiq/image/Makefile
target/linux/lantiq/xrx200/config-default
target/linux/lantiq/xrx200/profiles/zyxel.mk

index 10ba2a13b7b1e47432b4b13f6ce5cf2c6574ca54..3502eb2b27a5a8f1f94a41e0f00b72d92c31bc8d 100644 (file)
@@ -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
index 1df83a6a9d8d425dae959518c4a99bc6885763e4..f9cac7c4403230d085180542665d729c5ec60051 100644 (file)
@@ -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"
index 84f15c41aeb3fbbc61402675e58bafda0dcee381..1688d3af2efd83d7bb5774bc8a69936fbb66b648 100755 (executable)
@@ -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 $?;
                        ;;
index 623f93bd0b5ad061ead75686dc82b1ba4bdce28d..82f0e6f3272c50a56afcd96a8a6eb549785a9455 100644 (file)
@@ -400,9 +400,11 @@ endif
 ifeq ($(CONFIG_TARGET_lantiq_xrx200),y)
 
 # VR9
-Image/BuildKernel/Profile/P2812HNUFX=$(call Image/BuildKernel/Template,P2812HNUFX)
-Image/InstallKernel/Template/P2812HNUFX=$(call Image/InstallKernel/Template,P2812HNUFX)
-Image/Build/Profile/P2812HNUFX=$(call Image/Build/$(1),$(1),P2812HNUFX)
+Image/BuildKernel/Profile/P2812HNUF1=$(call Image/BuildKernel/Template,P2812HNUF1)
+Image/Build/Profile/P2812HNUF1=$(call Image/BuildNAND/$(1),$(1),P2812HNUF1)
+
+Image/BuildKernel/Profile/P2812HNUF3=$(call Image/BuildKernel/Template,P2812HNUF3)
+Image/Build/Profile/P2812HNUF3=$(call Image/BuildNAND/$(1),$(1),P2812HNUF3)
 
 Image/BuildKernel/Profile/ARV7519RW22=$(call Image/BuildKernel/Template,ARV7519RW22,$(1))
 Image/Build/Profile/ARV7519RW22=$(call Image/Build/$(1),$(1),ARV7519RW22)
index 09dfbdd2a093ebcbdaa30e817ff1191b95b3f287..73dad50240af101dfaa5cfe93f7ee4692bb91e4e 100644 (file)
@@ -30,9 +30,9 @@ CONFIG_MTD_NAND_XWAY=y
 # CONFIG_MTD_SM_COMMON is not set
 CONFIG_MTD_UBI=y
 CONFIG_MTD_UBI_BEB_LIMIT=20
-# CONFIG_MTD_UBI_BLOCK is not set
+CONFIG_MTD_UBI_BLOCK=y
 # CONFIG_MTD_UBI_FASTMAP is not set
-CONFIG_MTD_UBI_GLUEBI=y
+# CONFIG_MTD_UBI_GLUEBI is not set
 CONFIG_MTD_UBI_WL_THRESHOLD=4096
 CONFIG_NLS=y
 CONFIG_PCIE_LANTIQ=y
index e758a50360eb63d5c2b8bae276d5f0134d5aa1c1..a43ee1433d6c8140b71a9b170b925e2faa9956bb 100644 (file)
@@ -1,5 +1,5 @@
-define Profile/P2812HNUFX
-  NAME:=ZyXEL P-2812HNU-Fx
+define Profile/P2812HNUF1
+  NAME:=ZyXEL P-2812HNU-F1
   PACKAGES:=kmod-rt2800-pci wpad-mini \
        kmod-ltq-deu-vr9 kmod-ltq-hcd-vr9 \
        kmod-ltq-vdsl-vr9-mei kmod-ltq-vdsl-vr9 \
@@ -8,7 +8,23 @@ define Profile/P2812HNUFX
        swconfig
 endef
 
-P2812HNUFX_UBIFS_OPTS:="-m 2048 -e 126KiB -c 4096"
-P2812HNUFX_UBI_OPTS:="-m 2048 -p 128KiB -s 512"
+P2812HNUF1_UBIFS_OPTS:="-m 2048 -e 126KiB -c 4096"
+P2812HNUF1_UBI_OPTS:="-m 2048 -p 128KiB -s 512"
+
+$(eval $(call Profile,P2812HNUF1))
+
+define Profile/P2812HNUF3
+  NAME:=ZyXEL P-2812HNU-F3
+  PACKAGES:=kmod-rt2800-pci wpad-mini \
+       kmod-ltq-deu-vr9 kmod-ltq-hcd-vr9 \
+       kmod-ltq-vdsl-vr9-mei kmod-ltq-vdsl-vr9 \
+       kmod-ltq-atm-vr9 ltq-vdsl-vr9-fw-installer \
+       ltq-vdsl-app ppp-mod-pppoa \
+       swconfig
+endef
+
+P2812HNUF3_UBIFS_OPTS:="-m 2048 -e 126KiB -c 4096"
+P2812HNUF3_UBI_OPTS:="-m 2048 -p 128KiB -s 512"
+
+$(eval $(call Profile,P2812HNUF3))
 
-$(eval $(call Profile,P2812HNUFX))