From: "David H. Lynch Jr." <dhlii@dlasys.net>
To: linux-mtd@lists.infradead.org
Subject: cfi_probe geometry problem
Date: Thu, 20 Nov 2008 12:02:23 -0500 [thread overview]
Message-ID: <4925981F.2000509@dlasys.net> (raw)
I am having difficulty getting cfi_probe working for the flash in my
board.
I am trying to complete a map driver for Spansion S29GL512N NOR
flash in Pico cards.
The flash shared between two CPU's so a mapping driver is required
to enable and disable it.
I have most of the driver code working and after setting up data
structures in probe I can issue a QRY as
d.x[0] = 0xf0;
(map->write) (map, d, 0);
d.x[0] = 0xff;
(map->write) (map, d, 0);
d.x[0] = 0x98;
(map->write) (map, d, 0x55);
pico_flash_copy_from(map, &buf, 0 , 64);
if(buf[0x20] != 'Q' && buf[0x22] != 'R' && buf[0x24] != 'Y')
DBG("Flash Error QRY failed\n");
else
DBG("Flash QRY %d\n");
However cfi_probe fails. this seems to be some type of geometry
issue. When I watch CFI probe it either sends the query request to the
wrong addresses, or it checks the wrong addresses for the results.
A clue would be appreciated.
--
Dave Lynch DLA Systems
Software Development: Embedded Linux
717.627.3770 dhlii@dlasys.net http://www.dlasys.net
fax: 1.253.369.9244 Cell: 1.717.587.7774
Over 25 years' experience in platforms, languages, and technologies too numerous to list.
"Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction."
Albert Einstein
reply other threads:[~2008-11-20 17:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=4925981F.2000509@dlasys.net \
--to=dhlii@dlasys.net \
--cc=linux-mtd@lists.infradead.org \
/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