<style>p{margin:0}img{border:0}</style>
<font style='font-size:12px'><P>Sorry, I don't know what the kernel driver you point.</P>
<P>The processor I used is freescale's i.MX21 which has its own nand flash controller.</P>
<P>The attached file is the archive of linux-2.4.18/drivers/mtd/nand directory. </P>
<P> </P>
<P> </P>
<P>----- Original Message -----<BR>From:"Manav Gautam" <bandwidthcrunch@gmail.com><BR>To:"hurray_0@sina.com" <hurray_0@sina.com><BR>Subject:Re: [Yaffs] A newbie to yaffs<BR>Date:Tue,23 May 2006 19:30:44 CST<BR>Which kernel driver ? and how is the chip connected ? <BR><BR></P>
<DIV><SPAN class=gmail_quote>On 5/23/06, <B class=gmail_sendername><A href="mailto:hurray_0@sina.com" target=_blank>hurray_0@sina.com</A></B> <<A href="mailto:hurray_0@sina.com" target=_blank> hurray_0@sina.com</A>> wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV><FONT style="FONT-SIZE: 12px"></FONT>
<P><FONT style="FONT-SIZE: 12px">Hi everybody,</FONT></P>
<P><FONT style="FONT-SIZE: 12px"> </FONT></P>
<P><FONT style="FONT-SIZE: 12px"> I am a new biehere.I had sent a mail sevral days ago, but with no reply. Maybe I made some mistakes when I was sending the mail, so I made a copy of it. </FONT></P>
<P><FONT style="FONT-SIZE: 12px"> I am using linux-2.4.18-rmk4 on my ARM board and I used cramfs with a nor flash before. I <BR>tried to put YAFFS to the kernal tree and use it with a new added nand flash on my system. After <BR>compiling, I can see yaffs under the /proc:</FONT></P>
<P><FONT style="FONT-SIZE: 12px">~ # ls /proc<BR>1 47 apmc fs misc swaps<BR>10 48 bus interrupts modules sys<BR>16 5 cmdline iomem mounts sysvipc<BR>2 51 cpu ioports mtd tty<BR>3 6 cpuinfo kcore net uptime<BR>32 7 devices kmsg partitions version<BR>4 8 driver ksyms scsi <FONT color=#ff0000>yaffs</FONT><BR>44 9 execdomains loadavg self<BR>45 92 fb locks slabinfo<BR>46 MX2_DMA filesystems meminfo stat</FONT></P>
<P><FONT style="FONT-SIZE: 12px">~ # cat /proc/yaffs<BR>YAFFS built:May 20 2006 13:51:43<BR>$Id: yaffs_fs.c,v 1.39 2005/04/24 08:54:36 charles Exp $<BR>$Id: yaffs_guts.c,v 1.41 2005/04/24 08:54:36 charles Exp $</FONT></P>
<P><FONT style="FONT-SIZE: 12px"> </FONT></P>
<P><FONT style="FONT-SIZE: 12px"> Also I can see yaffs in /proc/filesystem:<BR>~ # cat /proc/filesystems <BR>nodev rootfs<BR>nodev bdev<BR>nodev proc<BR>nodev sockfs<BR>nodev tmpfs<BR>nodev shm<BR>nodev pipefs<BR>ext2 <BR>cramfs<BR>umsdos<BR>msdos<BR>vfat<BR>nodev devfs<BR>nodev nfs<BR>ntfs<BR>jffs2<BR><SPAN style="COLOR: rgb(255,0,0)">yaffs</SPAN><BR>romfs<BR>nodev autofs<BR>nodev devpts<BR>nodev usbdevfs<BR>nodev usbfs</FONT></P>
<P><FONT style="FONT-SIZE: 12px"> </FONT></P>
<P><FONT style="FONT-SIZE: 12px"> but I faild to mount the /dev/mtdblock/3 as a yaffs partition:<BR><FONT color=#ff0000>~ # mount -t yaffs /dev/mtdblock/3 /mnt<BR>yaffs: Attempting MTD mount on 31.3, dev is 7939 "1f:03" <BR>yaffs: MTD device does not support required functions <BR>mount: Mounting /dev/mtdblock/3 on /mnt failed: Invalid argument</FONT></FONT></P>
<P><FONT style="FONT-SIZE: 12px"><BR> PS: There are 5 partitions in my board. The last two is for NAND Flash :<BR>Using static partition definition<BR>Creating 3 MTD partitions on "Motorola Mx2 Flash":<BR>0x00000000-0x00100000 : "bootloader" <BR>0x00100000-0x00300000 : "kernel"<BR>0x00300000-0x01000000 : "file system"<BR>nand_maf_id:0xec nand_dev_id:0x76<BR>NAND device: Manufacture ID: 0xec, Chip ID: 0x76 (Samsung unknown 64Mb)<BR>Creating 2 MTD partitions on "Samsung unknown 64Mb": <BR>0x00000000-0x00400000 : "yaffs"<BR>0x00400000-0x04000000 : "user</FONT></P>
<P><FONT style="FONT-SIZE: 12px"> </FONT></P>
<P><FONT style="FONT-SIZE: 12px"> Can anybody help me to resolve this problem?</FONT></P>
<P><FONT style="FONT-SIZE: 12px"> </FONT></P>
<P><FONT style="FONT-SIZE: 12px"> </FONT></P>
<P><FONT style="FONT-SIZE: 12px"> Are you able to receive my mail and open it? I am really eager to get help from all of you.</FONT></P>
<P><FONT style="FONT-SIZE: 12px"> </FONT></P>
<P><FONT style="FONT-SIZE: 12px">Best regards!</FONT></P>
<P><FONT style="FONT-SIZE: 12px">Hurray</FONT></P></DIV></BLOCKQUOTE></DIV></font><br />
<br />
-------------------------------------------------------------------<br />
采用CMS技术的新东风标致307( <a href=http://ad4.sina.com.cn/sina/limeng3/mail_zhuiyu/2006/mail_zhuiyu_20060522.html target=_blank>http://ad4.sina.com.cn/sina/limeng3/mail_zhuiyu/2006/mail_zhuiyu_20060522.html</a> )<br />
<br />
===================================================================<br />
注册新浪2G免费邮箱( <a href=http://mail.sina.com.cn/chooseMode.html target=_blank>http://mail.sina.com.cn/chooseMode.html</a> )