* [9fans] jtagfs
@ 2011-01-10 20:57 Gorka Guardiola
0 siblings, 0 replies; only message in thread
From: Gorka Guardiola @ 2011-01-10 20:57 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
There is a fast and dirty jtagfs now, with two files so that people
can play with it.
This is the kind of things it can do, though there are no breakpoints yet:
usb/serial
echo b115200 s15 l8 pn > /dev/eiaU5.1/eiaUctl
window -m
con /dev/eiaU5.1/eiaU
kill 8.tagfs|rc
/usr/paurea/src/jtag/jtag/8.jtagfs /dev/jtag*/jtag
echo reset > /n/jtagfs/ctl
#start the jtag
echo cpuid > /n/jtagfs/ctl
#see debug.h for the string
echo debugstr kc> /n/jtagfs/ctl
#go into debug mode
echo enterdebug > /n/jtagfs/ctl
cat /n/jtagfs/ctl
#you need to be in mem debug mode to see something here...
echo dump 0xc02dc244 0xc02dc2a4 > /n/jtagfs/ctl
echo exitdebug > /n/jtagfs/ctl
echo debustr ew > /n/jtagfs/ctl
/n/jtagfs/mem can be used to read raw memory at an arbitrary offset
#set entry on exceptions
echo veccatch RSDI > /n/jtagfs/ctl
#wait for entry in debug state (with timeout)
echo waitentry > /n/jtagfs/ctl
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-01-10 20:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-10 20:57 [9fans] jtagfs Gorka Guardiola
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).