[Yaffs] Using YAFFS2 image from mkyaffs2image with MTD utili…

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Voser, Peter
Date:  
To: yaffs@lists.aleph1.co.uk
Subject: [Yaffs] Using YAFFS2 image from mkyaffs2image with MTD utility nandwrite
Hello,

I saw several other questions to this topic, but I can't make it run...

I would like to create a YAFFS image using mkyaffs2image for creation and the MTD utility nandwrite for programming under 2.6.22.18:

$mkyaffs2image testdir yaffs2.img
$nandwrite -a -o yaffs2.img /dev/mtd5

After mounting, the device has no checkpoint and is empty (only "lost+found" visible).

What I tried out:
1) I already tried the mkyaffs2image patch with the new oob_ecc_size (=14) parameter from here http://www.aleph1.co.uk/lurker/message/20070912.140012.12f2d093.en.html .
2) Also I already wanted to try the yaffs_mtdif2.c in the patches folder - but it doesn't compile with my 2.6.22.18 MTD environment. Anybody has a newer version?

Any other ideas?

Thank you very much,
Peter Voser