Jtag 6 pins por jubamo
publicado por jubamo, en el foro el rincon del sl 65:
Pues eso que acabo de conseguir empezar a leer la flash del SL65 con ALI M3329 por el Jtag de 6 pines.
Es nuestro,
CABLE:
resistencia de 100 ohm a cada uno exceto la masa.
pc a deco: 5 TRST; 2 TDI; 13 TDO; 4 TMS; 3 TCK; la masa como en todos a GND.
PROGRAMA:
h**p://downloads.openwrt.org/utils/HairyDairyMaid_WRT54G_Debrick_Utility_v48.zip
coger el archivo wrt54g.c
ir a linea 796.
y donde pone esto:
// Reading an instruction from our module so fetch the instruction from the module
offset = (address - MIPS_DEBUG_VECTOR_ADDRESS) / 4;
data = *(unsigned int *)(pmodule + offset);
añadir lo del if
// Reading an instruction from our module so fetch the instruction from the module
offset = (address - MIPS_DEBUG_VECTOR_ADDRESS) / 4;
if (offset > 0xfff) offset = 0;
data = *(unsigned int *)(pmodule + offset);
quitar las dos barras del princpio si estais compilando en windows linea 148
// #define WINDOWS_VERSION // uncomment only this for Windows Compile / MS Visual C Compiler
se queda asi
#define WINDOWS_VERSION // uncomment only this for Windows Compile / MS Visual C Compiler
compilar
(lo siento no uso windows).
Abrir el deco cambiar de sitio el puente que esta al lado de la ram (modo debug) conectar cables y encenderlo.
ejecutar asi:
wrt54g -backup:wholeflash /skipdetect /fc:1 /instrlen:5
No he intentado borrar ni flashear, pues mi deco esta vivo.
Saludos.
[B]publicado por jubamo el 15/05/07
[/B]
Pd : creo que es interesante lo cuelgo aqui.
|