LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX
User Name
Password
Other *NIX This forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.

Notices


Reply
  Search this Thread
Old 03-23-2015, 09:08 PM   #1
camerabambai
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 145

Rep: Reputation: 19
Serial on old at&t unix


Very simple question: how to add a serial port on old sysvr4(at&t 386 2.1)?
I have tried "mknod /dev/tty01 c 4 0" and create it,but is "dead".
Some suggestion?
Thanks

edit1: i see on fresh installation serial are recognized both

Last edited by camerabambai; 03-23-2015 at 09:15 PM.
 
Old 03-24-2015, 03:18 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,830
Blog Entries: 15

Rep: Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
It's been a long time but you need to edit /etc/inittab and insure you have the "getty" process assigned to the serial device (you can assign other functions to it for serial interfaces - getty prompts for login)

If you have man pages on the system look at:
man inittab
man getty
man init

I found man pages and at http://unixhelp.ed.ac.uk/CGI/man-cgi?inittab+5 found examples for getty for serial devices:
http://unixhelp.ed.ac.uk/CGI/man-cgi?inittab+5

I forget the exact syntax we used to use for making serial interfaces to other systems. All I really recall about that was we'd do redirect in and out of the device and usually set it to xon/xoff (software flow control) if possible or would cable it for hardware flow control (rts/cts pins in addition to others) if not pssible to do software flow control.
 
Old 03-24-2015, 06:02 PM   #3
camerabambai
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 145

Original Poster
Rep: Reputation: 19
Thanks,Already know of getty,tty,inittab.
My problem is another,the serial is not recognized,only tty00(first serial)
is present.
I have tried to mknod,but when i try the test
echo "prova" > /dev/tty01,give me error
 
Old 03-24-2015, 06:28 PM   #4
/dev/random
Member
 
Registered: Aug 2012
Location: Ontario, Canada
Distribution: Slackware 14.2, LFS-current, NetBSD 6.1.3, OpenIndiana
Posts: 319

Rep: Reputation: 111Reputation: 111
Quote:
Originally Posted by camerabambai View Post
Thanks,Already know of getty,tty,inittab.
My problem is another,the serial is not recognized,only tty00(first serial)
is present.
I have tried to mknod,but when i try the test
echo "prova" > /dev/tty01,give me error
Check for IRQ and DMA conflicts, its usually the source of the errors you will get when trying to talk to a serial interface
 
2 members found this post helpful.
Old 03-25-2015, 09:31 AM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,830
Blog Entries: 15

Rep: Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
IRQ conflicts is a good suggestion. You only have two interrupts (3 and 4) for default serial.

How did you determine the major, minor (4,0) to use for this device?

Does "stty </dev/tty01" give any output?

Most of what I used to do used port cards and/or muxes to provide the additional ports so they weren't using the default serial port setups.
 
1 members found this post helpful.
Old 03-26-2015, 06:45 AM   #6
camerabambai
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 145

Original Poster
Rep: Reputation: 19
Yes was irq conflict,virtualbox assign irq 4 on tty00 and irq 3 on the next tty!
mknod /dev/tty01 c 3 0
and echo prova > /dev/tty01
now works fine.
Thanks
 
Old 03-26-2015, 08:23 AM   #7
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,830
Blog Entries: 15

Rep: Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
Glad you got it fixed.

If you would, please take a moment to mark the thread as resolved. It helps others when doing future searches to more quickly find solutions.
 
  


Reply

Tags
serial, solved


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to setup pppd to work with unix-socket instead of a serial? just-a-guest Linux - Networking 2 06-20-2014 06:13 AM
A Q about GNU & UNIX Ali H Other *NIX 4 03-25-2014 04:40 AM
[SOLVED] History of Unix, Linux & Slackware : in search of info about AT & T and Unix kikinovak Slackware 10 07-19-2013 03:59 PM
KickStart & Serial No linux2man Linux - Enterprise 1 03-31-2008 02:33 AM
Linux serial-connect to SCO Unix mattooo Linux - General 2 10-25-2003 08:16 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX

All times are GMT -5. The time now is 01:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration