Return to BSD News archive
Path: sserve!manuel.anu.edu.au!munnari.oz.au!uunet!ferkel.ucsb.edu!taco!gatech!emory!wupost!gumby!yale!yale.edu!ira.uka.de!Germany.EU.net!rbiffm!C3000!smoky!felix From: felix@smoky.ikf.physik.uni-frankfurt.de (Felix the double Helix) Newsgroups: comp.unix.bsd Subject: Re: [386BSD] configuring serial to 8n1, multiport serials. Keywords: bsd, 386bsd, unix, 386BSD, serial, device, help, faq, question Message-ID: <felix.721963403@smoky> Date: 17 Nov 92 01:23:23 GMT References: <chk.721834320@mcshh.hanse.de> Sender: news@c3000.ikf.physik.uni-frankfurt.de (Usenet News Account) Organization: Institut fuer Kernphysik, Frankfurt/Main Lines: 39 chk@mcshh.Hanse.DE (Christian Kuhtz) writes: >Hi, >1.) How can I configure the serials to 8N1, 8 bit, no parity, 1 stopbit ? > I need this setting for an dialin port. This port has to be locked > to 19200, 8N1. you can't using the getty that was supplied with 386bsd 0.1. > It's no problem to do stty cs -parenb -clocal </dev/com{1,2,3,4} > but that does only work after login, cause it's no gettyredefinition. > Please tell me how to configure /etc/gettytab for such purposes. the problem with the getty supplied is that it uses the old v7 tty interface (struct sgttyb). but just before it exec's a login it sets "defaults" using the newer termios-functions. thus, you never get any- thing else than 7e1! i've hacked getty to use termios instead of sgttyb, but not all of the things that can be configured using gettytab have been coded in getty yet. the main problem with that is that there are some values in the sgttyb structure which can't be converted that easily. actually i think the best way would be to hack or port a system v-getty clone to 386bsd instead of using the kind of outdated gettytab file, unless you add a lot of new parameters to gettytab. i haven't done either, but if anyone wants/needs a getty desperately that's able to set the line to 8n1, 7e1, by gettytab configuration flags i could mail it. but beware: this is currently a hack that works for me, but the work is still far from being finished. so long, felix -- Felix Gaehtgens, IKF Postmaster Institut fuer Kernphysik, August Euler-Str. 2-6 Frankfurt/Main 90, West Germany EMAIL: felix@smoky.ikf.physik.uni-frankfurt.de