A pair of stupid questions, I hope

David Woodhouse dwmw2 at infradead.org
Tue Apr 17 18:11:57 EDT 2001


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.


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.

--
dwmw2




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



More information about the linux-mtd mailing list