public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Re: Flash device IDs
@ 2002-04-22 20:31 Andries.Brouwer
  2002-04-23 12:45 ` David Woodhouse
  0 siblings, 1 reply; 5+ messages in thread
From: Andries.Brouwer @ 2002-04-22 20:31 UTC (permalink / raw)
  To: Andries.Brouwer, dwmw2; +Cc: linux-kernel, linux-mtd, mdharm-usb

David Woodhouse writes:

    Andries.Brouwer@cwi.nl said:
    > In include/linux/mtd/nand_ids.h there is some information about device
    > IDs and device properties of NAND flash devices.

    > In drivers/usb/storage/sddr09.c there is very similar information.
    > Probably both tables should be merged.

    Yes, probably. If the SDDR-09 lets you talk to the raw flash rather than 
    doing the SmartMedia format for you in hardware/firmware then that support
    probably also wants to be separated so it can be used on any hardware. 

Maybe you can look at ftp.XX.kernel.org people/aeb/*sddr09*.
I used identifiers nand_* when I thought things would be useful
for both (so that they should be outside of the usb tree).
Maybe we can find a suitable setup.

No, I am afraid this thing doesn't let me talk to raw flash,
or if it does, I have not yet discovered how.

Andries

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: Flash device IDs
@ 2002-04-23 14:04 Andries.Brouwer
  2002-04-23 14:24 ` David Woodhouse
  0 siblings, 1 reply; 5+ messages in thread
From: Andries.Brouwer @ 2002-04-23 14:04 UTC (permalink / raw)
  To: dwmw2; +Cc: linux-kernel, linux-mtd, mdharm-usb

    From: David Woodhouse <dwmw2@infradead.org>

    >  No, I am afraid this thing doesn't let me talk to raw flash, or if it
    > does, I have not yet discovered how.

    Ok... so when you issue write commands, you're pretending it's a normal
    SCSI hard drive and issuing requests with the _logical_ block numbers?
    You don't have to grok the SmartMedia format and issue _physical_
    addresses on the flash, handle ECC, the block chains, etc.?

It is worse. The commands are SCSI-like, but vendor-unique.
So one has to discover the commands and the details of the
media format. I wrote an ECC routine, and do something more
or less random for the connection between logical and physical blocks.
If you have ECC and LBA/PBA handling, then there is more to merge.

[Things are not quite straightforward. I think the media uses
512+16 byte sectors, but my SCSI commands must use 512+64 byte
sectors.][Of course 512 and 16 are variables. Don't know about 64.]

Andries

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-04-23 14:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <UTC200204111400.OAA599785.aeb@cwi.nl>
2002-04-22 16:25 ` Flash device IDs David Woodhouse
2002-04-22 20:31 Andries.Brouwer
2002-04-23 12:45 ` David Woodhouse
  -- strict thread matches above, loose matches on Subject: below --
2002-04-23 14:04 Andries.Brouwer
2002-04-23 14:24 ` David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox