ANNOUNCE: Host tool for KDP over serial
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com 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. You can now add RS-232 serial as an unsupported transport for KDP. Quick usage: On your host: In another terminal: cd /Volumes/KernelDebugKit gdb ./mach_kernel source kgmacros kdp-reattach localhost On your target: Full README is here: http://tgwbd.org/svn/Darwin/SerialKDPProxy/trunk/README.html -Dave _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... 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. 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. 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 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
David Elliott