*BSD News Article 34860


Return to BSD News archive

Xref: sserve comp.os.386bsd.questions:12632 comp.os.386bsd.misc:3385
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!news.Hawaii.Edu!ames!pacbell.com!att-out!rutgers!cis.ohio-state.edu!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!swidir.switch.ch!newsfeed.ACO.net!Austria.EU.net!EU.net!Germany.EU.net!gomel.knirsch.de!knobel.knirsch.de!andreas
From: andreas@knobel.knirsch.de (Andreas Klemm)
Newsgroups: comp.os.386bsd.questions,comp.os.386bsd.misc
Subject: Re: FreeBSD 1.1.5.1: Serial port problems
Followup-To: comp.os.386bsd.questions,comp.os.386bsd.misc
Date: 16 Aug 1994 10:41:44 GMT
Organization: HOME, 41469 Neuss, Germany
Lines: 52
Message-ID: <32q558$c2@knobel.knirsch.de>
References: <32c0kr$94d@Mercury.mcs.com> <1994Aug15.173556.4105@system9.unisys.com>
NNTP-Posting-Host: knobel.knirsch.de
X-Newsreader: TIN [version 1.2 PL2]

Alex  Dumitru (alexd@system9.unisys.com) wrote:
: mikebo@MCS.COM (Michael Borowiec) writes:
: >I can't seem to be able to connect to my modem directly using "cu"...
: [ .. deleted ..]
: >Do I have to create a new device (ala SunOS) to do this?

: I'm doing this from memory, so please double check the numbers and
: options. When you see 01 it reflects that my set up has the modem on
: COM2.

: You have to have two devices. One used for dialout, and one for dialin.
: typical setup is ttyd0x for dialin and cua0x for dialout.

: Use mknod to create these devices. The dialout device has a minor number
: of 128+ minor of dialin. (could be the other way around... check the
: man page for sio)

: Also check that your kernel has the right sio entries, and it detects
: then at boot time. (again the man page on sio is very good)

: Create appropriate entries in your /etc/ttys
: ttyd01 "/usr/libexec/getty D9600" vt100 on secure
: cua01 none 

: D9600 should be a valid entry in /etc/gettytab

: Add a line to your /etc/rc
: echo -n " <some message>"; stty -f /dev/cua01 -clocal crtsct
					^^^^^^^^^
: (double check the crtsct stuff in the stty man page)

Just a note:

In FreeBSD 1.1.5.1 you have to use the cuai01 device to change the
settings of a serial device, if the port is not opened.

The callout devices for COM1: and COM2: aren't properly installed
in the binary distrib and the MAKEDEV script doesn't make them, too.
You have to install them by hand:

	mknod /dev/cuai00 c 28 160
	chown uucp.dialer /dev/cuai00
	chmod 660 /dev/cuai00

	and so on ... (28 161 for cuai01...)


	Andreas ///

--
Andreas Klemm                 /\/\____ Wiechers & Partner Datentechnik GmbH 
andreas@knobel.knirsch.de ___/\/\/     andreas@wupmon.wup.de (Unix Support)