ar71xx 985 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2011-2014 OpenWrt.org
  4. #
  5. [ -e /etc/config/ubootenv ] && exit 0
  6. touch /etc/config/ubootenv
  7. . /lib/ar71xx.sh
  8. . /lib/uboot-envtools.sh
  9. . /lib/functions.sh
  10. board=$(ar71xx_board_name)
  11. case "$board" in
  12. alfa-ap120c | \
  13. all0258n | \
  14. cap324 | \
  15. cap4200ag | \
  16. carambola2 | \
  17. cr3000 | \
  18. cr5000 | \
  19. eap300v2 | \
  20. hornet-ub | \
  21. hornet-ub-x2 | \
  22. mr1750 | \
  23. mr1750v2 | \
  24. mr600 | \
  25. mr600v2 | \
  26. mr900 | \
  27. mr900v2 | \
  28. nbg6716 | \
  29. om5p-an | \
  30. om5p-ac | \
  31. om5p-acv2 | \
  32. om5p | \
  33. tube2h | \
  34. wndr3700)
  35. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
  36. ;;
  37. alfa-ap96 | \
  38. all0315n | \
  39. om2p | \
  40. om2pv2 | \
  41. om2p-hs | \
  42. om2p-hsv2 | \
  43. om2p-hsv3 | \
  44. om2p-lc)
  45. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x40000"
  46. ;;
  47. wzr-hp-ag300h)
  48. ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
  49. ;;
  50. qihoo-c301)
  51. ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
  52. ;;
  53. esac
  54. config_load ubootenv
  55. config_foreach ubootenv_add_app_config ubootenv
  56. exit 0