Skip to contentSkip to conversation

xmon over firewire on PPC

DISCUSSION Benjamin Herrenschmidt 2 participants 3 messages May 4, 2002 – May 8, 2002

lore
Share & tools
lore
#0 lore raw

Ok, it's sorta working ;)

The UI of the client tool sucks, but i'm no good at termios , any improvements welcome.

So basically, my rsync kernel has the necessary support in it as of today (look at the bits in CONFIG_XMON_FW in arch/ppc/xmon/start.c), and the client tool can be downloaded from
<http://penguinppc.org/~benh/firescope.tar.gz>

The protocol is a bit basic (pmu like ? :) and currently, xmon don't like "losing" the link with firescope. That is, any xmon output should properly reach firescope at any time, but if xmon didn't have firescope attached when trying to _read_ (when entered), then it will continue to either ADB or serial code and will miss firewire completely. I will try to fix that one of these days so that xmon can take input from all possible sources at the same time.

To use the client tool, you need libraw1394 (available from www.sourceforge.net/projects/libraw1394), this is the client library for using the raw 1394 interface. You need to have the ohci1394 module loaded on both machines, and the console machine using firescope must have also raw1394 insmod'ed (so libraw1394 works) and /dev/raw1394 (c 171 0).

Now, what remains to do is some code to tweak the CPU reset or EE lines so we can get force the jump to xmon remotely.

Ben.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 10 lines

Ok, it's sorta working ;)

The UI of the client tool sucks, but i'm no good at termios , any improvements welcome.

So basically, my rsync kernel has the necessary support in it as of today (look at the bits in CONFIG_XMON_FW in arch/ppc/xmon/start.c), and the client tool can be downloaded from
<http://penguinppc.org/~benh/firescope.tar.gz>

I forgot to mention... To be able to attach to a remote kernel's xmon, you need to pass firescope the System.map of that kernel, that is launch it with "firescope <path_to_System.map>"

Ben.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#2 lore raw
In reply to Benjamin Herrenschmidt
Quoted 2 lines · Benjamin Herrenschmidt

Ok, it's sorta working ;)

Hey cool!! Thanks for implementing this feature. I've had this in mind for more than a year, but never actually got around implementing it :)

Firewire with it's remote-DMA capability can be used for lots of evil stuff :)

Quoted 1 line

Ben.

--
Live long and prosper
- Harald Welte / [email protected] http://www.gnumonks.org/
============================================================================
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M+ V-- PS++ PE-- Y++ PGP++ t+ 5-- !X !R tv-- b+++ !DI !D G+ e* h--- r++ y+(*)

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/