mpc85xx 962 B

12345678910111213141516171819202122232425262728293031323334
  1. [ -e /etc/config/ubootenv ] && exit 0
  2. touch /etc/config/ubootenv
  3. . /lib/uboot-envtools.sh
  4. . /lib/functions.sh
  5. board=$(board_name)
  6. case "$board" in
  7. enterasys,ws-ap3715i)
  8. ubootenv_add_uci_config "$(find_mtd_part 'cfg1')" "0x0" "0x10000" "0x10000"
  9. ubootenv_add_uci_config "$(find_mtd_part 'cfg2')" "0x0" "0x10000" "0x10000"
  10. ;;
  11. extreme-networks,ws-ap3825i)
  12. ubootenv_add_uci_config "$(find_mtd_part 'cfg1')" "0x0" "0x10000" "0x20000"
  13. ubootenv_add_uci_config "$(find_mtd_part 'cfg2')" "0x0" "0x10000" "0x20000"
  14. ;;
  15. ocedo,panda)
  16. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
  17. ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x20000" "0x20000"
  18. ;;
  19. watchguard,firebox-t10)
  20. ubootenv_add_uci_config "$(find_mtd_part 'u-boot-env')" "0x0" "0x2000" "0x10000"
  21. ;;
  22. aerohive,hiveap-330)
  23. ubootenv_add_uci_config "$(find_mtd_part 'u-boot-env')" "0x0" "0x20000" "0x10000"
  24. ;;
  25. esac
  26. config_load ubootenv
  27. config_foreach ubootenv_add_app_config ubootenv
  28. exit 0