ubnt-ledbar: adapt for kernel v6.6
[openwrt/openwrt.git] / package / boot / uboot-envtools / files / apm821xx
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 meraki,mr24)
12 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x4000" "0x4000" "4"
13 ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x4000" "0x4000" "4"
14 ;;
15 meraki,mx60)
16 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000" "4"
17 ;;
18 netgear,wndap620|\
19 netgear,wndap660)
20 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x4000" "0x4000" "4"
21 ;;
22 netgear,wndr4700)
23 ubootenv_add_uci_config "/dev/mtd0" "0x40000" "0x20000" "0x20000" "1"
24 ubootenv_add_uci_config "/dev/mtd0" "0x60000" "0x20000" "0x20000" "1"
25 ;;
26 wd,mybooklive)
27 ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x1000" "0x1000" "1"
28 ubootenv_add_uci_config "/dev/mtd1" "0x1000" "0x1000" "0x1000" "1"
29 ;;
30 esac
31
32 config_load ubootenv
33 config_foreach ubootenv_add_app_config ubootenv
34
35 exit 0