Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 May 2001 00:52:36 -0700
From:      "Ted Mittelstaedt" <tedm@toybox.placo.com>
To:        "David Banning" <david@banning.com>, "Jonathan Chen" <jonathan.chen@itouch.co.nz>
Cc:        <questions@FreeBSD.ORG>, <freebsd-bugs@FreeBSD.ORG>
Subject:   RE: digiboard serial port behaviour problem
Message-ID:  <002601c0e814$5383a420$1401a8c0@tedm.placo.com>
In-Reply-To: <20010529034027.A469@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Could you wrap the SCO program in a script that issues the
command

stty sane

after the program exits?

Ted Mittelstaedt                      tedm@toybox.placo.com
Author of:          The FreeBSD Corporate Networker's Guide
Book website:         http://www.freebsd-corp-net-guide.com


>-----Original Message-----
>From: owner-freebsd-questions@FreeBSD.ORG
>[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of David Banning
>Sent: Tuesday, May 29, 2001 1:40 AM
>To: Jonathan Chen
>Cc: David Banning; Ted Mittelstaedt; questions@FreeBSD.ORG;
>freebsd-bugs@FreeBSD.ORG
>Subject: Re: digiboard serial port behaviour problem
>
>
>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 <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
>
>> --- 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-questions" in the body of the message
>

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?002601c0e814$5383a420$1401a8c0>