Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 May 2001 09:14:00 +1200
From:      Jonathan Chen <jonathan.chen@itouch.co.nz>
To:        David Banning <david@banning.com>
Cc:        Ted Mittelstaedt <tedm@toybox.placo.com>, questions@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG
Subject:   Re: digiboard serial port behaviour problem
Message-ID:  <20010523091400.A89111@itouchnz.itouch>
In-Reply-To: <20010522161115.A6917@yahoo.com>; from sky_tracker@yahoo.com on Tue, May 22, 2001 at 04:11:15PM %2B0000
References:  <20010522021147.A4215@yahoo.com> <003e01c0e28c$a1e349a0$1401a8c0@tedm.placo.com> <20010522161115.A6917@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--zhXaljGHf11kAtnf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

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 <jonathan.chen@itouch.co.nz>
----------------------------------------------------------------------
    The Internet: an empirical test of the idea that a million monkeys
                banging on a million keyboards can produce Shakespeare

--zhXaljGHf11kAtnf
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch

--- 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;

--zhXaljGHf11kAtnf--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010523091400.A89111>