IRIX -- how to get a serial device?
#21
RE: IRIX -- how to get a serial device?
hi Shuibird,

here is inittab for Octane2:
>> # Copyright © 1984 AT&T
>> # All Rights Reserved
>> #
>> # THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
>> # The copyright notice above does not evidence any
>> # actual or intended publication of such source code.
>>
>> #ident "$Revision: 1.72 $"
>>
>> is:2:initdefault:
>> fs::sysinit:/etc/bcheckrc </dev/console >/dev/console 2>&1
>> mt::sysinit:/etc/brc </dev/console >/dev/console 2>&1
>> link::wait:/etc/lnsyscon > /dev/console 2>&1 < /dev/null
>> s0:06s:wait:/etc/rc0 >/dev/console 2>&1 </dev/console
>> s1:1:wait:/sbin/suattr -C CAP_SHUTDOWN+ip -c "exec /etc/shutdown -y -iS -g0" >/dev/console 2>&1 </dev/console
>> s2:23:wait:/etc/rc2 >/dev/console 2>&1 </dev/console
>> s3:3:wait:/etc/rc3 >/dev/console 2>&1 </dev/console
>> s4:06:wait:/sbin/env LANG=C /etc/umountfs > /dev/console 2>&1
>> of:0:wait:/sbin/suattr -C CAP_SHUTDOWN+ip -c "exec /etc/uadmin 2 0" >/dev/console 2>&1 </dev/console
>> RB:6:wait:/etc/init.d/announce restart
>> rb:6:wait:/sbin/suattr -C CAP_SHUTDOWN+ip -c "exec /etc/uadmin 2 1" >/dev/console 2>&1 </dev/console
>>
>> #
>> # note that startgfx and stopgfx will manipulate the action
>> # on the following textport getty line. normal system usage
>> # does not involve either of these commands, so the action
>> # will not be changed and this file will not be modified.
>> # default behavior is "off" for cleaner system boot and
>> # to reduce the number of processes on the minimal system.
>> #
>> tp:23:off:/sbin/suattr -C CAP_FOWNER,CAP_DEVICE_MGT,CAP_DAC_WRITE+ip -c "exec /sbin/getty tport co_9600"
>> # textport
>>
>> #
>> # Use the ttym* or ttyf* device names and the du_* or dx_* gettydefs tags
>> # for ports with modems. See the getty(1M), uugetty(1M), init(1M),
>> # gettydefs(4), and inittab(4) man pages.
>> #
>> # on-board ports or on Challenge/Onyx MP machines, first IO4 board ports
>> t1:23:off:/sbin/suattr -C CAP_FOWNER,CAP_DEVICE_MGT,CAP_DAC_WRITE+ip -c "exec /sbin/getty ttyd1 console"
>> # alt console
>> t2:23:off:/sbin/suattr -C CAP_FOWNER,CAP_DEVICE_MGT,CAP_DAC_WRITE+ip -c "exec /sbin/getty -N ttyd2 co_9600"
>> # port 2

And here is for Fuel:
>> # Copyright © 1984 AT&T
>> # All Rights Reserved
>> #
>> # THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
>> # The copyright notice above does not evidence any
>> # actual or intended publication of such source code.
>>
>> #ident "$Revision: 1.72 $"
>>
>> is:2:initdefault:
>> fs::sysinit:/etc/bcheckrc </dev/console >/dev/console 2>&1
>> mt::sysinit:/etc/brc </dev/console >/dev/console 2>&1
>> link::wait:/etc/lnsyscon > /dev/console 2>&1 < /dev/null
>> s0:06s:wait:/etc/rc0 >/dev/console 2>&1 </dev/console
>> s1:1:wait:/sbin/suattr -C CAP_SHUTDOWN+ip -c "exec /etc/shutdown -y -iS -g0" >/dev/console 2>&1 </dev/console
>> s2:23:wait:/etc/rc2 >/dev/console 2>&1 </dev/console
>> s3:3:wait:/etc/rc3 >/dev/console 2>&1 </dev/console
>> s4:06:wait:/sbin/env LANG=C /etc/umountfs > /dev/console 2>&1
>> of:0:wait:/sbin/suattr -C CAP_SHUTDOWN+ip -c "exec /etc/uadmin 2 0" >/dev/console 2>&1 </dev/console
>> RB:6:wait:/etc/init.d/announce restart
>> rb:6:wait:/sbin/suattr -C CAP_SHUTDOWN+ip -c "exec /etc/uadmin 2 1" >/dev/console 2>&1 </dev/console
>>
>> #
>> # note that startgfx and stopgfx will manipulate the action
>> # on the following textport getty line. normal system usage
>> # does not involve either of these commands, so the action
>> # will not be changed and this file will not be modified.
>> # default behavior is "off" for cleaner system boot and
>> # to reduce the number of processes on the minimal system.
>> #
>> tp:23:off:/sbin/suattr -C CAP_FOWNER,CAP_DEVICE_MGT,CAP_DAC_WRITE+ip -c "exec /sbin/getty tport co_9600"
>> # textport
>>
>> #
>> # Use the ttym* or ttyf* device names and the du_* or dx_* gettydefs tags
>> # for ports with modems. See the getty(1M), uugetty(1M), init(1M),
>> # gettydefs(4), and inittab(4) man pages.
>> #
>> # on-board ports or on Challenge/Onyx MP machines, first IO4 board ports
>> t1:23:respawn:/sbin/suattr -C CAP_FOWNER,CAP_DEVICE_MGT,CAP_DAC_WRITE+ip -c "exec /sbin/getty ttyd1 console"
>> # alt console
>> t2:23:off:/sbin/suattr -C CAP_FOWNER,CAP_DEVICE_MGT,CAP_DAC_WRITE+ip -c "exec /sbin/getty -N ttyd2 co_9600"
>> # port 2

I have modified both of these to stop com2 being used as terminal port so that I can use it for MIDI keyboard input. This also allows it to be used by cu (as per /etc/uucp/Devices config).
I have put all the earlier stuff up as well as it does a lot of stuff that puts output on "/dev/console".
The use of "console" in the ttyd1 config is deceptive as it is actually a config item in /etc/gettydefs (nothing to do with /dev/console)

Cheers from Oz,

jwhat/John.
(This post was last modified: 11-11-2021, 11:27 PM by jwhat.)
jwhat
Octane/O350/Fuel User

Trade Count: (0)
Posts: 513
Threads: 29
Joined: Jul 2018
Location: Australia
Find Reply
11-11-2021, 11:14 PM
#22
RE: IRIX -- how to get a serial device?
Mine is very similar to jwhat's fwiw. I'll be on my Octane again this weekend, so I'll have time to fuck with stuff for this. But fwiw, the iLo on my RX server uses TCP/IP, not a RJ45 to serial Smile

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
11-12-2021, 02:04 AM
#23
RE: IRIX -- how to get a serial device?
Thanks John - I will check it out during the weekend.

And... UGH... the RJ45 to Serial... I hate them.
I inherited one from work (together with 2 Cisco APs), and I do intend to die with it.
35 EUR, seriously?!?!?!
Shiunbird
Administrator

Trade Count: (1)
Posts: 553
Threads: 45
Joined: Mar 2021
Location: Czech Republic
Find Reply
11-12-2021, 08:23 AM
#24
RE: IRIX -- how to get a serial device?
I'm up and running.

John, my file was exactly like yours. The problem?
I was connected to the wrong port. =)))))))

The pain and bruises of a thousand face palms.
Shiunbird
Administrator

Trade Count: (1)
Posts: 553
Threads: 45
Joined: Mar 2021
Location: Czech Republic
Find Reply
11-14-2021, 08:56 AM


Forum Jump:


Users browsing this thread: 1 Guest(s)