mvebu 910 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2014-2016 OpenWrt.org
  4. # Copyright (C) 2016 LEDE-Project.org
  5. #
  6. [ -e /etc/config/ubootenv ] && exit 0
  7. touch /etc/config/ubootenv
  8. . /lib/uboot-envtools.sh
  9. . /lib/functions.sh
  10. board=$(board_name)
  11. case "$board" in
  12. armada-385-linksys-caiman|\
  13. armada-385-linksys-cobra|\
  14. armada-385-linksys-shelby)
  15. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x40000"
  16. ;;
  17. armada-385-linksys-rango|\
  18. armada-385-linksys-venom)
  19. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
  20. ;;
  21. armada-385-turris-omnia)
  22. ubootenv_add_uci_config "/dev/mtd0" "0xC0000" "0x10000" "0x40000"
  23. ;;
  24. armada-xp-linksys-mamba)
  25. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x20000"
  26. ;;
  27. globalscale,espressobin|\
  28. marvell,armada8040-mcbin)
  29. ubootenv_add_uci_config "/dev/mtd0" "0x3f0000" "0x10000" "0x10000" "1"
  30. ;;
  31. esac
  32. config_load ubootenv
  33. config_foreach ubootenv_add_app_config ubootenv
  34. exit 0