Re: [Yaffs] Using yaffs images to program NAND flash YAFFS p…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: ÀÌÀå¿ø, yaffs
Subject: Re: [Yaffs] Using yaffs images to program NAND flash YAFFS partitions
On Wednesday 23 February 2005 20:28, ÀÌÀå¿ø wrote:
> Hi,
> 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 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?


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.

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
future purpose. So far none has been found.
ii) "Block 0" in YAFFS is equivalent to the NULL pointer in C - it means
"invalid block".

-- Charles