home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / bsd / 8972 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  2.2 KB

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