LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-26-2023, 10:26 PM   #1
camerabambai
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 408

Rep: Reputation: 54
Problem with old SVR4


Usually one serial port is sufficient to control via minicom the old SVR4 on Qemu (I know is a very old system, is unsafe, etc..). But I need two serials (one for login, the other to try pppd).

I have set those two ports on configuration of vm

Code:
    <serial type="pty">
      <source path="/dev/pts/1"/>
      <target type="isa-serial" port="0">
        <model name="isa-serial"/>
      </target>
      <alias name="serial0"/>
    </serial>
    
    serial type="pty">
      <source path="/dev/pts/2"/>
      <target type="isa-serial" port="1">
        <model name="isa-serial"/>
      </target>
      <alias name="serial1"/>
    </serial>
But on start, only one port is enabled

Code:
find /dev/ -name *tty* -print
    /dev/systty
    /dev/tty00
    /dev/tty
    /dev/tty00s
    /dev/tty00h
So I try to rebuild the kernel. On SVR4 to rebuild the kernel first I make the changes in
the file /etc/conf/sdevice.d/asy

Code:
    asy     Y       1       7       1       4       3f8     3ff     0       0
    asy     Y       1       7       1       3       2f8     2ff     0       0
the syntax is simple: asy is the driver Y enable it, 1 7 1 I don't know, 3 is the interrupt (on all my system irq 3 is used by the second serial port, 4 by the first). 3f8-3ff and 2f8-2ff are the port interval, 0 0 I don't know

Then I rebuild the kernel with idbuild.
After reboot, same situation.
If I edit the file /etc/conf/node.d/asy
Code:
    asy     tty00   c       0
    asy     term/00 c       0
    asy     tty00s  c       0
    asy     tty00h  c       128
    asy     term/00s        c       0
    asy     term/00h        c       128
    
    asy     tty01   c       1
    asy     term/01 c       1
    asy     tty01s  c       1
    asy     tty01h  c       128
    asy     term/01s        c       1
    asy     term/01h        c       128
and recreate the nodes

Code:
    idmknod -s
I have this strange situation

ls -ld /dev/tty*

Code:
 crw-rw-rw-   1 bin      bin       16,  0 Dec 25 19:31 /dev/tty
    crw--w----   1 myuser   tty        3,  0 Mar 27 05:20 /dev/tty00
    crw-rw-rw-   1 root     root       3,128 Mar 27 04:26 /dev/tty00h
    crw-rw-rw-   1 root     root       3,  0 Mar 27 04:26 /dev/tty00s
    crw--w----   1 root     root       3,  0 Mar 27 05:20 /dev/tty01
    crw-rw-rw-   1 root     root       3,128 Mar 27 04:26 /dev/tty01h
    crw-rw-rw-   1 root     root       3,  0 Mar 27 04:26 /dev/tty01s
All files use the major number 3.
Why the 4 is complete ignored? What I miss? Probably a bug in the kernel or what else?
On all my system the two serials are recognized, modern (Linux) and old (Sco Unix).
 
Old 04-05-2023, 09:44 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,143

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
major number is the driver, minor number is the device. So com1 (3f8) should be minor 0 and com2 (2f8) should be minor 1.
 
  


Reply

Tags
serial, unix



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
Relationship SVR4-BSD-Solarsi qrshat Solaris / OpenSolaris 1 03-13-2006 07:46 AM
SVR4 download? dsschanze Other *NIX 1 05-28-2005 01:24 PM
SVR4 and linux wincrk Linux - General 1 06-18-2003 07:06 PM
SCO planted SVR4 code into Linux themselves GtkUser General 11 06-07-2003 11:40 AM
svr4 abi xmasman Programming 0 09-25-2001 04:20 AM

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

All times are GMT -5. The time now is 04:09 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