mvebu 677 B

1234567891011121314151617181920212223242526272829303132
  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/mvebu.sh
  9. . /lib/uboot-envtools.sh
  10. . /lib/functions.sh
  11. board=$(mvebu_board_name)
  12. case "$board" in
  13. armada-385-linksys-caiman|armada-385-linksys-cobra|armada-385-linksys-shelby)
  14. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x40000"
  15. ;;
  16. armada-385-linksys-rango)
  17. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
  18. ;;
  19. armada-xp-linksys-mamba)
  20. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x20000"
  21. ;;
  22. esac
  23. config_load ubootenv
  24. config_foreach ubootenv_add_app_config ubootenv
  25. exit 0