#Allwinner A10 devices such as the cubie board.
# This is a tough to distinguish from an arndale board.  It may
# ultimately require setting a good parameter in uEnv.txt to match against,
# particularly if dtbs must be loaded in the future.

c_add cubie 'run config_default; u_k_addr=0x40300000; u_ramfs_addr=0x41600000; u_dtb_addr=0x12345678; u_dtb=sun4i-a10-cubieboard.dtb; skip_dtb=1; pass_dtb=1; u_iodevs=mmc; u_fs=ext2; u_boot=bootm; u_extraargs="\$u_extraargs console=ttyS0,115200"'

cat << EOF
if test -n \$panicarg; then
  if test -n \$preboot; then
    test 1 = 1
  else
    run config_cubie
  fi
fi

EOF
