nandsim configuration question
Tanya Brokhman
tlinder at codeaurora.org
Sun Apr 20 04:52:21 PDT 2014
Hi
I'm trying to use the nandsim but unfortunately encountered some
difficulties in configuring it. I need to simulate mtd device with the
following parameters:
Eraseblock size: 131072 bytes, 128.0 KiB
Minimum input/output unit size: 2048 bytes
Sub-page size: 2048 bytes
OOB size: 64 bytes
Bad blocks are allowed: true
Device is writable: true
Default UBI VID header offset: 2048
Default UBI data offset: 4096
Default UBI LEB size: 126976 bytes, 124.0 KiB
Maximum UBI volumes count: 128
I can't figure out how to set sub-page size to 2048. Or basically - how
to disable sub-page support?
I found only usage examples so I'm using the following command:
modprobe nandsim first_id_byte=0x20 second_id_byte=0xaa
third_id_byte=0x00 fourth_id_byte=0x15 overridesize=12
cache_file=cashe_file.txt
the mtd device created is:
Name: NAND simulator partition 0
Type: nand
Eraseblock size: 131072 bytes, 128.0 KiB
Amount of eraseblocks: 4096 (536870912 bytes, 512.0 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size: 512 bytes
OOB size: 64 bytes
Bad blocks are allowed: true
Device is writable: true
Default UBI VID header offset: 512
Default UBI data offset: 2048
Default UBI LEB size: 129024 bytes, 126.0 KiB
Maximum UBI volumes count: 128
How do I set sub-page size to 2048?
Thanks!
Tanya Brokhman
--
QUALCOMM ISRAEL, on behalf of Qualcomm Innovation Center, Inc. is a member
of Code Aurora Forum, hosted by The Linux Foundation
More information about the linux-mtd
mailing list