A pair of stupid questions, I hope

Ian S. Nelson ian.nelson at echostar.com
Tue Apr 17 20:04:57 EDT 2001


David Woodhouse wrote:

> ian.nelson at echostar.com said:
> > My manufacturing people want a test that responds yes or no to the
> > question "is this sector locked?"
>
> > This seems like it should be pretty easy, but where and how do I
> > determine that? Is it something that is stored in the mem_region?
> > There are lock and unlock ioctls but it's not obvious to me how to
> > query if a sector is locked? What is the proper way to do this?
>
> Yeah, we should support that, but we currently don't have an API for it, and
> obviously that means there's no code to do it for any of the currently
> supported chipsets. Fairly trivial to do though. I'm not feeling inventive
> tonight. Propose an API extension and if it offends my sensibilities I'll
> have to think of something myself.

I'll ask the guys who need it.  I suspect the proposal would be an ISLOCKED
ioctl that takes a region as an argument and returns a 0 or 1.   I'm a flash
novice though, is this something that should go in to one of those region
structures?


> ian.nelson at echostar.com said:
> >  It's looking more and more like we're going to move from 2MB to a 4MB
> > flash.  Supposedly the 4MB is banked and it's some Toshiba part that
> > isn't listed in the code as supported yet.  Do we already support
> > anything like that?  It looks easy enough to add support for a new
> > part and I'm eager to give it a try but I don't know about this
> > convoluted banking thing.  Any advice?
>
> If it's a NOR part it ought to be fairly trivial. If it's NAND, supporting
> the part itself shouldn't be too hard, but JFFS2 doesn't work safely on it
> yet. JFFS should, although I haven't tried it myself. And obviously you
> can't boot from NAND flash unless you have an external ROM or NOR flash
> somewhere for the CPU power-up vector.

That simplifies it because we will be booting off this flash.  Thanks for the
feedback though, I'll ping our hardware guys and make sure we're heading down
the right path.

Ian




To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org



More information about the linux-mtd mailing list