pace4000 jtag

After having success finding the jtag pads on an old router, I turned my attention to some of the other old kit I have lying around. I'd had the lid off the Virgin-branded, Pace 4000 set top box previously and noticed that it had a handful of unpopulated headers on the board. The nine closest to the CPU seemed most promising, so after soldering some pins, checking the voltages (all within 3.3v) and for ground, I attached my arduino mega running jtagenum. It found this:

# JTAG colour
9 TDO red
7 TCK blue
5 TMS green
3 TDI pink
Using openocd I was able to hack together this config file for the Conexant 'MPEG II DECODER' ARM chip:
set _CHIPNAME conexantarm
set _CPUID 0x10940027
jtag newtap $_CHIPNAME cpu -expected-id $_CPUID -irlen 4
set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME arm920t -endian little -chain-position $_TARGETNAME
Dumping from 0x0, the first 256 bytes:
lee@monkeybox ~/Downloads/openocd/openocd $ hexdump -C pace-virgin.bin | less
00000000 18 f0 9f e5 18 f0 9f e5 18 f0 9f e5 18 f0 9f e5 |................|
*
00000020 08 01 00 00 78 01 00 00 84 01 00 00 f4 01 00 00 |....x...........|
00000030 00 02 00 00 0c 02 00 00 18 02 00 00 24 02 00 00 |............$...|
00000040 2e 97 a0 a9 ba f4 a7 d4 30 5f 80 35 0e c3 bc 77 |........0_.5...w|
00000050 7c 57 55 68 dc 59 be f6 24 ae d1 52 85 62 c7 8d ||WUh.Y..$..R.b..|
00000060 83 e2 75 03 75 29 e6 11 00 00 04 00 fc ff 03 00 |..u.u)..........|
00000070 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 |... ............|
00000080 08 08 00 00 00 00 00 00 00 00 6c 6f 61 64 65 72 |..........loader|
00000090 00 00 00 5f 37 37 37 37 37 37 37 37 37 37 37 37 |..._777777777777|
000000a0 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 |7777777777777777|
000000b0 37 37 37 37 37 37 37 37 37 37 37 37 2b f7 9f f4 |777777777777+...|
000000c0 4e 54 4c 20 4c 6f 61 64 65 72 20 56 31 2e 39 20 |NTL Loader V1.9 |
000000d0 52 65 6c 65 61 73 65 00 00 00 00 00 00 00 00 00 |Release.........|
000000e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
And through 'strings' (anyone else think the passcode for 'ENGINEERING MODE' might be '0000'? ;) ):
Stopping off air download
Paul's debug loader
BUILDING FAT:
Ethernet Download Not Avaliable
Changing to serial download
Serial Download
Skipping Download
RUN PLATFORM
FAIL
Invalid platform flash is set. Deleting non platform objects
Deleted flash object of type
Failed to delete flash object, error is
pstHeader is
Object size is
CRC offset is
*****************************************************************
PRIMARY LOADER
Ldr
Err1
RAM Fail
Err2
**********NVRAM Fail***********
Err3
FLASH Fail
Er40
Cache Initialise Fail
LED Initialise Fail
PACE
Key Initialise Fail
I2C Initialise Fail
Graphics Initialise Fail
DENC Initialise Fail
SCART Initialise Fail
REMOD Initialise Fail
Engineering mode
Failed to read keys
ENGINEERING MODE:
0000
0000