It is recommended that you use the linux mtd utilities to write images to nand.
To do this you should first prepare a bootable microSD card.
Next, copy the image files and the below script to the microSD card (say to /home/root/images). You may need to modify the script to reflect the names of your image files. Make sure the script is marked as executable.
Unmount the microSD card from your development machine, insert it in the Overo microSD slot and boot.
Login and run the script.
dir=$PWD
uboot=u-boot-overo.bin
uimage=uImage-overo.bin
rootfs=omap3-desktop-image-overo.tar.bz2
if [ -e $uboot ]; then
echo "Erasing u-boot partition ..."
flash_eraseall /dev/mtd1
echo "Erasing u-boot environment partition ..."
flash_eraseall /dev/mtd2
echo "Writing u-boot to NAND ..."
nandwrite -p /dev/mtd1 $uboot
else
echo "ERROR: couldn't find u-boot binary"
fi
if [ -e $uimage ]; then
echo "Erasing kernel partition ..."
flash_eraseall /dev/mtd3
echo "Writing kernel to NAND ..."
nandwrite -p /dev/mtd3 $uimage
else
echo "ERROR: couldn't find kernel binary"
fi
if [ -e $rootfs ]; then
umount /dev/mtdblock4
echo "Erasing and formatting rootfs partition ..."
flash_eraseall -j /dev/mtd4
echo "Mounting rootfs partition ..."
mkdir -p /media/mtdblock4
mount -t jffs2 /dev/mtdblock4 /media/mtdblock4
cd /media/mtdblock4
tar xjf $dir/$rootfs
sync
else
echo "ERROR: couldn't find rootfs tarball"
fi