[Yaffs] What should i do when i want to mount a yaffs as root file system
Xie, Chao
chao.xie@intel.com
Tue, 5 Apr 2005 14:32:09 +0800
This is a multi-part message in MIME format.
------_=_NextPart_001_01C539A9.3219B0B8
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi
I use mkyaffsimage to make a yaffs image and copy the yaffs
source files to the kernel. I compile the kernel with yaffs support and
boot it, but the yaffs file system can not be mounted.
I set CONFIG_CMDLINE=3D"root=3D/dev/mtdblock2 =
rootfstype=3Dyaffs
ip=3Doff console=3DttyS0,115200 mem=3D64M"
The situation is same when I want to mount it in shell. I tried
"mount -t yaffs /dev/mtd2 /mnt" and "mount -t yaffs /dev/mtdblock2
/mnt". Both commands report that "No such device"
In fact I can mount jffs2 ad root file system. I have disabled
the ECC in the NAND driver. The kernel I used is 2.6.9.
=20
=20
Best Regards
Chao
=20
------_=_NextPart_001_01C539A9.3219B0B8
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"\@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{font-family:Arial;
color:windowtext;}
/* Page Definitions */
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
layout-grid:15.6pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=3DZH-CN link=3Dblue vlink=3Dpurple =
style=3D'text-justify-trim:punctuation'>
<div class=3DSection1 style=3D'layout-grid:15.6pt'>
<p class=3DMsoNormal style=3D'layout-grid-mode:char'><font size=3D1 =
face=3DArial><span
lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:Arial'>Hi</span></font></p>
<p class=3DMsoNormal style=3D'layout-grid-mode:char'><font size=3D1 =
face=3DArial><span
lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:Arial'>  =
;
I use mkyaffsimage to make a yaffs image and copy the yaffs source files =
to the
kernel. I compile the kernel with yaffs support and boot it, but the =
yaffs file
system can not be mounted.</span></font></p>
<p class=3DMsoNormal style=3D'layout-grid-mode:char'><font size=3D1 =
face=3DArial><span
lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:Arial'>  =
;
I set CONFIG_CMDLINE=3D”root=3D/dev/mtdblock2 rootfstype=3Dyaffs =
ip=3Doff
console=3DttyS0,115200 mem=3D64M”</span></font></p>
<p class=3DMsoNormal style=3D'layout-grid-mode:char'><font size=3D1 =
face=3DArial><span
lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:Arial'>  =
;
The situation is same when I want to mount it in shell. I tried =
“mount –t yaffs
/dev/mtd2 /mnt” and “mount –t yaffs /dev/mtdblock2 =
/mnt”. Both commands report
that “No such device”</span></font></p>
<p class=3DMsoNormal style=3D'layout-grid-mode:char'><font size=3D1 =
face=3DArial><span
lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:Arial'>  =
;
In fact I can mount jffs2 ad root file system. I have disabled the ECC =
in the
NAND driver. The kernel I used is 2.6.9.</span></font></p>
<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'> </span></font></p>
<p class=3DMsoNormal><font size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:
9.0pt;font-family:Arial'> </span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Times New Roman"><span =
lang=3DEN-US
style=3D'font-size:10.0pt'>Best Regards</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Times New Roman"><span =
lang=3DEN-US
style=3D'font-size:10.0pt'>Chao</span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3D"Times New Roman"><span =
lang=3DEN-US> </span></font></p>
</div>
</body>
</html>
------_=_NextPart_001_01C539A9.3219B0B8--