IRIX -- how to get a serial device?
#11
RE: IRIX -- how to get a serial device?
Does your HPE have an RJ45 iLo port?

Project: Temporarily lost at sea
Plan: World domination! Or something...
vishnu
Tezro, Octane2, 2 x Onyx4

Trade Count: (0)
Posts: 1,247
Threads: 42
Joined: Dec 2017
Location: Minneapolis, Minnesota USA
Find Reply
11-11-2021, 04:24 AM
#12
RE: IRIX -- how to get a serial device?
yes, but it's not responding over the network -- it isn't taking my cheap lenovo keyboard for VGA/USB, so I have no choice. I need to get in via serial and reset the iLo

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-11-2021, 04:28 AM
#13
RE: IRIX -- how to get a serial device?
I'm seeing stuff on the HPE website that says to use an "RJ45 to DB9 (female) cross adaptor," whatever that is, I've never heard of it before...

Project: Temporarily lost at sea
Plan: World domination! Or something...
vishnu
Tezro, Octane2, 2 x Onyx4

Trade Count: (0)
Posts: 1,247
Threads: 42
Joined: Dec 2017
Location: Minneapolis, Minnesota USA
Find Reply
11-11-2021, 04:33 AM
#14
RE: IRIX -- how to get a serial device?
Hi Raion,

have you configured:
- /etc/inittab
- /etc/uucp/Devices

I typically found these to be source of problems with IRIX serial coms and cu

In your /etc/uucp/Devices file you should have something like:

Direct ttyd2 - 9600 direct
Direct ttyd2 - 38400 direct

If you don't have the right inittab / Devices configuation cu will complain about device not configured or not available or something like that .

You can test by connecting cu windows from com1 to com2 and typing to yourself via serial connection or if you have com1 set up as console then you can cu @ 9600 from com2 to the console port...


Cheers from Oz,

jwhat/John.
(This post was last modified: 11-11-2021, 12:30 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, 06:59 AM
#15
RE: IRIX -- how to get a serial device?
All right, my results.
I have a cable that I use between an old PC laptop and my C8000, and the cable works, so we should be good there.
The C8000 console runs at 9600.

I had the port available in system manager but screen or cu would fail, so I followed John's instructs.
inittab was fine, so I uncommented Direct ttyd2 - 9600 direct. After rebooting:

cu -lttyd2 gives me Connected, but nothing.

Screen 4.00.02 seems to have a bug.

screen -s 9600 /dev/ttyd2
or
screen -L /dev/ttyd2 9600

quickly flash on the screen
"/dev/ttyd2: ioctl TIOCEXCL failed: invalid argument"
and then go blank.

Agile meeting number 498324 calls me. I will try again later. Any tips, let me know.
edit: clarity.
(This post was last modified: 11-11-2021, 08:49 AM by Shiunbird.)
Shiunbird
Administrator

Trade Count: (1)
Posts: 553
Threads: 45
Joined: Mar 2021
Location: Czech Republic
Find Reply
11-11-2021, 08:48 AM
#16
RE: IRIX -- how to get a serial device?
hi serial sgi'ers,

I get serial comms between my Mac using "screen" to my sgi using "cu".

The following is from my inittab:

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

To use the serial port with app on machines (as distinct from having it set up as a serial login port you need to have the "off" and not "respawn" config line.
Also note the difference in the getty command.

Also as part of testing if you do not have the /etc/uucp/Devices configured then you get this exact error message:

>> % cu -s9600 -l/dev/ttyd1
>> Connect failed: NO DEVICES AVAILABLE

This is because I have not configured ttyd1 (com1) on my machine as it a "console" port as per "inittab" above.

I really hate serial coms ;-)

When all else fails read the manual as the terminal system has quite a bit of configurable complexity to it: https://techpubs.jurassic.nl/manuals/062...index.html


Cheer from Oz,

jwhat/John.
(This post was last modified: 11-11-2021, 12:37 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, 12:14 PM
#17
RE: IRIX -- how to get a serial device?
I can confirm the configuration works, because I can console in from my C8000 (Linux hppa) and the Octane between ttyS2 on the C8000 and ttyd1 console on the Octane.

I had the error message you mentioned before fixing my /etc/uucp/Devices.

Where I am stuck, and trying to see if I get some data to help Raion, is out from the Octane to the C8000 gives me nothing. I know it's working because from a PC using putty it is working fine (and it's the same cable I used to get on the Octane from the C8000).

I'll review my inittab based on what you posted. I'm not sure how my ttyd2 is set there.

Thanks!

John,

I replaced
s2:23:wait:/etc/rc2 >/dev/console 2>&1 </dev/console
with
s2:23:off:/sbin/suattr -C CAP_FOWNER,CAP_DEVICE_MGT,CAP_DAC_WRITE+ip -c "exec /sbin/getty -N ttyd2 co_9600"

And my system froze on boot. A quick trip to single user mode and I'm back running.
(This post was last modified: 11-11-2021, 03:28 PM by Shiunbird.)
Shiunbird
Administrator

Trade Count: (1)
Posts: 553
Threads: 45
Joined: Mar 2021
Location: Czech Republic
Find Reply
11-11-2021, 02:59 PM
#18
RE: IRIX -- how to get a serial device?
Okay guys that's the info I wanted. Thank you guys, gonna try it shortly.

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-11-2021, 04:08 PM
#19
RE: IRIX -- how to get a serial device?
Ok yeah, I managed to get it going after fuckin' in the inittab for a while, but I also got a USB serial adapter finally from Bezozon, so either way it works.

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-11-2021, 08:32 PM
#20
RE: IRIX -- how to get a serial device?
I'm glad!

Could you share your inittab line?
Shiunbird
Administrator

Trade Count: (1)
Posts: 553
Threads: 45
Joined: Mar 2021
Location: Czech Republic
Find Reply
11-11-2021, 09:01 PM


Forum Jump:


Users browsing this thread: 1 Guest(s)