This is the mail archive of the
ecos-devel@sources.redhat.com
mailing list for the eCos project.
Flash driver for MSys DOC2000
- From: Iztok Zupet <iz at vsr dot si>
- To: ecos-devel at sources dot redhat dot com
- Date: Wed, 5 Jun 2002 10:39:25 +0200
- Subject: Flash driver for MSys DOC2000
- Organization: VSR d.o.o.
- Reply-to: iz at vsr dot si
Hello:
Last Year I.ve written myself a DOC2000 flash driver for the PC target. It
works fine with RedBoot and the application. I partitioned the flash disk
into two partitions (one for RedBoot and one for application). The system
BIOS boots the RedBoot flash image form the first partition (disk like boot).
There's one crucial problem using such flash devices in Ecos. The Ecos
expects the device to be memory mapped for read access. So my driver
maintains a phisycal memory image of the flash disk ( on behalf of
application memory).
Up to now, it seems to me there's only one solution, namely to use virtual
memory (and page fault exeptions), to bring the required flash disk region
into memory on memory read reqest. But unfortunately the exeption handling
for the PC target isn't done yet, the only exeption handler there is GDB.
Any purposals You might have are welcome.
Thanks
iz