layerscape 388 B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2016 LEDE
  4. #
  5. [ -f /etc/config/ubootenv ] && exit 0
  6. touch /etc/config/ubootenv
  7. . /lib/uboot-envtools.sh
  8. . /lib/functions.sh
  9. board=$(board_name)
  10. case "$board" in
  11. traverse,ls1043v | \
  12. traverse,ls1043s)
  13. ubootenv_add_uci_config "/dev/mtd1" "0x40000" "0x2000" "0x20000"
  14. ;;
  15. esac
  16. config_load ubootenv
  17. config_foreach ubootenv_add_app_config ubootenv
  18. exit 0