Re: kdb with serial port
Re: kdb with serial port
- Subject: Re: kdb with serial port
- From: Terry Lambert <email@hidden>
- Date: Sat, 2 Jun 2007 09:50:34 -0700
On Jun 2, 2007, at 8:14 AM, apic | puredarwin.org wrote:
Thank you Terry for this great infos.
I put right after the delay you mentioned a
PE_enter_debugger("debug_me") which works fine, the problem at this
point now is the kernel does not find a mac/ip address to use. Which
nic's mac address is commonly used? The primary interfaces one?
Yes. If this is PPC, and you have bootp setup, then it will set the
IP address to the bootp address in Open Firmware, and then once it's
done that, even though it says it's IP is 0.0.0.0 when it's waiting
for the debugger to attach, the IP address will actually be what the
bootp/dhcpd vended to OF.
For Intel, I just always use the firewire debugging method (or
hardware debugger, if it's too early for IOKit to to have started),
which has the same effect. I don't know if Intel sets the IP in EFI
or not (maybe Derek is listening in on this and can answer).
The way to know if something is registered to handle debugging that
early, BTW, is whether or not it says "waiting for debugger" or it
says "We are hanging here...". If it says the latter, no one has
registered to handle kdp, and you will need to find some way to get a
driver loaded (generally, firewire is the recommended metho - see the
kernel debugging documentation for details).
-- Terry
_______________________________________________
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