mvebu 639 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2014-2016 OpenWrt.org
  4. #
  5. [ -e /etc/config/ubootenv ] && exit 0
  6. touch /etc/config/ubootenv
  7. . /lib/mvebu.sh
  8. . /lib/uboot-envtools.sh
  9. . /lib/functions.sh
  10. board=$(mvebu_board_name)
  11. case "$board" in
  12. armada-385-linksys-caiman|armada-385-linksys-cobra|armada-385-linksys-shelby)
  13. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x40000"
  14. ;;
  15. armada-385-linksys-rango)
  16. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
  17. ;;
  18. armada-xp-linksys-mamba)
  19. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x20000"
  20. ;;
  21. esac
  22. config_load ubootenv
  23. config_foreach ubootenv_add_app_config ubootenv
  24. exit 0