4383c13aee
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 <alberto.bursi@outlook.it> Signed-off-by: Felix Fietkau <nbd@nbd.name> [remove dead code]
44 lines
760 B
Bash
Executable file
44 lines
760 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# Copyright (C) 2012-2015 OpenWrt.org
|
|
#
|
|
|
|
. /lib/functions/uci-defaults.sh
|
|
. /lib/kirkwood.sh
|
|
|
|
board_config_update
|
|
|
|
board=$(kirkwood_board_name)
|
|
|
|
case "$board" in
|
|
"dockstar"|\
|
|
"goflexhome"|\
|
|
"goflexnet"|\
|
|
"ib62x0"|\
|
|
"iconnect"|\
|
|
"nsa310s"|\
|
|
"pogo_e02"|\
|
|
"sheevaplug"|\
|
|
"sheevaplug-esata")
|
|
ucidef_set_interface_lan "eth0" "dhcp"
|
|
;;
|
|
"guruplug-server-plus")
|
|
ucidef_set_interface_lan "eth0 eth1" "dhcp"
|
|
;;
|
|
"linksys-audi"|\
|
|
"linksys-viper")
|
|
ucidef_add_switch "switch0" \
|
|
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0" "6@eth1"
|
|
;;
|
|
"nsa310b"|"nsa325")
|
|
ucidef_set_interface_lan "eth0" "dhcp"
|
|
ucidef_set_interface_macaddr "lan" $( mtd_get_mac_ascii uboot_env ethaddr )
|
|
;;
|
|
*)
|
|
ucidef_set_interface_lan "eth0"
|
|
;;
|
|
esac
|
|
|
|
board_config_flush
|
|
|
|
exit 0
|