mpc85xx 388 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. [ -e /etc/config/ubootenv ] && exit 0
  3. touch /etc/config/ubootenv
  4. . /lib/uboot-envtools.sh
  5. . /lib/functions.sh
  6. board=$(board_name)
  7. case "$board" in
  8. ocedo,panda)
  9. ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
  10. ubootenv_add_uci_config "/dev/mtd2" "0x0" "0x20000" "0x20000"
  11. ;;
  12. esac
  13. config_load ubootenv
  14. config_foreach ubootenv_add_app_config ubootenv
  15. exit 0