OK. I was interested in rewriting damaged EEPROM(ROM) inside Marvell 88i6745n.
It seems that lots of people here have solution for it, but they wont to share?!!!
Am I on wrong forum? Isn't information have to be free?
Anyway, that means that I have to find by myself solution,... if someone wants to hellp, it will be nice.
First we can use OPENOCD
http://openocd.berlios.de/Last version is 0.5.0 but I'm using 0.4.0
For those with Linux, I do not have to explain what to do.
For those with Windows, look on Google for: openocd 0.4.0 windows installer
Next we have to find some JTAG interface. Look in OPENOCD what JTAG interfaces are
supported and get one.
I'm using simple LPT Xilinx III cable which can be made at home.
CONNECTION TO Marvell 88i6745n:
---------------------------------
As you can see in my previous post there are JTAG pins:
Pins that MUST be used!
GND
TDI
TMS
CLK in
TDO
Pins that can be used or not depend on your JTAG interface!
Vcc 3.3v - for powering JTAG interface or for reference.
CLK out - for VERY FAST JTAG interface that support CLK out
RST - for JTAG interface that support RST
For Xilinx III JTAG interface only GND, TDI, TMS, CLK in, TDO, Vcc 3.3 is used!
-----------------------------------------
Starting:
--------
1. Copy to openocd\bin "feroceon.cfg" from openocd\target
2. Copy or create jtag.cfg to openocd\bin depend on your JTAG interface.
In my case for Xilinx III JTAG interface file is:
#*******************************
#daemon configuration
telnet_port 4444
gdb_port 3333
#interface
interface parport
parport_cable dlc5
parport_port 0x378
#*******************************
3. Copy to openocd\bin "putty.exe" or use your favorite telnet.
http://www.putty.org/4. In my example I used only board (removed from HDD) that have corrupted EEPROM(ROM)
2061-701499-e00 Marvell 88i6745n.
I'm not sure is it important but I have set board to test mode (First 3 pins are soldered to GND)
Connect JTAG interface to board.
Connect SATA power to board.
5. Go to openocd\bin and type: openocd.exe -f jtag.cfg.txt -f feroceon.cfg
If everything is ok you have to get something like this:

As you can see device ID is 0x259663d3 and since OPENOCD do not have appropriate loader
we can use "feroceon.cfg".
If you get ANY other error try to read OPENOCD documents!!!
6. Now run telnet. Go to openocd\bin and type: putty.exe
Once opened, in "Host name (or IP address)" type: local host
select in "Connection type" Telnet
in "Port" type: 4444
and hit "Open" button
If everything is ok, it will open new window like this:

7. In telnet type: halt
If everything is ok, it will look something like this:

That means that you have FULL controll over Marvell 88i6745n !!!
B.R.
Dejan