kirkwood: add support for NETGEAR ReadyNAS Duo v2
[openwrt/openwrt.git] / package / boot / uboot-envtools / files / kirkwood
1 #
2 # Copyright (C) 2012-2014 OpenWrt.org
3 #
4
5 [ -e /etc/config/ubootenv ] && exit 0
6
7 touch /etc/config/ubootenv
8
9 . /lib/uboot-envtools.sh
10 . /lib/functions.sh
11
12 board=$(board_name)
13
14 case "$board" in
15 checkpoint,l-50|\
16 cloudengines,pogoe02|\
17 cloudengines,pogoplugv4|\
18 globalscale,sheevaplug|\
19 iom,ix2-200|\
20 linksys,e4200-v2|\
21 linksys,ea4500|\
22 netgear,readynas-duo-v2|\
23 raidsonic,ib-nas62x0|\
24 seagate,dockstar|\
25 zyxel,nsa310b|\
26 zyxel,nsa310s|\
27 zyxel,nsa325)
28 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
29 ;;
30 linksys,ea3500)
31 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x4000" "0x4000"
32 ;;
33 esac
34
35 config_load ubootenv
36 config_foreach ubootenv_add_app_config ubootenv
37
38 exit 0