bc7dcf24f9edbe098a87b53eea0e5976b6821644
[openwrt/staging/pepe2k.git] / package / boot / uboot-envtools / files / layerscape
1 #
2 # Copyright (C) 2016 LEDE
3 #
4
5 [ -f /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 traverse,ls1043v|\
16 traverse,ls1043s)
17 ubootenv_add_uci_config "/dev/mtd1" "0x40000" "0x2000" "0x20000"
18 ;;
19 traverse,ten64)
20 ubootenv_add_uci_config "/dev/mtd3" "0x0000" "0x80000" "0x80000"
21 ;;
22 esac
23
24 config_load ubootenv
25 config_foreach ubootenv_add_app_config ubootenv
26
27 exit 0