Folks, I'd like to try my hand at debugging the kernel boot process on a Macintosh PPC. I have a couple of silly questions, though. 1) Can I debug a Mac from an x86 box using Xmon? 2) I need a null modem cable to connect my Athlon and my Mac. Any thoughts as to where I could buy such a beast, or how to wire one up from parts obtained from Radio Shack? Thanks, Skip
Skip Gaede <sgaede@attbi.com> writes:
Folks,
I'd like to try my hand at debugging the kernel boot process on a Macintosh PPC. I have a couple of silly questions, though.
Well, it has a lot to do with what model Mac it is. For example, recent machines do not typically have a serial port.
1) Can I debug a Mac from an x86 box using Xmon?
You can, depending on the model machine you've got.
2) I need a null modem cable to connect my Athlon and my Mac. Any thoughts as to where I could buy such a beast, or how to wire one up from parts obtained from Radio Shack?
Also depends on the model... -- Josh Huber
On Friday 14 June 2002 06:57, Skip Gaede wrote:
Folks,
I'd like to try my hand at debugging the kernel boot process on a Macintosh PPC. I have a couple of silly questions, though.
Folks, As an update, I was able to debug the boot process without resorting to a debugger. I found two techniques worked well: putting the kernel into an infinite loop at strategic points in the process, either unconditionally or based on the result of a test: for(;<test>;){int foo;foo++;} and/or using low level routines for displaying information on the console: ptext_drawstring, and ptext_drawhex; The fact that the bug I was chasing had to do with the nonrelocation of the console framebuffer made printing somewhat unreliable, The good news is that I found the bug, the kernel is mostly working, and the latest swapping code is much better than the 2.4.13 code I previously had access to. --Skip
participants (2)
-
Josh Huber
-
Skip Gaede