I'm trying to follow the instructions at http://processors.wiki.ti.com/index.php/Filesystem_in_NOR_or_NAND#File_system_preparation
I have a DM6467T EVM. When I run "cat /proc/mtd" I get the following output:
dev: size erasesize name
mtd0: 00020000 0020000 “params”
mtd1: 00140000 0020000 “bootloader”
mtd2: 00400000 0020000 “kernel”
mtd3: 07aa0000 0020000 “filesystem”
When I look in the /dev folder, I find an mtdx and mtdblockx for x=0,1,2,3. I also find in davinci_dm646x_1ghz_defconfig all the settings advised for JFFS2.
This is all how the EVM came without me doing anything.
Based on what I see on my EVM and what I read in the instructions, I run the command "flash_eraseall -j /dev/mtd3", which seems to do something, logging about clearing 128 Kibyte sections and writing Cleanmarkers.
I deduce that the flash_eraseall command is akin to a disk "format" on a Windows machine. Therefore, I assume I should now have a blank, empty file system in nand.
However, I then run "mount -t jffs2 /dev/mtdblock3 /mnt/nand" and get the error "mount: mounting /dev/mtdblock3 on /dev/nand failed: No such file or directory".
Why? It does occur to me that /mnt/nand does not already exist. But when I try "mknod /dev/nand" I get usage advice and realize I don't know how to run it correctly for this application.
Please help me get past this point. I assume I need to get the "mount" command working, then go through other procedures I understand already to write my filesystem to NAND, such filesystem being built by procedures I do NOT yet understand but I believe is summarized at http://processors.wiki.ti.com/index.php/Filesystem_in_NOR_or_NAND#Content_of_file_system.
One additional note. While /proc/mtd gives me the output above, when I boot my EVM the log displays different info:
Creating 4 MTD partitions on "davinci_nand.0":
0x000000000000-0x000000020000 : "params"
0x000000020000-0x000000160000 : "bootloader"
0x000000160000-0x000000560000 : "kernel"
0x000000560000-0x000008000000 : "filesystem"
Thanks very much,
Helmut