I'm trying to get my root file system into the BeagleBoards NAND. I
followed the recommended procedure of mounting /dev/mtdblock4 and
extracting a tarball into it while operating from a nfs rootfs. I will
outline the commands I use:
flash_eraseall -j /dev/mtd4
mount -t jffs2 /dev/mtdblock4 /mnt/mtd
cd /mnt/mtd
tar xjvf /home/rootfs.bz2 //
When I extract the files (about 40MB uncompressed) I get a few error
messages like this one:
mtd->read(0x998 bytes from 0xf94302c) returned ECC error
However, all the files appear to be on the partition. I then use
"sync", umount the mtd partition and reboot.