[comp.sys.hp] Creating a terminal on HP9000s340

adler@through..caltech.edu (B. Thomas Adler) (09/21/90)

Hi

I know that this is probably a pretty trivial question, but I just
"inherited" a cluster of HPs, and I can't seem to find all the manuals.

What I'm trying to do it to use the RS-232 port on a HP9000s340 to
hook up a terminal to it.  SAM is no good, because I don't having anything
emulating an hp terminal, so my screen is all messed up.  Thus, I'm
trying to use /etc/mknod by hand to do this.

Based on the pages on adding a terminal in the "HPUX System Administrator
Manual", I'm supposed to create a character device with a major number
of 1.  (Something that puzzles me is that a "lsdev" command says that
/dev/tty has a major number of 2.)  Fiddling around, I made some guesses,
but they were apparently all wrong...


So my question is: What should be the minor number of that gosh darn
RS-232 port?

Points that might be useful in helping me:
 - I'm doing this on one of the diskless cnodes.
 - The four bit DIP switch just to the right of the RS-232 port is
   in the following position (from left to right) UP DOWN DOWN UP
   and has the label CONFIG underneath it.
 - I want to set up a 9600 baud line.  I don't see how this is relevant
   to the question, but you never know!
 - in /dev, there are no ttynn files.  I assume that this means I want to
   name my device /dev/tty00.


I'd really appreciate any help that you folks might offer!

Thanks alot,
  -Bo Adler

adler@tybalt.caltech.edu     ...!cit-vax!adler    adler@citiago.bitnet

--
B. Thomas Adler               <adler@tybalt.caltech.edu>
<adler@citjulie.bitnet>       <...!ames!elroy!cit-vax!adler>

rosl@hpuamsa.UUCP (Rob Slotemaker CRC) (09/21/90)

Try the following to use the internal RS-232 of a 9000/340:

  mknod /dev/ttyd00 c 1 0x090004

And add to /etc/inittab:

  01:2:respawn:/etc/getty ttyd00 9600

And add to /etc/ttytype (when using a hp terminal):

  hp ttyd00

See getty (1M), gettydef (4) and inittab (4) for detailed information.

Best regards,

Rob