mediatek_mt7623 544 B

1234567891011121314151617181920212223242526272829
  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. export_bootdevice
  13. export_partdevice ubootpart 1
  14. ubootenv_add_uci_config "/dev/$ubootpart" "0xb0000" "0x10000" "0x10000" "1"
  15. ;;
  16. unielec,u7623-02)
  17. ubootenv_add_uci_config "/dev/mmcblk0p1" "0xc0000" "0x10000" "0x10000" "1"
  18. ;;
  19. esac
  20. config_load ubootenv
  21. config_foreach ubootenv_add_app_config ubootenv
  22. exit 0