* NAND simulator
@ 2005-12-08 12:07 Artem B. Bityutskiy
2005-12-10 22:28 ` Charles Manning
0 siblings, 1 reply; 5+ messages in thread
From: Artem B. Bityutskiy @ 2005-12-08 12:07 UTC (permalink / raw)
To: Linux MTD
Hello,
I'm going to rework NAND simulator (nandsim, drivers/mtd/nand/nandsim.c)
to add the following functionality:
1. Emulation of devices larger then 128MB
2. Possibility to manually specify any page size/eraseblock size/flash size.
I am going to remove flash delays emulation as it appears to be
unusable. No objections?
If there are some additional offers, please, provide.
--
Best Regards,
Artem B. Bityutskiy,
St.-Petersburg, Russia.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: NAND simulator
2005-12-08 12:07 NAND simulator Artem B. Bityutskiy
@ 2005-12-10 22:28 ` Charles Manning
2005-12-11 13:46 ` Artem B. Bityutskiy
0 siblings, 1 reply; 5+ messages in thread
From: Charles Manning @ 2005-12-10 22:28 UTC (permalink / raw)
To: linux-mtd; +Cc: Artem B. Bityutskiy
On Friday 09 December 2005 01:07, Artem B. Bityutskiy wrote:
> Hello,
>
> I'm going to rework NAND simulator (nandsim, drivers/mtd/nand/nandsim.c)
> to add the following functionality:
>
> 1. Emulation of devices larger then 128MB
Yes please.
> 2. Possibility to manually specify any page size/eraseblock size/flash
> size.
Double yes please! The current way of doing things is very hard to use
effectively and you need to hack quite a few places to make a useful
simulation.
The current approach of simulating a physical device is probably good for
testing nand.c, but it is not so great for testing file systems. If I want to
test, for example, a file system on an arrangement of say 350MB then I have
to go through some crazy steps like making up a fake device id and fake the
chip id to give what I want. I think a more direct approach of just inserting
a set of size parameters is far better.
>
> I am going to remove flash delays emulation as it appears to be
> unusable. No objections?
Yup, I don't see much point in trying to simulate the timing. In reality
nandsim is only really there for algorithmic testing and not time
simulations.
>
> If there are some additional offers, please, provide.
I assume you mean requests :-). If so, I have a question/request.
Can nandsim simulate storage larger than physical RAM (just swapping out) or
would this need special support (eg. add some block device support? We're
getting people in YAFFSland who are working with 8Gbytes of flash (and it
will only get bigger!) and I expect you'd want large emulations to stress
JFFS3. Being able to simulate areas up to, say, 16Gbytes for now would be a
nice thing.
A way of simulating a failure (bit flip, write error) would also be handy for
testing fs and ecc error handling.
Tell me if you need a guinea pig.
-- Charles
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: NAND simulator
2005-12-10 22:28 ` Charles Manning
@ 2005-12-11 13:46 ` Artem B. Bityutskiy
2005-12-11 17:53 ` Charles Manning
0 siblings, 1 reply; 5+ messages in thread
From: Artem B. Bityutskiy @ 2005-12-11 13:46 UTC (permalink / raw)
To: Charles Manning; +Cc: Linux MTD
Charles Manning wrote:
> Yes please.
Uhh, will pospone this for now, will try to repair JFFS2 which doesn't
work after the last month's commits. Crud! Not sure whom to blame so far.
> Can nandsim simulate storage larger than physical RAM (just swapping out) or
> would this need special support (eg. add some block device support? We're
> getting people in YAFFSland who are working with 8Gbytes of flash (and it
> will only get bigger!) and I expect you'd want large emulations to stress
> JFFS3. Being able to simulate areas up to, say, 16Gbytes for now would be a
> nice thing.
Well, did not plan it. But we probably may add this functionality. We
may borrow it from mtd2blk ...
> A way of simulating a failure (bit flip, write error) would also be handy for
> testing fs and ecc error handling.
Yeah, good feature. But I'm not sure how to implement an interface for
this. It is probably easier to hack nandsim and add this manually...
--
Best Regards,
Artem B. Bityutskiy,
St.-Petersburg, Russia.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: NAND simulator
2005-12-11 13:46 ` Artem B. Bityutskiy
@ 2005-12-11 17:53 ` Charles Manning
2005-12-11 22:07 ` Josh Boyer
0 siblings, 1 reply; 5+ messages in thread
From: Charles Manning @ 2005-12-11 17:53 UTC (permalink / raw)
To: Artem B. Bityutskiy; +Cc: Linux MTD
On Monday 12 December 2005 02:46, Artem B. Bityutskiy wrote:
> Charles Manning wrote:
> > Yes please.
>
> Uhh, will pospone this for now, will try to repair JFFS2 which doesn't
> work after the last month's commits. Crud! Not sure whom to blame so far.
>
> > Can nandsim simulate storage larger than physical RAM (just swapping out)
> > or would this need special support (eg. add some block device support?
> > We're getting people in YAFFSland who are working with 8Gbytes of flash
> > (and it will only get bigger!) and I expect you'd want large emulations
> > to stress JFFS3. Being able to simulate areas up to, say, 16Gbytes for
> > now would be a nice thing.
>
> Well, did not plan it. But we probably may add this functionality. We
> may borrow it from mtd2blk ...
>
> > A way of simulating a failure (bit flip, write error) would also be handy
> > for testing fs and ecc error handling.
>
> Yeah, good feature. But I'm not sure how to implement an interface for
> this. It is probably easier to hack nandsim and add this manually...
Manual hacking does work. I have done stuff like that in the past. Perhaps
dynamic hacking could be done via procfs?
eg, perhaps somethiong like
echo "flip 12345 400 1" > /procfs/nandsim # flip bit 1 in byte 400, page
12345
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: NAND simulator
2005-12-11 17:53 ` Charles Manning
@ 2005-12-11 22:07 ` Josh Boyer
0 siblings, 0 replies; 5+ messages in thread
From: Josh Boyer @ 2005-12-11 22:07 UTC (permalink / raw)
To: Charles Manning; +Cc: Artem B. Bityutskiy, Linux MTD
On 12/11/05, Charles Manning <manningc2@actrix.gen.nz> wrote:
> On Monday 12 December 2005 02:46, Artem B. Bityutskiy wrote:
> > Charles Manning wrote:
> > > Yes please.
> >
> > Uhh, will pospone this for now, will try to repair JFFS2 which doesn't
> > work after the last month's commits. Crud! Not sure whom to blame so far.
> >
> > > Can nandsim simulate storage larger than physical RAM (just swapping out)
> > > or would this need special support (eg. add some block device support?
> > > We're getting people in YAFFSland who are working with 8Gbytes of flash
> > > (and it will only get bigger!) and I expect you'd want large emulations
> > > to stress JFFS3. Being able to simulate areas up to, say, 16Gbytes for
> > > now would be a nice thing.
> >
> > Well, did not plan it. But we probably may add this functionality. We
> > may borrow it from mtd2blk ...
> >
> > > A way of simulating a failure (bit flip, write error) would also be handy
> > > for testing fs and ecc error handling.
> >
> > Yeah, good feature. But I'm not sure how to implement an interface for
> > this. It is probably easier to hack nandsim and add this manually...
>
> Manual hacking does work. I have done stuff like that in the past. Perhaps
> dynamic hacking could be done via procfs?
> eg, perhaps somethiong like
> echo "flip 12345 400 1" > /procfs/nandsim # flip bit 1 in byte 400, page
> 12345
Sysfs would be better. Or debugfs if you really want to be "Right
(tm)". But the general idea is good.
josh
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-12-11 22:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-08 12:07 NAND simulator Artem B. Bityutskiy
2005-12-10 22:28 ` Charles Manning
2005-12-11 13:46 ` Artem B. Bityutskiy
2005-12-11 17:53 ` Charles Manning
2005-12-11 22:07 ` Josh Boyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox