I am trying to put a linux root filesystem on NAND flash on the DM6467T EVM. I have been able to do so using the jffs2 file system, using the instructions below, copied from another e2e forum post. I want to use the yaffs2 file system instead, but haven't been able to. I followed the instructions from the wiki (link below) to patch the kernel with yaffs2 support. I ran the patch script, changed the settings in menuconfig, recompiled the kernel, and loaded into flash where linux boots from. I then followed the jffs2 instructions, changing the mount command to use "-t yaffs2" instead of "-t jffs2". The problem occurs during step 6, when I extract the tarball to mtd3, from nfs. It copies the first 27 files correctly, then exits with the error:
tar: can't open 'bin/mountpoint': Cannot allocate memory
Any ideas?
yaffs2 instructions:
http://processors.wiki.ti.com/index.php/Filesystem_in_NOR_or_NAND
File system on NAND flash instructions.
- Copy the NAND file system file (rootfs.tar) to the NFS server shared directory (e.g. “/home/user/workdir/filesys”).
- Boot the board and log in as a ‘root’.
- Erase the file system partition on the NAND.
root@dm6467-evm:~# flash_eraseall -j /dev/mtd3
Erasing 128 Kibyte @ 7aa0000 -- 100 % complete.Cleanmarker written at 7a80000.
- Create the mount directory for NAND file system.
root@dm6467-evm:~# mkdir /mnt/nand
- Mount NAND file system partition and change to mount directory “/mnt/nand”
root@dm6467-evm:~# mount -t jffs2 /dev/mtdblock3 /mnt/nand
root@dm6467-evm:~# cd /mnt/nand
- Un-tar the file system to NAND
root@dm6467-evm:~# tar –xvf /rootfs.tar
This step takes a while to un-tar the whole file system to the NAND partition.
- Un-mount NAND partition.
root@dm6467-evm:~# cd /
root@dm6467-evm:~# umount /mnt/nand
