mediatek_mt7623 537 B

12345678910111213141516171819202122232425262728
  1. #
  2. # Copyright (C) 2021 OpenWrt.org
  3. #
  4. [ -e /etc/config/ubootenv ] && exit 0
  5. touch /etc/config/ubootenv
  6. . /lib/uboot-envtools.sh
  7. . /lib/functions.sh
  8. board=$(board_name)
  9. case "$board" in
  10. bananapi,bpi-r2)
  11. . /lib/upgrade/common.sh
  12. bootdev="$(fitblk_get_bootdev)"
  13. ubootenv_add_uci_config "/dev/${bootdev%p[0-9]*}p1" "0xb0000" "0x10000" "0x10000" "1"
  14. ;;
  15. unielec,u7623-02)
  16. ubootenv_add_uci_config "/dev/mmcblk0p1" "0xc0000" "0x10000" "0x10000" "1"
  17. ;;
  18. esac
  19. config_load ubootenv
  20. config_foreach ubootenv_add_app_config ubootenv
  21. exit 0