?>/script>'; } ?> JTAG para Huawei HG622 Widgets Magazine

Autor Tema: JTAG para Huawei HG622  (Leído 4690 veces)

0 Usuarios y 1 Visitante están viendo este tema.

zorrua

  • Visitante
JTAG para Huawei HG622
« en: 11-09-2013, 11:29 (Miércoles) »
Hola a todos.

Estoy intentando hacer un backup de "cal_data" del router Huawei HG622 mediante JTAG. Me he comprado un adaptador USB Altera:

Código: [Seleccionar]
Bus 001 Device 004: ID 09fb:6001 Altera Blaster
He conectado los pines como me ha dicho gmtii en este hilo: https://foro.seguridadwireless.net/openwrt/(desarrollo)-openwrt-en-huawei-hg622/msg286905/#msg286905

Mi OS es Debian Jessie, he instalado el software "urjtag". Este es el error que me da al meter el primer comando:

Código: [Seleccionar]
$ jtag

UrJTAG 0.10 #2007
Copyright (C) 2002, 2003 ETC s.r.o.
Copyright (C) 2007, 2008, 2009 Kolja Waschk and the respective authors

UrJTAG is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
There is absolutely no warranty for UrJTAG.

warning: UrJTAG may damage your hardware!
Type "quit" to exit, "help" for help.

jtag> cable usbblaster
error: Couldn't connect to suitable USB device.
error: ftdi/ftd2xx error: ftdi_usb_open_desc() failed: device not found
jtag> cable usbblaster
error: Couldn't connect to suitable USB device.
error: ftdi/ftd2xx error: ftdi_usb_open_desc() failed: device not found
jtag>

Esto lo hago con el router en marcha, los comandos son los que me paso gmtii en este post: https://foro.seguridadwireless.net/openwrt/(desarrollo)-openwrt-en-huawei-hg622/msg283578/#msg283578

Es la primera vez que utilizo un JTAG, ¿me podeis ayudar con esto?

Muchas gracias por todo.

Saludos.

zorrua

  • Visitante
Re: JTAG para Huawei HG622
« Respuesta #1 en: 11-09-2013, 11:57 (Miércoles) »
Hola de nuevo.

He probado a ejecutar "jtag" como root y ya no me da ese error, pero me sigue fallando:

Código: [Seleccionar]
# jtag

UrJTAG 0.10 #2007
Copyright (C) 2002, 2003 ETC s.r.o.
Copyright (C) 2007, 2008, 2009 Kolja Waschk and the respective authors

UrJTAG is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
There is absolutely no warranty for UrJTAG.

warning: UrJTAG may damage your hardware!
Type "quit" to exit, "help" for help.

jtag> cable usbblaster
Connected to libftdi driver.
jtag> endian big
jtag> detect
IR length: 5
Chain length: 1
Device Id: not supported (bit 0 was not a 1)
Error: Unable to detect JTAG chain end!
jtag>

Estoy un poco perdido, siguire buscango mas.

Gracias.

zorrua

  • Visitante
Re: JTAG para Huawei HG622
« Respuesta #2 en: 11-09-2013, 13:20 (Miércoles) »
Hola.

Creo que ya lo tengo, he seguido los comandos uno a uno y al final me genera un fichero de 512 bytes:

Código: [Seleccionar]
# jtag

UrJTAG 0.10 #2007
Copyright (C) 2002, 2003 ETC s.r.o.
Copyright (C) 2007, 2008, 2009 Kolja Waschk and the respective authors

UrJTAG is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
There is absolutely no warranty for UrJTAG.

warning: UrJTAG may damage your hardware!
Type "quit" to exit, "help" for help.

jtag> cable usbblaster
Connected to libftdi driver.
jtag> endian big
jtag> detect
IR length: 5
Chain length: 1
Device Id: not supported (bit 0 was not a 1)
Error: Unable to detect JTAG chain end!
jtag> register BR 1
jtag> register DIR 32
jtag> register EJIMPCODE 32
jtag> register EJADDRESS 32
jtag> register EJDATA 32
jtag> register EJCONTROL 32
jtag> register EJALL 96
jtag> instruction length 5
jtag> instruction BYPASS 11111 BR
jtag> instruction IDCODE 00001 DIR
jtag> instruction EJTAG_IMPCODE 00011 EJIMPCODE
jtag> instruction EJTAG_ADDRESS 01000 EJADDRESS
jtag> instruction EJTAG_DATA 01001 EJDATA
jtag> instruction EJTAG_CONTROL 01010 EJCONTROL
jtag> instruction EJTAG_ALL 01011 EJALL
jtag> instruction IDCODE
jtag> shift ir
jtag> shift dr
jtag> dr
00000110001101101000000101111111 (0x0636817F)
jtag> initbus ejtag
ImpCode=00000000100000011000100100000100 00818904
EJTAG version: <= 2.0
EJTAG Implementation flags: R4k MIPS16 DMA MIPS32
Processor entered Debug Mode.
jtag> readmem 0x38FA0000 0x200 RT2X00_HG622.bin
address: 0x38FA0000
length:  0x00000200
reading:
addr: 0x38FA0200
Done.
jtag>

¿me podeis confirmar que ya estan a salvo los datos?

Me quiero asegurar antes de meter la imagen openwrt al router.

Muchas gracias por todo.

Saludos.

gmtii

  • Visitante
Re: JTAG para Huawei HG622
« Respuesta #3 en: 12-09-2013, 10:51 (Jueves) »
pon el fichero en algún sitio para verlo y te digo

zorrua

  • Visitante
Re: JTAG para Huawei HG622
« Respuesta #4 en: 12-09-2013, 11:35 (Jueves) »
pon el fichero en algún sitio para verlo y te digo

Te lo envio por privado.

Gracias por todo.

Saludos.