ar71xx 952 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. cap4200ag | \
  15. carambola2 | \
  16. eap300v2 | \
  17. hornet-ub | \
  18. hornet-ub-x2 | \
  19. mr1750 | \
  20. mr1750v2 | \
  21. mr600 | \
  22. mr600v2 | \
  23. mr900 | \
  24. mr900v2 | \
  25. nbg6716 | \
  26. om5p-an | \
  27. om5p-ac | \
  28. om5p-acv2 | \
  29. om5p | \
  30. tube2h | \
  31. wndr3700)
  32. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x10000" "0x10000"
  33. ;;
  34. alfa-ap96 | \
  35. all0315n | \
  36. om2p | \
  37. om2pv2 | \
  38. om2p-hs | \
  39. om2p-hsv2 | \
  40. om2p-hsv3 | \
  41. om2p-lc)
  42. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x40000" "0x40000"
  43. ;;
  44. wzr-hp-ag300h)
  45. ubootenv_add_uci_config "/dev/mtd3" "0x0" "0x10000" "0x10000"
  46. ;;
  47. qihoo-c301)
  48. ubootenv_add_uci_config "/dev/mtd9" "0x0" "0x10000" "0x10000"
  49. ;;
  50. esac
  51. config_load ubootenv
  52. config_foreach ubootenv_add_app_config ubootenv
  53. exit 0