
setenv sfargs \
  setenv bootargs mem=${memtotal} root=${filesystem-NAND_mtd} noinitrd rootfstype=yaffs2 \
    rw console=ttyS0,115200n8 lpj=${lpj} ${android_bootargs} ${platform_bootargs}

setenv sfboot \
  if iminfo 0xffd00000\; then \
    run sfargs\; \
    bootm ffd00000 \; \
  fi

setenv bootcmd \
  run scriptcmd\; \
  run mmcboot\; \
  echo No MMC card found\; \
  run sfboot\; \
  echo No kernel found

