1hwbpset(0x60800c28, 0x3ff) 2hwbpset(_vpabt, 0x0) 3hwbpset(_vsvc, 0x0) 4hwbpset(_vdabt, 0x0) 5hwbpset(_vund, 0x0) 6hwbpset(_virq, 0x0) 7veccatch("SPDIF") 8 9dump(_vrst, 30, "Xi") 10 11usb/serial 12 13echo b115200 s15 l8 pn > /dev/eiaU3.1/eiaUctl 14window -m 15window -m 16con /dev/eiaU3.1/eiaU 17 18echo debug . > /n/jtagfs/ctl 19 20window -scroll -r 0 5 700 369 plug 21 22 23kill 8.tagfs|rc 24/usr/paurea/src/jtag/8.jtagfs /dev/jtag*/jtag 25echo reset > /n/jtagfs/ctl 26 27#start the jtag 28echo cpuid > /n/jtagfs/ctl 29echo breakpoint 0xc02dc244 0x0 > /n/jtagfs/ctl 30 31echo breakpoint 0x0062822c 0x00000000 > /n/jtagfs/ctl 32 echo breakpoint 0xc0208124 0xffff0000 > /n/jtagfs/ctl 33 34#see debug.h for the string 35echo debugstr kc> /n/jtagfs/ctl 36 37BR 9 , pcadjust -5 works well 38BR 6, 2 works well 39 40cat /n/jtagfs/ctl 41echo stop > /n/jtagfs/ctl 42echo start > /n/jtagfs/ctl 43 44 echo debustr ew > /n/jtagfs/ctl 45#/n/jtagfs/mem can be used to read raw memory at an arbitrary offset 46 47 48# set entry on exceptions 49# changed so that turn it is turn on in debug state 50# 51 52#wait for entry in debug state (with timeout) 53 54 55echo veccatch D > /n/jtagfs/ctl 56 57echo waitstop > /n/jtagfs/ctl 58echo start > /n/jtagfs/ctl 59 60 61window -scroll -r 0 5 700 369 plug 62 63bind /n/jtagfs /proc/1 64echo stop > /n/jtagfs/ctl 65echo debug ky > /proc/1/ctl 66acid -l /usr/paurea/src/jtag/acidjtag -k 1 /arm/s9plug 67 68_tiki: 69 //B _tiki 70dump(*R15, 4, "X") 71dump(*R15, 4, "Xi") 72dump(0xc03207fc, 4, "X") 73mem(0x00621120, "X") 74regs() 75troff -man jtagfs.man|page -w 76 77bootcmd=bootp ; bootp; tftp 0x1000 /srv/tftp/plugini ; bootp ; tftp 0x800000 /srv/tftp/9plug ; go 0x800000 78 79 80 81boot linux: 82 83setenv bootargs $(bootargs) $(mtdpartitions) $(bootargs_root); 84nand read.e 0x00800000 0x00100000 0x00400000; 85bootm 0x00800000; 86