kernel: bump 6.1 to 6.1.89
[openwrt/openwrt.git] / package / boot / uboot-envtools / files / mediatek_mt7623
1 #
2 # Copyright (C) 2021 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 bananapi,bpi-r2)
16 . /lib/upgrade/common.sh
17 bootdev="$(fitblk_get_bootdev)"
18 ubootenv_add_uci_config "/dev/${bootdev%p[0-9]*}p1" "0xb0000" "0x10000" "0x10000" "1"
19 ;;
20 unielec,u7623-02)
21 ubootenv_add_uci_config "/dev/mmcblk0p1" "0xc0000" "0x10000" "0x10000" "1"
22 ;;
23 esac
24
25 config_load ubootenv
26 config_foreach ubootenv_add_app_config ubootenv
27
28 exit 0