Re: Flash programming with rtl8139
Markus Schlotterer <[email protected]> Fri, 15 Aug 2003 10:27:29 +0200
| Newsgroups | gmane.linux.drivers.realtek.devel |
|---|---|
| Message-ID | <[email protected]> |
Donald Becker wrote: > On Thu, 14 Aug 2003, Markus Schlotterer wrote: > > >>I tried to flash an AMD Am29F010B flash rom using a noname NIC with >>RTL8139C chip. The tool provided bei Realtek (rtflash.exe) didn't work >>because the AMD flash is not know. >>Then I tried the rtl8139-diag tool. At first it didn't even recognize >>the chips ids correctly. Then I found a patch by Mikkel Lauritsen >>(http://www.scyld.com/pipermail/realtek/2001-August/001070.html) and >>after applying this patch, everything worked correctly. > > > What part of the patch did you apply? > The first part, using register 0xD4 instead of 0x54, was added in > rtl8139-diag.c for v2.5 of January 2002. The 0x54 value is only correct > for the original chips, but it seems that few boards with old chips have flash > sockets so I didn't bother selecting the register offset based on chip > version. > > Did you also need the other part of that patch, which does some extra > toggling of the chip select bits? If so, let me know. This might be > Flash-chip-specific, but the only way to know for certain is to see who > else complains. > The usage of register 0xD4 is already in the current version of rtl8139-diag.c. But i also needed the part with toggling of the chip select bits. In the AMD data sheet it is written: "To write a command or command sequence the system must drive WE# and CE# to VIL, and OE# to VIH." The data sheet can be found at http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/22336c1.pdf