9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] jtag: almost there....
@ 2011-01-03  1:25 Gorka Guardiola
  2011-01-03  2:10 ` erik quanstrom
  0 siblings, 1 reply; 2+ messages in thread
From: Gorka Guardiola @ 2011-01-03  1:25 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 323 bytes --]

There are still some (hopefully minor) issues, but I have fully
implemented all that
is needed to use jtag. I can now freeze a plug on demand, make it dump
registers or memory
and continue executing.

I'll finish cleaning up and start with the filesystem. For the
adventurous there is
a tar in my contrib...

G.

[-- Attachment #2: log --]
[-- Type: application/octet-stream, Size: 5387 bytes --]


term% /usr/paurea/src/jtag/8.mpssetest -d cef  jtag
Flush 3
Flush 3
Flush 3
Flush 1
Flush 3
Flush 145
Reading 129
Read 129
0xd3 0x23 0xa0 0x20 0x00 0x01 0x02 0x03 
0x04 0x05 0x06 0x07 0x08 0x09 0x0a 0x0b 
0x0c 0x0d 0x0e 0x0f 0x10 0x11 0x12 0x13 
0x14 0x15 0x16 0x17 0x18 0x19 0x1a 0x1b 
0x1c 0x1d 0x1e 0x1f 0x20 0x21 0x22 0x23 
0x24 0x25 0x26 0x27 0x28 0x29 0x2a 0x2b 
0x2c 0x2d 0x2e 0x2f 0x30 0x31 0x32 0x33 
0x34 0x35 0x36 0x37 0x38 0x39 0x3a 0x3b 
0x3c 0x3d 0x3e 0x3f 0x40 0x41 0x42 0x43 
0x44 0x45 0x46 0x47 0x48 0x49 0x4a 0x4b 
0x4c 0x4d 0x4e 0x4f 0x50 0x51 0x52 0x53 
0x54 0x55 0x56 0x57 0x58 0x59 0x5a 0x5b 
0x5c 0x5d 0x5e 0x5f 0x60 0x61 0x62 0x63 
0x64 0x65 0x66 0x67 0x68 0x69 0x6a 0x6b 
0x6c 0x6d 0x6e 0x6f 0x70 0x71 0x72 0x73 
0x74 0x75 0x76 0x77 0x78 0x79 0x7a 0xed 
0xfb 
ID: 0x20a023d3
Must be 1: 1
Manufacturer id: 0x1e9
Part no: 0xa02
Version: 0x2
---- Cpuid --- 20a023d3
---- Bypass probe --- 
Flush 12
Reading 2
Read 2
0x8f 0xe3 
---- Halt fun --- 
Set chain 2
Flush 59
Reading 6
Read 6
0x04 0x00 0x00 0x00 0x08 0x02 
chain buf:0xdfffee48 b:0 e:38
0x04 0x00 0x00 0x00 0x01 
EC2: data: 0x00000004
addr: 0x01
rw: 0
Get eice 2 reg[0x01] to 0x00000004
Flush 35
Reading 6
Read 6
0x04 0x00 0x00 0x00 0x08 0x02 
chain buf:0xdfffee48 b:0 e:38
0x04 0x00 0x00 0x00 0x01 
EC2: data: 0x00000004
addr: 0x01
rw: 0
Get eice 2 reg[0x01] to 0x00000004
Set eice 2 reg[0x00] to 0x00000002
Flush 51
Reading 6
Read 6
0x09 0x00 0x00 0x00 0x08 0x02 
chain buf:0xdfffee48 b:0 e:38
0x09 0x00 0x00 0x00 0x01 
EC2: data: 0x00000009
addr: 0x01
rw: 0
Get eice 2 reg[0x01] to 0x00000009
Set eice 2 reg[0x00] to 0x00000005
ACK
Flush 51
Reading 6
Read 6
0x00 0x01 0x00 0x00 0x60 0x18 
chain buf:0xdfffee48 b:0 e:38
0x00 0x01 0x00 0x00 0x0c 
EC2: data: 0x00000100
addr: 0x0c
rw: 0
Get eice 2 reg[0x0c] to 0x00000100
Set eice 2 reg[0x0c] to 0x00000100
Set eice 2 reg[0x02] to 0x00000000
Set chain 1
Set chain 1
Flush 166
Flush 17
Flush 17
Flush 17
Flush 17
Flush 17
Flush 17
Flush 17
Flush 17
Flush 17
Flush 17
Flush 17
Flush 17
Flush 17
Flush 17
Flush 17
Reading 10
Read 10
0x59 0x04 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 
rd register r0: 0x00000459
Reading 10
Read 10
0x10 0x10 0x70 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 
rd register r1: 0x00701010
Reading 10
Read 10
0x40 0x08 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 
rd register r2: 0x00000840
Reading 10
Read 10
0xff 0x00 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 
rd register r3: 0x000000ff
Reading 10
Read 10
0x40 0x08 0x00 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 
rd register r4: 0x00000840
Reading 10
Read 10
0x10 0x10 0x70 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 
rd register r5: 0x00701010
Reading 10
Read 10
0x90 0xcf 0x68 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 
rd register r6: 0x0068cf90
Reading 10
Read 10
0x28 0xce 0x68 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 
rd register r7: 0x0068ce28
Reading 10
Read 10
0xcc 0xff 0x5f 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 
rd register r8: 0x005fffcc
Reading 10
Read 10
0x00 0x08 0x30 0x0a 0x00 0x00 0x00 0x00 
0x00 0x00 
rd register r9: 0x0a300800
Reading 10
Read 10
0x01 0x46 0x01 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 
rd register r10: 0x00014601
Reading 10
Read 10
0x18 0xfe 0x5f 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 
rd register r11: 0x005ffe18
Reading 10
Read 10
0x90 0xcf 0x68 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 
rd register r12: 0x0068cf90
Reading 10
Read 10
0xe4 0xfd 0x5f 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 
rd register r13: 0x005ffde4
Reading 10
Read 10
0x90 0xae 0x62 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 
rd register r14: 0x0062ae90
Reading 10
Read 10
0x2c 0x82 0x62 0x00 0x00 0x00 0x00 0x00 
0x00 0x00 
rd register r15: 0x0062822c
rd register r0: 0x00000459
rd register r1: 0x00701010
rd register r2: 0x00000840
rd register r3: 0x000000ff
rd register r4: 0x00000840
rd register r5: 0x00701010
rd register r6: 0x0068cf90
rd register r7: 0x0068ce28
rd register r8: 0x005fffcc
rd register r9: 0x0a300800
rd register r10: 0x00014601
rd register r11: 0x005ffe18
rd register r12: 0x0068cf90
rd register r13: 0x005ffde4
rd register r14: 0x0062ae90
rd register r15: 0x0062822c
Flush 173
Reading 10
Read 10
0xd3 0x00 0x00 0x80 0x00 0x00 0x00 0x00 
0x00 0x00 
rd register r0: 0x800000d3
Arm save ctxt
r0: 00000459
r1: 00701010
r2: 00000840
r3: 000000ff
r4: 00000840
r5: 00701010
r6: 0068cf90
r7: 0068ce28
r8: 005fffcc
r9: 0a300800
r10: 00014601
r11: 005ffe18
r12: 0068cf90
r13: 005ffde4
r14: 0062ae90
cpsr: 800000d3
Arm jmp ctxt
r0: 00000459
r1: 00701010
r2: 00000840
r3: 000000ff
r4: 00000840
r5: 00701010
r6: 0068cf90
r7: 0068ce28
r8: 005fffcc
r9: 0a300800
r10: 00014601
r11: 005ffe18
r12: 0068cf90
r13: 005ffde4
r14: 0062ae90
cpsr: 800000d3
wr register r0: 0x00000459
wr register r1: 0x00701010
wr register r2: 0x00000840
wr register r3: 0x000000ff
wr register r4: 0x00000840
wr register r5: 0x00701010
wr register r6: 0x0068cf90
wr register r7: 0x0068ce28
wr register r8: 0x005fffcc
wr register r9: 0x0a300800
wr register r10: 0x00014601
wr register r11: 0x005ffe18
wr register r12: 0x0068cf90
wr register r13: 0x005ffde4
wr register r14: 0x0062ae90
wr register r15: 0x0062822c
Set chain 2
Set eice 2 reg[0x00] to 0x00000000
Set chain 2
Flush 1027
Reading 6
Read 6
0x04 0x00 0x00 0x00 0x08 0x02 
chain buf:0xdfffee48 b:0 e:38
0x04 0x00 0x00 0x00 0x01 
EC2: data: 0x00000004
addr: 0x01
rw: 0
Get eice 2 reg[0x01] to 0x00000004
Unfreeze! ####
Flush 0
term% 
term%
term% cp /dev/text log
term%  cp /dev/text log

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] jtag: almost there....
  2011-01-03  1:25 [9fans] jtag: almost there Gorka Guardiola
@ 2011-01-03  2:10 ` erik quanstrom
  0 siblings, 0 replies; 2+ messages in thread
From: erik quanstrom @ 2011-01-03  2:10 UTC (permalink / raw)
  To: 9fans

On Sun Jan  2 20:27:01 EST 2011, paurea@gmail.com wrote:

> There are still some (hopefully minor) issues, but I have fully
> implemented all that
> is needed to use jtag. I can now freeze a plug on demand, make it dump
> registers or memory
> and continue executing.
>
> I'll finish cleaning up and start with the filesystem. For the
> adventurous there is
> a tar in my contrib...

very nice!

- erik



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-03  2:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-03  1:25 [9fans] jtag: almost there Gorka Guardiola
2011-01-03  2:10 ` erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).