From 4383c13aee8963ee93ca1950e7f0ea5a35309ab4 Mon Sep 17 00:00:00 2001 From: Alberto Bursi Date: Mon, 6 Feb 2017 11:40:52 +0100 Subject: kirkwood: add ZyXEL NSA325 device This patch add ZyXEL NSA325 2-Bay Media Server The ZyXEL NSA325 device is a Kirkwood based NAS: - SoC: Marvell 88F6702 1600Mhz - SDRAM memory: 512MB DDR2 400Mhz - Gigabit ethernet: Marvell Alaska - Flash memory: 128MB - 1 Power button - 1 Power LED (blue) - 5 Status LED (green/red) - 1 Copy/Sync button - 1 Reset button - 2 SATA II ports (internal) - 2 USB 2.0 ports (back) - 1 USB 3.0 port (front) - Fan (fixed speed) - hardware watchdog in a mcu Basically a bigger, more powerful version of NSA310, installation is the same as they share the same flash layout. A notable difference is that there is a hardware watchdog in a mcu on the board, which is disabled by default in the LEDE u-boot. The watchdog is also disabled with a GPIO activation through raw register change when kwbooting or it would reset the board before the new uboot was transferred. Signed-off-by: Alberto Bursi Signed-off-by: Felix Fietkau [remove dead code] --- target/linux/kirkwood/base-files/etc/board.d/01_leds | 3 +++ target/linux/kirkwood/base-files/etc/board.d/02_network | 2 +- target/linux/kirkwood/base-files/lib/kirkwood.sh | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) (limited to 'target/linux/kirkwood/base-files') diff --git a/target/linux/kirkwood/base-files/etc/board.d/01_leds b/target/linux/kirkwood/base-files/etc/board.d/01_leds index 4518fc4b64..e6da9fd49a 100755 --- a/target/linux/kirkwood/base-files/etc/board.d/01_leds +++ b/target/linux/kirkwood/base-files/etc/board.d/01_leds @@ -41,6 +41,9 @@ case "$board" in "nsa310b") ucidef_set_led_default "health" "health" "nsa310:green:sys" "1" ;; +"nsa325") + ucidef_set_led_default "health" "health" "nsa325:green:sys" "1" + ;; "sheevaplug" | \ "sheevaplug-esata") ucidef_set_led_timer "health" "health" "sheevaplug:blue:health" "200" "800" diff --git a/target/linux/kirkwood/base-files/etc/board.d/02_network b/target/linux/kirkwood/base-files/etc/board.d/02_network index b5406b0e37..b82086ec3e 100755 --- a/target/linux/kirkwood/base-files/etc/board.d/02_network +++ b/target/linux/kirkwood/base-files/etc/board.d/02_network @@ -30,7 +30,7 @@ case "$board" in ucidef_add_switch "switch0" \ "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0" "6@eth1" ;; -"nsa310b") +"nsa310b"|"nsa325") ucidef_set_interface_lan "eth0" "dhcp" ucidef_set_interface_macaddr "lan" $( mtd_get_mac_ascii uboot_env ethaddr ) ;; diff --git a/target/linux/kirkwood/base-files/lib/kirkwood.sh b/target/linux/kirkwood/base-files/lib/kirkwood.sh index f0efec4994..2c7d7baf4b 100755 --- a/target/linux/kirkwood/base-files/lib/kirkwood.sh +++ b/target/linux/kirkwood/base-files/lib/kirkwood.sh @@ -65,6 +65,10 @@ kirkwood_board_detect() { name="nsa310s" ;; + "ZyXEL NSA325") + name="nsa325" + ;; + *) name="generic" ;; -- cgit v1.2.3