From: Andries.Brouwer@cwi.nl
To: dwmw2@infradead.org
Cc: linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org,
mdharm-usb@one-eyed-alien.net
Subject: Re: Flash device IDs
Date: Tue, 23 Apr 2002 16:04:01 +0200 (MEST) [thread overview]
Message-ID: <UTC200204231404.g3NE41414336.aeb@smtp.cwi.nl> (raw)
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
next reply other threads:[~2002-04-23 14:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-23 14:04 Andries.Brouwer [this message]
2002-04-23 14:24 ` David Woodhouse
-- strict thread matches above, loose matches on Subject: below --
2002-04-22 20:31 Andries.Brouwer
2002-04-23 12:45 ` David Woodhouse
2002-04-11 14:00 Andries.Brouwer
2002-04-22 16:25 ` David Woodhouse
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=UTC200204231404.g3NE41414336.aeb@smtp.cwi.nl \
--to=andries.brouwer@cwi.nl \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=mdharm-usb@one-eyed-alien.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®