From owner-freebsd-bugs Tue May 29 0:40:54 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from smtp017.mail.yahoo.com (smtp017.mail.yahoo.com [216.136.174.114]) by hub.freebsd.org (Postfix) with SMTP id 2622937B423 for ; Tue, 29 May 2001 00:40:46 -0700 (PDT) (envelope-from sky_tracker@yahoo.com) Received: from hse-toronto-ppp3488477.sympatico.ca (HELO d.tracker) (65.92.112.44) by smtp.mail.vip.sc5.yahoo.com with SMTP; 29 May 2001 07:40:45 -0000 X-Apparently-From: Received: (from david@localhost) by d.tracker (8.11.3/8.11.3) id f4T8eS700554; Tue, 29 May 2001 08:40:28 GMT (envelope-from david) Date: Tue, 29 May 2001 03:40:27 -0500 From: David Banning To: Jonathan Chen Cc: David Banning , Ted Mittelstaedt , questions@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: digiboard serial port behaviour problem Message-ID: <20010529034027.A469@yahoo.com> Reply-To: David Banning References: <20010522021147.A4215@yahoo.com> <003e01c0e28c$a1e349a0$1401a8c0@tedm.placo.com> <20010522161115.A6917@yahoo.com> <20010523091400.A89111@itouchnz.itouch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20010523091400.A89111@itouchnz.itouch>; from jonathan.chen@itouch.co.nz on Wed, May 23, 2001 at 09:14:00AM +1200 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi Jonathan. I am having a problem that relates to the patch that you helped me with. I copy a message which I just posted to -questions. Because this is a new problem to me, I wondered about the patch that you made me aware of; So I put the old modules back in to check, and the problem, went away (and of course the original problem, of some time ago, came back) Here is a copy of my post; ------------------------------ I am running a SCO program which seems to run fine. When I exit back to the shell my prompt does not behave properly at the console. Each time I hit return there is no line feed. It looks like this; bash-2.03$ bash-2.03$ bash-2.03$ and so on. My typing will not appear on the screen, but the commands are effective. I have tried other shells, with the same effect. I also have tried running the same test on a serial terminal, and this does not pose a problem. The problem does not seem to be machine oriented. I took the hard drive out, and installed it in another machine and the new machine's console shows the same problem. Any idea what could be causing this? -------------------------------- The problem does not seem to effect X It would be great to get your idea of what's going on. For your reference the past is below; -------------------------------------------------- On Wed, May 23, 2001 at 09:14:00AM +1200, Jonathan Chen wrote: > On Tue, May 22, 2001 at 04:11:15PM +0000, David Banning wrote: > > > But, this database program hangs when it comes time > > > for the opening screen. > > > > Yes. > > > > > > > > My guess is that the database program is doing something during > > > the opening screen that has nothing whatsoever to do with the > > > terminal session, but is making the process crash. Since this > > > is an SCO program that is most likely a function call into the > > > SCO libraries, and thence to the ibcs2 emulator. > > > > If that is the case, wouldn't the program also crash on the console? > > It runs fine on the system console. It also runs fine over a network > > connection running on a X-Win32 xterm session. > > There's a problem with the ibcs2 emulator when dealing with serial > terminals. > > http://www.freebsd.org/cgi/query-pr.cgi?pr=8414 > > I'd posted a patch a *VERY* long time ago, but it hasn't been integrated > into the system. Attached should be an updated patch for the 4.X-STABLE. > > Try rebuilding the ibcs2.ko module with the patch, it should fix your > problem. > > Cheers. > -- > Jonathan Chen > ---------------------------------------------------------------------- > The Internet: an empirical test of the idea that a million monkeys > banging on a million keyboards can produce Shakespeare > --- ibcs2_ioctl.c.old Wed May 23 09:02:52 2001 > +++ ibcs2_ioctl.c Wed May 23 09:04:19 2001 > @@ -166,6 +166,7 @@ > if (l & IBCS2_HUPCL) r |= HUPCL; > if (l & IBCS2_CLOCAL) r |= CLOCAL; > bt->c_cflag = r; > + bt->c_ispeed = bt->c_ospeed = s2btab[l & 0x0000000f]; > > l = st->c_lflag; r = 0; > if (l & IBCS2_ISIG) r |= ISIG; > @@ -177,8 +178,6 @@ > if (l & IBCS2_NOFLSH) r |= NOFLSH; > if (l & IBCS2_TOSTOP) r |= TOSTOP; > bt->c_lflag = r; > - > - bt->c_ispeed = bt->c_ospeed = s2btab[l & 0x0000000f]; > > bt->c_cc[VINTR] = > st->c_cc[IBCS2_VINTR] ? st->c_cc[IBCS2_VINTR] : _POSIX_VDISABLE; -- Hark, Hark, the dogs do bark The Duke is fond of kittens He likes to take their insides out And use them for his mittens From "The Thirteen Clocks" _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message