[Yaffs-archive] cannot see files in yaffs image

Skumar skumar@mistralsoftware.com
Fri, 3 Jan 2003 15:07:50 +0530


This is a multi-part message in MIME format.

------=_NextPart_000_00AF_01C2B339.E2137930
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


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        =20
[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]$=20

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=20
sharath

------=_NextPart_000_00AF_01C2B339.E2137930
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3315.2870" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>&nbsp;</DIV>
<DIV><STRONG><FONT face=3DArial size=3D2>Hello,</FONT></STRONG></DIV>
<DIV><STRONG><FONT face=3DArial size=3D2>i have created yaffs image on =
host(x86) as=20
follows.</FONT></STRONG></DIV>
<DIV><STRONG><FONT face=3DArial size=3D2>as you can see the image has 4 =
files=20
erase&nbsp; eraseall&nbsp; nanddump&nbsp; =
test.c<BR></FONT></STRONG></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>[skumar@embedded_linux skumar]$ cd=20
del&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
<BR>[skumar@embedded_linux=20
del]$ ls<BR>erase&nbsp; eraseall&nbsp; nanddump&nbsp;=20
test.c<BR>[skumar@embedded_linux del]$ cd ..<BR>[skumar@embedded_linux =
skumar]$=20
./mkyaffsimage del/ tmp/yaffs.image<BR>mkyaffsimage: image building tool =
for=20
YAFFS built Oct&nbsp; 4 2002<BR>Processing directory del/ into image =
file=20
tmp/yaffs.image<BR>Object 257, del//erase is a file, 28 data chunks=20
written<BR>Object 258, del//test.c is a file, 1 data chunks =
written<BR>Object=20
259, del//eraseall is a file, 29 data chunks written<BR>Object 260,=20
del//nanddump is a file, 29 data chunks written<BR>Operation =
complete.<BR>4=20
objects in 1 directories<BR>92 NAND pages<BR>[skumar@embedded_linux =
skumar]$=20
</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>i have put the yaffs.image in =
the ramdisk,=20
booted linux on board &amp; run the following</STRONG></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Mistral<BR>Linux login: =
root<BR>[root@Linux=20
/root]$ls<BR>dialogue.mp3&nbsp;&nbsp; Hello_448.pcm&nbsp;=20
sound_arm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
record&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
testioctl<BR>yaffs.image<BR>[root@Linux /root]$cp yaffs.image=20
/dev/mtd7<BR>MTD_open</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>MTD_write</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>MTD_write</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>MTD_write</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>MTD_write</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>MTD_write</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>MTD_write</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>MTD_close</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>[root@Linux /root]$cd ..<BR>[root@Linux =
/]$mount -t=20
yaffs /dev/mtdblock7 tmp<BR>yaffs: dev is 7943 name is =
"1f:07"</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>yaffs_read_super: MTD block size =
4096</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>yaffs: Attempting MTD mount on 31.7,=20
"1f:07"</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;erase c00b2ac0</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;read c00b2748</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;write c00b2898</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;readoob c00b27f0</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;writeoob c00b2950</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;oobblock 200</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;oobsize 10</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>yaffs_read_super: guts =
initialised</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>yaffs_read_super: got root =
inode</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>yaffs_read_super: d_alloc_root =
done</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>yaffs_read_super: done</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>[root@Linux /]$cd tmp<BR>[root@Linux=20
/tmp]$ls<BR>yaffs_readdir: starting at 0</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>yaffs_readdir: starting at =
3</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>yaffs_readdir: starting at =
0</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>yaffs_readdir: starting at =
3</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>lost+found<BR>[root@Linux =
/tmp]$</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>[root@Linux /tmp]$ls =
-la<BR>yaffs_readdir: starting=20
at 0</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>yaffs_readdir: starting at =
3</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>yaffs_readdir: starting at =
0</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>drw-rw-rw-&nbsp;&nbsp;&nbsp; 1=20
root&nbsp;&nbsp;&nbsp;&nbsp;=20
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 512 Jan&nbsp; 1 =
00:01=20
.<BR>drwxr-yar-x&nbsp;&nbsp; 14&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
5f0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 500&nbsp;&nbsp;&nbsp; 1f24 Aug&nbsp; =
7&nbsp;=20
2002 ..<BR>s_readdir: starting at 3</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>drw-rw-rw-&nbsp;&nbsp;&nbsp; 1=20
root&nbsp;&nbsp;&nbsp;&nbsp;=20
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 512 Jan&nbsp; 1 =
00:01=20
lost+found</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>as you can see when i do ls i =
cannot any of=20
the files except lost+found</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><STRONG>why is it like =
this?</STRONG></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Regards </FONT></DIV>
<DIV><FONT face=3DArial size=3D2>sharath</FONT></DIV></BODY></HTML>

------=_NextPart_000_00AF_01C2B339.E2137930--



---------------------------------------------------------------------------------------
This mailing list is hosted by Toby Churchill open software (www.toby-churchill.org).
If mailing list membership is no longer wanted you can remove yourself from the list by 
sending an email to yaffs-request@toby-churchill.org with the text "unsubscribe" 
(without the quotes) as the subject.