Home

TUTORIAL Recuperar deco en "Booting" via JTAG

danilp

Usuario
Fan de OpenSPA
7 Abr 2010
185
4
0
43
Tampoco funciona en mi caso (Premium HD), he verificado con un multimetro las resistencias y el pineado, la unica cosa que he notado es algo que sale al intentar el antepenultimo comando, lo cual veran en la captura de pantalla que subi, esperemos conseguir la solucion para que sea beneficioso para todo aquel al que le pase lo mismo :( :( :(

Lo que pasa es que la pantalla de la izquierda que es la que conecta con el azbox te está dando problemas, por eso los comandos que metas por la derecha (telnet) no te van a funcionar...

Te has bajado el booting.zip y lo has descomprimido y copiado los ficheros en su lugar correspondiente machacando los que ya había?
Posteo original:

copie o arquivo azbox.cfg para /usr/local/share/openocd/scripts/board
E o smp8634.cfg para /usr/local/share/openocd/scripts/target substituindo o
original.

Nota: o azbox.cfg e smp8634.cfg contém as modificações que fiz para o programa
openocd identificar a bios do azbox e sendo assim conseguir reprogramá-la não
alterem e nem modifique o conteúdo destes 2 aquivos.

Has puesto el puerto paralelo en la bios en ECP/EPP ¿?

Saludos!
 

Doume

Usuario
Amigo OpenSPA
23 Sep 2011
31
0
0
73
Lille - France
In the documentation, about software, I read that :

cd ..
sudo cp az3.bin /usr/local/share/openocd/scripts
sudo cp smp8634.cfg /usr/local/share/openocd/scripts/target/smp8634.cfg
sudo cp azbox.cfg /usr/local/share/openocd/scripts/board/azbox.cfg

OK for az3.bin : it's into the current directory
But smp8634.cfg seems to be located there : openocd-0.4.0/tcl/target/smp8634.cfg

and I did'nt found any azbox.cfg ??????

Any tips ?
 

danilp

Usuario
Fan de OpenSPA
7 Abr 2010
185
4
0
43
We are talking about may be you need to download the file booting.zip and decompress to get the modded files of smp8634 and azbox.cfg and the bin file to write on flash.
az3.bin on the manual i write is not needed because inside the booting.zip are the goos file i write on my flash...
Download booting.zip and copy the files overwriten the existing files...try.

Sorry for my english...
 

Doume

Usuario
Amigo OpenSPA
23 Sep 2011
31
0
0
73
Lille - France
I've prepared the cable for Elite, and installed software as listed

Just a remark : the smp8634.cfg and azbox.cfg are included in file 'Booting.zip' , so you've to download this file and unzip it BEFORE to copy thoses files to /usr/local......
And their source PATH is ./Booting/smp8634.cfg
(Document needs a fix.... )

When I've started openocd, I obtain this result :

Código:
root@medion:/usr/local/share/openocd/scripts# openocd -f interface/parport_dlc5.cfg  -f board/azbox.cfg 

Open On-Chip Debugger 0.4.0 (2011-09-24-16:18)

Licensed under GNU GPL v2

For bug reports, read

http://openocd.berlios.de/doc/doxygen/bugs.html

parport port = 0x0

jtag_nsrst_delay: 100

jtag_ntrst_delay: 100

trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain

Warn : smp8634.cpu: nonstandard IR mask

Warn : use 'smp8634.cpu' as target identifier, not '0'

Info : clock speed 500 kHz

Info : JTAG tap: smp8634.cpu tap/device found: 0x08630001 (mfg: 0x000, part: 0x8630, ver: 0x0)

Info : accepting 'telnet' connection from 0

But when , in 2nd screen, I submit the commands using telnet to localhost port 4444, I obtain this in 1st screen :

Código:
Warn : target was in unknown state when halt was requested

Info : Halt timed out, wake up GDB.

Error: timed out while waiting for target halted

Command handler execution failed

Info : JTAG tap: smp8634.cpu tap/device found: 0x08630001 (mfg: 0x000, part: 0x8630, ver: 0x0)

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

target state: halted

target halted in MIPS32 mode due to debug-request, pc: 0x00000000

Info : JTAG tap: smp8634.cpu tap/device found: 0x08630001 (mfg: 0x000, part: 0x8630, ver: 0x0)

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

target state: halted

target halted in MIPS32 mode due to debug-request, pc: 0x00000000

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Info : Flash Manufacturer/Device: 0x9898 0x9898

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Could not probe bank: no QRY

Try workaround w/0x555 instead of 0x55 to get QRY.

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Could not probe bank: no QRY

Error: auto_probe failed -900



Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Info : Flash Manufacturer/Device: 0x6888 0x6888

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Could not probe bank: no QRY

Try workaround w/0x555 instead of 0x55 to get QRY.

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Could not probe bank: no QRY

Error: auto_probe failed -900



flash bank '0' not found

Command handler execution failed

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Info : Flash Manufacturer/Device: 0x4770 0x4770

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Could not probe bank: no QRY

Try workaround w/0x555 instead of 0x55 to get QRY.

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Error writing unexpected address 0xfffffffe

Error: Could not probe bank: no QRY

Command handler execution failed

shutdown command invoked

Not sure it's correct.... ????

But I decided to start the Jtag operation on 2nd screen :

Código:
root@medion:~/azbox/Booting# ./tjtag -flash:cfe /fc:104 /bypass


==============================================

EJTAG Debrick Utility v3.0.1 Tornado-MOD 

==============================================



Probing bus ... Done



Instruction Length set to 5



CPU Chip ID: 00001000011000110000000000000001 (08630001)

*** Found a SigmaDesigns SMP8634 Rev A CPU chip ***



- EJTAG IMPCODE ....... : 11111111111111111111111111111110 (FFFFFFFE)

- EJTAG Version ....... : Unknown (7 is a reserved value)

- EJTAG DMA Support ... : No

- EJTAG Implementation flags: R3k DINTsup ASID_8 ASID_6 MIPS16 NoDMA MIPS32



Issuing Processor / Peripheral Reset ... Done

Enabling Memory Writes ... Skipped

Halting Processor ... <Processor Entered Debug Mode!> ... Done

Nothing changes on screen, I'm waiting, hoping it's working....

What's your opinion ?
 

Doume

Usuario
Amigo OpenSPA
23 Sep 2011
31
0
0
73
Lille - France
Somebody could say, if something must be displayed during flash, into the screen running 'tjtag' ?

I'm still having as last message :
Halting Processor ... <Processor Entered Debug Mode!> ... Done

and nothing else after many hours !
Is it normal ?
 

Juan_Carrizo

Usuario
Amigo OpenSPA
11 Feb 2011
44
0
0
37
Bachaquero, Estado Zulia, Venezuela
Lo que pasa es que la pantalla de la izquierda que es la que conecta con el azbox te está dando problemas, por eso los comandos que metas por la derecha (telnet) no te van a funcionar...

Te has bajado el booting.zip y lo has descomprimido y copiado los ficheros en su lugar correspondiente machacando los que ya había?
Posteo original:

copie o arquivo azbox.cfg para /usr/local/share/openocd/scripts/board
E o smp8634.cfg para /usr/local/share/openocd/scripts/target substituindo o
original.

Nota: o azbox.cfg e smp8634.cfg contém as modificações que fiz para o programa
openocd identificar a bios do azbox e sendo assim conseguir reprogramá-la não
alterem e nem modifique o conteúdo destes 2 aquivos.

Has puesto el puerto paralelo en la bios en ECP/EPP ¿?

Saludos!

Si, Si, El puerto paralelo no iba en EPP??? Seria buenos screenshots como decian anteriormente de cuando funciona correctamente :)
 

evox

OpenSpa Team
Miembro del equipo
Moderador OpenSPA
2 Mar 2009
5.976
4.390
0
Como bien indica danilp el tutorial es para Premium+ y creo que el ultimo comando a enviar es distinto para los Elite y Premium, estos quedarian asi.

Premium+:

sudo ./tjtag -flash:cfe /fc:104 /bypass

Elite y Premium:

sudo ./tjtag -flash:cfe /fc:87 /bypass

Haber si con esto avanzamos.

Salu2.
 

terzic

Usuario
Amigo OpenSPA
17 Jul 2010
34
0
0
now nothing unclear which scheme applies to the elite model?
is there anyone that has successfully solved this problem with the Elite model and how ?

ahora nada claro qué régimen se aplica al modelo de elite?
hay alguien que ha resuelto con éxito este problema con el modelo Elite y cómo ?
translate on google, soory !
 

Doume

Usuario
Amigo OpenSPA
23 Sep 2011
31
0
0
73
Lille - France
Somebody could say, if something must be displayed during flash, into the screen running 'tjtag' ?

I'm still having as last message :
Halting Processor ... <Processor Entered Debug Mode!> ... Done

and nothing else after many hours !
Is it normal ?

Any answer, please ?
What would be displayed on screen ?
 

evox

OpenSpa Team
Miembro del equipo
Moderador OpenSPA
2 Mar 2009
5.976
4.390
0
Any answer, please ?
What would be displayed on screen ?

Haber si estos videos os ayudan, son de un compi brasileño o portugues pero las imagenes son lo que valen.

[YOUTUBE]http://www.youtube.com/watch?v=PcyRKR1j_lA&feature=related[/YOUTUBE]

[YOUTUBE]http://www.youtube.com/watch?v=XQb7vG1iTwM&feature=related[/YOUTUBE]

Salu2.
 

Doume

Usuario
Amigo OpenSPA
23 Sep 2011
31
0
0
73
Lille - France
Muchos gracias

With those videos, it's clear : The 1st step through telnet should work correctly, not like in my previous post

I'll recheck everything, and go further

Thanks for all
 

terzic

Usuario
Amigo OpenSPA
17 Jul 2010
34
0
0
cualquier persona que lo ha conseguido con un modelo que queremos aclarar el esquema de conexión y el proceso?
gracias

anyone that has managed this with the "elite" model that we clarify the connection scheme and the process?

thanks
 

Doume

Usuario
Amigo OpenSPA
23 Sep 2011
31
0
0
73
Lille - France
It seems openocd is'nt working, on my Linux PC
On video, he uses Windows to run openocd and telnet session ? I'm really confused....
 

Doume

Usuario
Amigo OpenSPA
23 Sep 2011
31
0
0
73
Lille - France
I've checked parallel port in BIOS : Sure it's in EPP mode
I've checked the cable between DB25 and JTAG connector on Elite : All is OK

But when I run openocd and telnet session, nothing works like in video

I suspect the config files provided in packages are'nt OK for an Elite model

And when running tjtag, the following is different from video :
Código:
- EJTAG IMPCODE ....... : 11111111111111111111111111111110 (FFFFFFFE)
- EJTAG Version ....... : Unknown (7 is a reserved value)

Something is probably wrong into cable, or Linux driver.....



Google translation :

He comprobado el puerto paralelo en el BIOS: Claro que es en el modo EPP
He comprobado el cable entre DB25 JTAG y en Elite: todo está bien

Pero cuando corro sesión openocd y telnet, nada funciona como en el video

Sospecho que los archivos de configuración se entregan en paquetes are'nt bien para un modelo de Elite
 

Doume

Usuario
Amigo OpenSPA
23 Sep 2011
31
0
0
73
Lille - France
To be sure, I made a try of OpenOCD using Windows XP, like on demo video

The result is a bit different than Ubuntu, when starting openOCD, but that does'nt work, too :

Código:
C:\Program Files\OpenOCD\0.4.0>openocd -f interface/parport_dlc5.cfg -f board/azbox.cfg



Open On-Chip Debugger 0.4.0 (2010-02-22-19:05)

Licensed under GNU GPL v2

For bug reports, read

http://openocd.berlios.de/doc/doxygen/bugs.html

parport port = 0x0

jtag_nsrst_delay: 100

jtag_ntrst_delay: 100

trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain

Warn : smp8634.cpu: nonstandard IR mask

Warn : use 'smp8634.cpu' as target identifier, not '0'

Warn : No parport port specified, using default '0x378' (LPT1)

Info : clock speed 500 kHz

Error: JTAG scan chain interrogation failed: all zeroes

Error: Check JTAG interface, timings, target power, etc.

Error: JTAG scan chain interrogation failed: all zeroes

Error: Check JTAG interface, timings, target power, etc.

Command handler execution failed

Warn : jtag initialization failed; try 'jtag init' again.

My conclusion for now : The procedure, or the cabling, are not usable with Elite :blink:

Google translation :

Por cierto, he hecho un intento de OpenOCD utilizando Windows XP, al igual que en el vídeo de demostración

El resultado es un poco diferente de Ubuntu, al iniciar openOCD, pero que me cansaría de trabajo, también:

Mi conclusión por ahora: el procedimiento, o del cableado, no se pueden usar con Elite
 

danilp

Usuario
Fan de OpenSPA
7 Abr 2010
185
4
0
43
Aseguraros de sobreescribir los ficheros co los de booting.zip.... alguien que lo pruebe en premium+¿?
 

Juan_Carrizo

Usuario
Amigo OpenSPA
11 Feb 2011
44
0
0
37
Bachaquero, Estado Zulia, Venezuela
Aseguraros de sobreescribir los ficheros co los de booting.zip.... alguien que lo pruebe en premium+¿?

Si mi pana, los sobreescribo en sus carpetas correspondientes smp8634.cfg en /usr/local/share/openocd/scripts/target/ y azbox.cfg en /usr/local/share/openocd/scripts/board/ aparentemente hay que adaptarlo a nuestros decos, mmm voy a ver si busco un tecnico en electronica para soldarle el par de resistencias SMD 103 = 10000 Mega Onmios y intentarlo segun el tuto brasileño, mas bien no se como pude soldar en RPG 1 y 2 :lol: :lol: :lol:
 

Doume

Usuario
Amigo OpenSPA
23 Sep 2011
31
0
0
73
Lille - France
I've tested an another PC, to be sure the parallel port was'nt the source of problem : Same result !

I think the following message :
Código:
Error: Error writing unexpected address 0xfffffffe

signifies something is wrong into cabling or clocking on interface : Datas are strobed to "FFFFF" (all "1" ) , instead valid addresses
 

Clemente

Usuario Destacado
Vip OpenSPA
13 Jul 2009
8.481
1.360
0
72
Murcia
esta mañana he ido a comprar todos los componentes y a la hora de comr las 8 resisitencias de 120 ohmios me dice el voltaje con que las quiero, ya que hay de varios voltajes , me gustaria que me dijerais cual tiene que ser y por lo que estoy leyendo ese puede ser uno de los problemas, muchas gracias y salu2