[Yaffs] How to partition a Nandsim?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Bounlith Sirivong
Date:  
To: yaffs
Subject: [Yaffs] How to partition a Nandsim?
Hello,

I have dumped the contents of a flash NAND partition of an Android device, using nanddump. I would like to write the dump to a Nandsim on a Linux computer with nandwrite. What I notice is that if the size of the Nandsim is not the same as the size of the dump image, mounting the Nandsim shows no other file than the directory lost+found.

So I would like to set the size of the Nandsim. But if I understand well, Nandsim uses hardcoded defined sizes with the parameters first_id_byte, second_id_byte, third_id_byte and fourth_id_byte. The size of my dumped image is 150 MiB. Is it possible to partition the Nandsim to this custom size? Or is it possible to give an arbitrary size when loading the nandsim module? I have tried fdisk, parted, gparted without success.

Thanks.

Bounlith.