From owner-freebsd-hackers Sun Jun 20 16:47:42 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id 8B59414D8D; Sun, 20 Jun 1999 16:47:33 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id JAA06571; Mon, 21 Jun 1999 09:17:35 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id JAA45273; Mon, 21 Jun 1999 09:17:42 +0930 (CST) Date: Mon, 21 Jun 1999 09:17:42 +0930 From: Greg Lehey To: Wes Peters Cc: FreeBSD current users , FreeBSD Hackers Subject: Re: Remote serial gdb--status? Message-ID: <19990621091742.U6820@freebie.lemis.com> References: <19990618114450.Q9893@freebie.lemis.com> <376AA1E6.F529ED99@softweyr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <376AA1E6.F529ED99@softweyr.com>; from Wes Peters on Fri, Jun 18, 1999 at 01:45:42PM -0600 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Friday, 18 June 1999 at 13:45:42 -0600, Wes Peters wrote: > Greg Lehey wrote: >> >> I've been away from work for several weeks, and I now find that I can >> no longer start remote serial gdb. I am using sio0 on the debugged >> machine side, and sio1 on the debugging machine side. Here are the >> relevant dmesg outputs: >> >> panic (debugged machine): >> >> sio0: system console >> sio0: gdb debugging port >> ... >> sio0 at port 0x3f8-0x3ff irq 4 flags 0x90 on isa0 >> sio0: type 16550A >> >> freebie (debugging machine): >> >> sio1 at port 0x2f8-0x2ff irq 3 on isa0 >> sio1: type 16550A >> sio1: interrupting at irq 3 >> >> I can communicate fine using cu, and a breakout box shows all modem >> signals asserte (DCD, DTR, DSR, RTS, CTS). When I go into remote >> debug on panic, RxD flashes, and when freebie tries to attach to >> panic, TxD flashes, so I'm obviously addressing the correct ports. >> I've checked the bit rate and configuration of the ports before going >> into debug, and they look right (9600 bps, cs8, -istrip, -parenb). I >> don't know what else to look for. Any ideas? > > I think you need flags 0x50 (instead of 0x90) on panic. From sio(4): > > Meaning of flags: > ... > 0x00010 device is potential system console > 0x00020 device is forced to become system console > 0x00040 device is reserved for low-level IO (e. g. for remote > kernel debugging) > ... In fact, it was all OK. The serial port seems to be flaky. It works OK at 9600 bps, but drops characters at 38400. I'm still investigating whether this is hardware or software: it seems to work fine in normal mode, but when it's in serial debug mode it can often drop two characters at a time, and there's no overrun indication. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message