<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">I'm trying to get a 64 MByte nand flash
to be partitioned in a 32MB cramfs and 32MB jffs2 partition. In case anyone's
curious, I would like the cramfs to be root as it would be a faster mount
and its read-only feature.</font>
<br>
<br><font size=2 face="sans-serif">I tried to do this in the kernel by
</font>
<br>
<br><font size=2 face="sans-serif">static struct mtd_partition partition_info[]
= {</font>
<br><font size=2 face="sans-serif"> [0] = {</font>
<br><font size=2 face="sans-serif">
.name = "CRAM",</font>
<br><font size=2 face="sans-serif">
.offset = 0,</font>
<br><font size=2 face="sans-serif">
.size = 32 * 1024 * 1024,</font>
<br><font size=2 face="sans-serif">
.mask_flags = MTD_WRITEABLE, /* force
read-only */</font>
<br><font size=2 face="sans-serif"> },</font>
<br><font size=2 face="sans-serif"> [1]
= {</font>
<br><font size=2 face="sans-serif">
.name = "JFFS2",</font>
<br><font size=2 face="sans-serif">
.offset = 32 * 1024 * 1024,</font>
<br><font size=2 face="sans-serif">
.size = MTDPART_SIZ_FULL,</font>
<br><font size=2 face="sans-serif"> }</font>
<br><font size=2 face="sans-serif">};</font>
<br>
<br><font size=2 face="sans-serif">but when I cat/proc/mtd, I get</font>
<br><font size=2 face="sans-serif">/ # cat /proc/mtd</font>
<br><font size=2 face="sans-serif">dev: size erasesize
name</font>
<br><font size=2 face="sans-serif">mtd0: 04000000 00004000 "rootfs"</font>
<br>
<br><font size=2 face="sans-serif">so I realise that this is affected by
the bootargs passed by u-bootloader which is </font>
<br><font size=2 face="sans-serif">"bootargs=console=ttyS0 mtdparts=a9m9750:0x4000000@0(rootfs)
root=mtdblock/0 rootfstype=jffs2"</font>
<br>
<br><font size=2 face="sans-serif">How should I passed the bootargs?</font>
<br>
<br><font size=2 face="sans-serif">Thanks in advance,</font>
<br><font size=2 face="sans-serif">Terence.</font>