Thanks Charles.<br>
<br>
I would like to explain my problem in detail! <br>
<br>
I want to use YAFFS2 as flash file system. <br>
<br>
I need to store two stage boot loader in NAND. Stage - 1 bootloader
stored (First&nbsp; 4k code can be loaded in Internal RAM )&nbsp; in
block 0, which is responsible to copy the stage -2&nbsp; boot loader
from other portion of the NAND to SDRAM and pass control to it for
execution. Stage - 2 boot loader is responsible initializing
peripherals and booting up kernel image.&nbsp; <br>
<br>
Design Approach - 1 : Have&nbsp; separate partitions for Stage -2 boot loader , kernel image and root file system.<br>
<br>
Advantage:-&nbsp; kernel images can be loaded using TFTP / FTP support available in boot loader. <br>
<br>
Disadvantage:- If only 'n' number of blocks are allocated for loading
kernel image and all the allocated blocks goes bad after some program /
erase cycles then you can not load kernel image again! <br>
<br>
Design Approach 2: have two partition boot and root. Bootloader will mount root partition and boot&nbsp; the kernel image! <br>
<br>
Advantage:- Kernel image program / erase is not restricted to some partition space!<br>
<br>
Disadvantage: - As root file system can be mounted only as read only
from boot loader. I can not reload kernel image from boot loader. I
need to flash entire root file system again!<br>
<br>
What efforts are required to mount root file system as read / write from boot loader? <br>
<br>
How mkyaffs utility works? How it marks bad block when first time it is used to flash the images <br>
on NAND flash? <br>
<br>
--Rakhi<br>
<br><div><span class="gmail_quote">On 9/29/05, <b class="gmail_sendername">Charles Manning</b> &lt;<a href="mailto:manningc2@actrix.gen.nz">manningc2@actrix.gen.nz</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Thursday 29 September 2005 01:11, Rakhi Rathi wrote:<br>&gt; Hi All,<br>&gt;<br>&gt; Is YAFFS boot loader code available under cvs directory 'direct' supports<br>&gt; mounting of root file system in read / write mode?<br>
This only allows read mode.<br><br>It is intended to support reading a boot image file, that is all.<br><br>-- Charles<br></blockquote></div><br>