[Yaffs] Using yaffs images to program NAND flash YAFFS partitions

Charles Manning manningc2@actrix.gen.nz
Thu, 24 Feb 2005 11:17:30 +1300


On Wednesday 23 February 2005 20:28, =C0=CC=C0=E5=BF=F8 wrote:
> Hi,=20
> I've learned before that when using a YAFFS image (made by mkyaffsimage=
)
> and dumping it on a NAND device, the first block of the YAFFS partition
> should be =0D not written, as the first block is reserved for YAFFS.
> But in that case, what should I do if the first block of the partition =
is
> to be marked as bad?=0D=20

It is OK for the first block to be marked bad. YAFFS does not care.
YAFFS does not use the first block at all, at present.=20

The first block is not used for two reasons:
i) I thought it would be a good idea to reserve the first block for any=20
future purpose. So far none has been found.
ii) "Block 0" in YAFFS is equivalent to the NULL pointer in C - it means=20
"invalid block".=20

-- Charles