Subject: Re: reaching ddb via Stealth Serial Port on G3 b&w
To: John Klos <john@ziaspace.com>
From: =?ISO-8859-1?Q?Timo_Sch=F6ler?= <wanker4freedom@web.de>
List: port-macppc
Date: 03/03/2005 18:29:05
>> after weeks of waiting for my serial cable components (the soldering
>> iron powered always powered on to get to work ASAP ;) i gave up.
>
> Bad post service, or bad company?
bad company. very bad... :(
>> now, i'm a bit confused what to do to get/stay connected when the
>> booting kernel fails (see [1])...
>
> Not sure about that. I've been looking all over for documentation for
> MCHK traps since I've been seeing them about once a month (not often
> enough to figure out what to do about it).
>
>> i guess that i can do this by tweaking the kernel config (see [2]), i
>> do not need to set OF to output on the serial port [3]...?
>
> It's probably easier and better to just set things in OF; you can do a
> shutdown -h now and get into OF (usually) if you want to make changes
> via the serial console, but if you don't change it, it's back to the
> keyboard / monitor.
yes, that's true; if it'd be remote, then this would be very useful ;)
>> if so, the manual says that the Griffin Stealth uses the scca device
>> -- how do i configure this in the kernel configuration?
>>
>> is this sufficient?
>>
>> #options DDB # in-kernel debugger
>> #options DDB_HISTORY_SIZE=100 # enable history editing
>>
>> and uncomment (or add) the following three lines:
>>
>> options KGDB # remote debugger
>> options "KGDB_DEVNAME=\"com\"",KGDB_DEVADDR=0x3f8,KGDB_DEVRATE=9600
>> makeoptions DEBUG="-g" # compile full symbol table
>>
>> is wonder because the remote debuggers' device name is 'com', and i
>> don't know whether 0x3f8 fits in.
>
> 0x3f8 definitely wouldn't fit. I've never tried KGDB (not sure if it
> works), but the regular debugger works fine from a Stealth serial
> port. The only addition to options DDB you should add would be:
>
> options ZS_CONSOLE_ABORT# allow break to get into DDB on serial
so, just one question left: the kernel 'recognizes' the Stealth as the
default serial port for accessing DDB on the machine?
>
> Good luck!
>
> John
thanks,
--
Timo Schoeler | http://macfinity.net/~tis
//macfinity -- finest IT services | http://macfinity.net
Key fingerprint = F844 51BE C22C F6BD 1196 90B2 EF68 C851 6E12 2D8A
There are 10 types of people in the world. Those who understand binary
and those who don't.