
setenv nandargs \
  setenv bootargs mem=${memtotal} root=/dev/ram0 rw initrd=0x01400000,32M \
    console=ttyS0,115200n8 lpj=${lpj} ${platform_bootargs}

setenv nandboot \
  nandrw r ${kernel-NAND_ofs} 0x1000000 ${kernel-NAND_len}\; \
  nandrw r ${initrd-NAND_ofs} 0x1400000 ${initrd-NAND_len}\; \
  if iminfo 0x1000000\; then \
    run nandargs\; \
    bootm 0x1000000\; \
  fi

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

