
flushrecv
sendln 'tftp  ff0000 p2020sku.dtb'
wait '=>'
sendln 'erase  0xee000000 0xee01ffff'
wait '=>'
sendln 'cp.b  0xff0000 0xee000000 $filesize'
wait '=>'
sendln 'tftp  1000000 uImage'
wait '=>'
sendln 'erase  0xee080000 0xee3bffff'
wait '=>'
sendln 'cp.b  0x1000000 0xee080000 $filesize'
wait '=>'
sendln 'tftp  1300000 rootfs.ext2.gz.uboot'
wait '=>'
sendln 'erase  0xee400000 0xef7fffff'
wait '=>'
sendln 'cp.b  0x1300000 0xee400000 $filesize'
wait '=>'
sendln 'setenv  dtbaddr 0xee000000'
wait '=>'
sendln 'setenv bootargs root=/dev/ram ramdisk_size=96000 rw console=ttyS0,115200'
wait '=>'
sendln 'setenv  bootcmd bootm 0xee080000 0xee400000 0xee000000'
wait '=>'
sendln 'saveenv'
wait '=>'
sendln 'boot'
