Subject: "J. T. Holmes": netbsd-1.0 com ports
To: None <netbsd-help@NetBSD.ORG>
From: Chris G Demetriou <Chris_G_Demetriou@LAGAVULIN.PDL.CS.CMU.EDU>
List: netbsd-help
Date: 01/02/1995 18:06:07
this was sent to me (which was a bad idea 8-), and i have no clue what
the problem could be as i've not even used an i386 for anything
related to serial ports (or really other than as a file server) for
over 6 months...

any ideas?  i've set reply-to to the original sender's address.
(please don't send them to me personally.)


chris

------- Forwarded Message

Replied: Mon, 02 Jan 1995 18:03:51 -0500
Replied: ""J. T. Holmes" <jtholmes@woods.com> "
          1 Jan 95 16:04:53 EST
          1 Jan 95 16:04:19 EST
	id AA19556; Sun, 1 Jan 95 13:04:00 -0800
	id AA03701; Sun, 1 Jan 95 13:32:19 -0500
Date: Sun, 1 Jan 1995 13:32:18 -0500 (EST)
From: "J. T. Holmes" <jtholmes@woods.com>
To: cgd@sun-lamp.cs.berkeley.edu
Subject: netbsd-1.0 com ports
Message-Id: <Pine.NXT.3.91.950101133039.3693A-100000@ebony>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII



Chris:

Sorry to bother you folks about this. I would have used send-pr but my access
to the internet is through a Next machine that does not have send-pr.

My problem is with the  COM  ports (/dev/tty00  /dev/tty01) under NetBSD-1.0
they will not work for me. Perhaps I have overlooked something or I am doing
something wrong.
Before I posted this I did a search of the latest version of the FAQ and found 
no reference to this problem. I also searched the  comp.os.386bsd  news for
any clues.


My configuration is:

	Intel 486DX/33
	8 megs memory
	Bustech 445S SCSI card
	Sony single speed CD ROM
	3 disk drives
		1.08G  with NetBSD-0.9
		540MB  IDE with DOS
		345MB  IDE with NetBSD-1.0
	1.44 Floppy drive

The problem is that I cannot use CU to call out on /dev/tty00 under NetBSD-1.0.

What happens is the following:

	Using the following command
	cu -s 19200 -l /dev/tty00 dir

	The port opens and the  'Connected' message appears. 
	However as soon as the first character is typed from the keyboard a 
	message simailar to the following apprears

	cu:  write:  Input/Output error

	then the CU program closes the port and terminates


I did some investigation and found the  'com.c' program and put in some trace
statements and found that the following line

	return ((*linesw[tp->t_line].l_write)(tp, uio, flag));

in the  comwrite  function returns a value of  '5'  which I suspect is the
problem. I would be glad to continue my tracking of this problem but I have
run into a dead end. If someone could point me in the right direction I would
be glad to search the code more.  
I have rebuilt the  kernel  and all the kernel libaries  several times and
still no luck. 
I even tried the  'Floppy kernel'  (for the  Bustech card) and it also would
not work.


I don't have these problems with the NetBSD-0.9 version of NetBSD. When I boot
NetBSD-0.9 on the same machine I have no problems using  CU or TIP on 
/dev/tty00.

Any assistance you can give me would be greatly appreciated.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
J. T. Holmes, Jr.                     -----   __o    __o    __o
                                   -------    \<     \<     \<
e-mail:  jtholmes@woods.com      --------   ()/()  ()/()  ()/()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


------- End of Forwarded Message