1752793 Members
6128 Online
108789 Solutions
New Discussion юеВ

mknod /dev/tty0p1

 
SOLVED
Go to solution
Tom Dawson
Regular Advisor

mknod /dev/tty0p1

Hi,

I'm trying to connect an APC Smart-UPS to a RP3410. I have the APC provided cable ( p/n 940-0024C ) connected to the "UPS" port of the "W" cable on the RP3410.

My understanding is that the "UPS" port uses device file /dev/tty0p1. But this file doesn't exist on my system. I do have a tty0p0:

crw--w--w- 1 bin bin 1 0x000000 Jan 25 2006 tty0p0

So I can surmise that the major number for tty0p1 should be "1".

Can someone give me some help on what the mknod command should be for creating /dev/tty0p1?

Thanks,
Tom
6 REPLIES 6
Torsten.
Acclaimed Contributor
Solution

Re: mknod /dev/tty0p1

"My understanding is that the "UPS" port uses device file /dev/tty0p1."

Why?



I'm pretty sure it is tty0p0, hw-path 0/7/1/0.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
A. Clay Stephenson
Acclaimed Contributor

Re: mknod /dev/tty0p1

I don't have a 34xx handy but Here is my best guess:

mknod /dev/tty0p1 c 1 0x000100.

Man 7 termio
If it ain't broke, I can fix that.
Tom Dawson
Regular Advisor

Re: mknod /dev/tty0p1

Torsten,

Because of a thread I found here on the forum from March of 2001 that said:

/dev/tty0p0 - Console
/dev/tty0p1 - UPS
/dev/tty0p2 - Remote/Modem

That made sense to me with the Consle being on port 0.

Is that not the case?

Thanks,
Tom
Jaime Bolanos Rojas.
Honored Contributor

Re: mknod /dev/tty0p1

Tom,

Torsten is right about the device and hardware path.
Take a look at this HP document to confirm that information

KBRC00016167

to fix your issue, follow Clay's solution but with the right variables.

Regards,

Jaime.
Work hard when the need comes out.
Tom Dawson
Regular Advisor

Re: mknod /dev/tty0p1

Torsten,

Thanks, you were correct. I've installed the PowerChute Software and it's talking to the UPS.

Jaime,

Thanks for confirming.

Clay,

Since Torten was correct, I didn't have to actually build the device file. Thanks anyway!

Tom
Torsten.
Acclaimed Contributor

Re: mknod /dev/tty0p1

Tom,

the thread you mentioned is about a rp54x0 (aka L-Class).
This is really different. The systems have in common that they can run HP-UX, that's it.

The HW layout (and the HW pathes also) depending on the system in every case.

Newer systems (cell-based) doesn't have an UPS port at all, because it makes no sense to connect only one partition to the ups. They rely on network connected UPS.

Nice to see this problem solved - have fun!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!