ANNOUNCE: Host tool for KDP over serial
ANNOUNCE: Host tool for KDP over serial
- Subject: ANNOUNCE: Host tool for KDP over serial
- From: David Elliott <email@hidden>
- Date: Sun, 28 Jun 2009 16:29:30 -0400
Hi Shantonu (and the rest of the Darwin community),
On Jun 10, 2009, at 1:47 AM, Shantonu Sen wrote:
On Jun 9, 2009, at 9:46 PM, David Elliott wrote:
I'd like to run KDP over RS232 serial on an i386 target.
I don't believe we have any plans to provide a tool for this, since
the only Mac with built-in serial is the Xserve, which has both
firewire and ethernet.
Those are the supported transports for doing GDB interactive
debugging and saving kernel core dumps.
You can now add RS-232 serial as an unsupported transport for KDP.
Quick usage:
On your host:
svn checkout http://tgwbd.org/svn/Darwin/SerialKDPProxy/trunk/
SerialKDPProxy
cd SerialKDPProxy
make
./sym/SerialKDPProxy /dev/tty.serial1
This is assuming your host OS X machine has a hardware serial port.
Most don't so use /dev/tty.usbserial1 or whatever your particular USB
serial driver uses for its name.
In another terminal:
cd /Volumes/KernelDebugKit
gdb ./mach_kernel
source kgmacros
kdp-reattach localhost
On your target:
Your target MUST have a hardware serial port and it MUST be the legacy
COM1 port.
Put this stuff in your boot args along with whatever else you might
want:
-v kdp_match_name=serial debug=0x49
Full README is here:
http://tgwbd.org/svn/Darwin/SerialKDPProxy/trunk/README.html
In particular, please heed the advice to use the FireWire transport if
at all possible. KDP over serial is the transport of last resort when
nothing else can work.
The license on this is straight modern BSD except for the files which
contain the serializing/unserializing code which are pulled straight
from xnu and thus are APSL licensed. So basically, do with it what
you want. Don't sue me. Don't claim you wrote it. I'm not
responsible for any lost articles. Thanks.
-Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden