#!/bin/sh
echo "Try update U-boot from virtual machine ..."
tftp -g -b 8192 -r u-boot.imx 192.168.0.2

#flash_erase /dev/mtd0 0 0
#flash_erase /dev/mtd1 0 0
#kobs-ng init -v ./u-boot.bin

dd if=./u-boot.imx of=/dev/mmcblk0 bs=512 seek=2 && sync && sync

