From owner-freebsd-current Sat Dec 27 21:28:27 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id VAA18777 for current-outgoing; Sat, 27 Dec 1997 21:28:27 -0800 (PST) (envelope-from owner-freebsd-current) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id VAA18772 for ; Sat, 27 Dec 1997 21:28:21 -0800 (PST) (envelope-from grog@lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id PAA08890; Sun, 28 Dec 1997 15:56:34 +1030 (CST) (envelope-from grog) Message-ID: <19971228155633.57807@lemis.com> Date: Sun, 28 Dec 1997 15:56:33 +1030 From: Greg Lehey To: Bruce Evans Cc: julian@whistle.com, freebsd-current@FreeBSD.ORG, skynyrd@opus.cts.cwu.edu Subject: Re: Remote gdb (was: no boot: config -g and options DDB) References: <199712280432.PAA05460@godzilla.zeta.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e In-Reply-To: <199712280432.PAA05460@godzilla.zeta.org.au>; from Bruce Evans on Sun, Dec 28, 1997 at 03:32:59PM +1100 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Sun, Dec 28, 1997 at 03:32:59PM +1100, Bruce Evans wrote: >>> with the boot blocks about the port), and the h/w speed will be initialized >>> (-current neglects to initialize when the speed registers wouldn't change, >>> but this may leave the h/w behind the registers uninitialized after reset). >>> >> >> this tends to introduce another place that things can get it wrong.. >> I've seen the 'auto speed detection' get really screwy results on some >> hardware. > > It should be safe enough when it is only used when intended - when the > system is booted with -h. The following fixes all the screwy cases that > I know about. > > diff -c2 sio.c~ sio.c > > (etc) > I usually use -D in /boot.config so I didn't notice this. OK, I have it working now. On the face of it, it looks as if these fixes did it, but I couldn't be sure without going back and trying without. Thanks. In summary, it appears that you need to build a kernel with COMCONSOLE and at least one of the sio ports with flags 0x10. Contrary to my previous claim, it doesn't have to be sio0: the kernel chooses the first sio with flags 0x10. These fixes mean that it will work without the -h flag. Again, many thanks. Greg