Re: [Yaffs] Yaffs mount

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: kelvin
Date:  
To: yaffs
Subject: Re: [Yaffs] Yaffs mount
I found that I used modprobe nandsim first_id_byte=0x20 second_id_byte=0xa2
third_id_byte=0x00 fourth_id_byte=0x15...Always get the only one simulator.I
have try to change the four id number.
([ 205.577601] NAND device: Manufacturer ID: 0x98, Chip ID: 0x39 (Toshiba
NAND 128MiB 1,8V 8-bit), 128MiB, page size: 512, OOB size: 16
[ 205.577615] flash size: 128 MiB
[ 205.577616] page size: 512 bytes
[ 205.577617] OOB area size: 16 bytes
[ 205.577618] sector size: 16 KiB
[ 205.577620] pages number: 262144
[ 205.577621] pages per sector: 32
)
And I use mkyaffs2image which I compiler by myself.At the very begining,I did
not adjust the defination of(chunkSize,spareSize,pagesPerBlock in
/yaffs2/utils/mkyaffs2image.c) to the simulator nand flash.

But I try to change the size of spareSize to OOB area size which is 16bytes.I
stalled by an error.
After I changed it and make an new tool(mkyaffs2image).
commad:
mkyaffs2image hello hello.image
Error:
mkyaffs2image: mkyaffs2image.c:183: shuffle_oob: Assertion `sizeof(*pt) <= 16'
failed.
Object 257, hello/unyaffs is a file, Aborted (core dumped)

I want to know does yaffs2 cannot use the OOB size is 16?
And how can I get a simulator with a different chunkSize and spareSize?

Thank you.