[Yaffs] Problems with mkyaffs2image.c v1.5

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Guy Lancaster
Date:  
To: yaffs
Subject: [Yaffs] Problems with mkyaffs2image.c v1.5
I built a file system image using mkyaffs2image v1.5 but but won't
load. Without modifications I get numerous errors of the form:

> yaffs tragedy: Bad object type, 2 != 3, for object 1059 at chunk 8242 during scan


I'm using a Linux 2.6.33.2 kernel with what I believe is the latest
YAFFS source installed (specifically yaffs_fs.c,v 1.102) for a Samsung
S3C2440 Arm target with 128MB NAND Flash (Samsung K9F1G08X0A).

When I compile mkyaffs2image I get numerous warnings including a set
of the form:

> mkyaffs2image.c:249: warning: array subscript is above array bounds


When I enable a number of the trace flags I get:

> yaffs_ScanBackwards starts intstartblk 1 intendblk 1005...
> block is bad seq 0 state 3
> Block scanning block 1 state 3 seq 0
> Block empty
> block is bad seq 0 state 3

...

I'm wondering if the problem is that the mkyaffs2image.c needs to be
configured for the MTD layout but I don't know how to find out what
that layout is.

Suggestions?

Thanks.

-- Guy