[Yaffs-archive] Fw: cannot see files in yaffs image

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Skumar
Date:  
To: yaffs
Subject: [Yaffs-archive] Fw: cannot see files in yaffs image
Hello,
i have created yaffs image on host(x86) as follows.
as you can see the image has 4 files erase eraseall nanddump test.c


[skumar@embedded_linux skumar]$ cd del         
[skumar@embedded_linux del]$ ls
erase  eraseall  nanddump  test.c
[skumar@embedded_linux del]$ cd ..
[skumar@embedded_linux skumar]$ ./mkyaffsimage del/ tmp/yaffs.image
mkyaffsimage: image building tool for YAFFS built Oct  4 2002
Processing directory del/ into image file tmp/yaffs.image
Object 257, del//erase is a file, 28 data chunks written
Object 258, del//test.c is a file, 1 data chunks written
Object 259, del//eraseall is a file, 29 data chunks written
Object 260, del//nanddump is a file, 29 data chunks written
Operation complete.
4 objects in 1 directories
92 NAND pages
[skumar@embedded_linux skumar]$ 


i have put the yaffs.image in the ramdisk, booted linux on board & run the following

Mistral
Linux login: root
[root@Linux /root]$ls
dialogue.mp3   Hello_448.pcm  sound_arm      record         testioctl
yaffs.image
[root@Linux /root]$cp yaffs.image /dev/mtd7
MTD_open


MTD_write

MTD_write

MTD_write

MTD_write

MTD_write

MTD_write

MTD_close

[root@Linux /root]$cd ..
[root@Linux /]$mount -t yaffs /dev/mtdblock7 tmp
yaffs: dev is 7943 name is "1f:07"

yaffs_read_super: MTD block size 4096

yaffs: Attempting MTD mount on 31.7, "1f:07"

erase c00b2ac0

read c00b2748

write c00b2898

readoob c00b27f0

writeoob c00b2950

oobblock 200

oobsize 10

yaffs_read_super: guts initialised

yaffs_read_super: got root inode

yaffs_read_super: d_alloc_root done

yaffs_read_super: done

[root@Linux /]$cd tmp
[root@Linux /tmp]$ls
yaffs_readdir: starting at 0

yaffs_readdir: starting at 3

yaffs_readdir: starting at 0

yaffs_readdir: starting at 3

lost+found
[root@Linux /tmp]$
[root@Linux /tmp]$ls -la
yaffs_readdir: starting at 0

yaffs_readdir: starting at 3

yaffs_readdir: starting at 0

drw-rw-rw-    1 root     root         512 Jan  1 00:01 .
drwxr-yar-x   14      5f0      500    1f24 Aug  7  2002 ..
s_readdir: starting at 3


drw-rw-rw-    1 root     root         512 Jan  1 00:01 lost+found


as you can see when i do ls i cannot any of the files except lost+found
why is it like this?
Regards
sharath