2
0

mxs 434 B

1234567891011121314151617181920212223242526
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2013 OpenWrt.org
  4. #
  5. [ -e /etc/config/ubootenv ] && exit 0
  6. touch /etc/config/ubootenv
  7. . /lib/mxs.sh
  8. . /lib/uboot-envtools.sh
  9. . /lib/functions.sh
  10. board=$(mxs_board_name)
  11. case "$board" in
  12. duckbill)
  13. ubootenv_add_uci_config "/dev/mmcblk0" "0x20000" "0x20000"
  14. ubootenv_add_uci_config "/dev/mmcblk0" "0x40000" "0x20000"
  15. ;;
  16. esac
  17. config_load ubootenv
  18. config_foreach ubootenv_add_app_config ubootenv
  19. exit 0