mpc85xx: fix address config for ws-ap3825i
[openwrt/openwrt.git] / package / boot / uboot-envtools / files / mpc85xx
1 [ -e /etc/config/ubootenv ] && exit 0
2
3 touch /etc/config/ubootenv
4
5 . /lib/uboot-envtools.sh
6 . /lib/functions.sh
7
8 board=$(board_name)
9
10 case "$board" in
11 ocedo,panda)
12 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
13 ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x20000" "0x20000"
14 ;;
15 aerohive,hiveap-330)
16 ubootenv_add_uci_config "$(find_mtd_part 'u-boot-env')" "0x0" "0x20000" "0x10000"
17 ;;
18 esac
19
20 config_load ubootenv
21 config_foreach ubootenv_add_app_config ubootenv
22
23 exit 0