On Monday 14 May 2007 21:09, Rolf Brudeseth wrote:
> > ~ # /usr/lib/finish-install.d/90console
> [...]
> > + readlink /proc/1560/fd/0
> > + rawconsole=/dev/console
> Thanks. So the debian-installer process thinks a regular console is being
> used. That means that we do indeed need that redirection information you
> referred to.
> So, how do we determine which device is actually being used as console?
I see that this is all publicly available, so no problem sharing:
- IEEE 1275, IEEE Standard for Boot (Initialization Configuration)
Firmware: Core Requirements and Practices
- Power Architecture Platform Requirements (PAPR) at power.org
- Step 1:
$ cat /proc/device-tree/options/output-device
/vdevice/vty@30000000
==> hvsi0 or hvc0
$ cat /proc/device-tree/options/output-device
/vdevice/vty@30000001
==> hvsi1
- Step 2 (if hvsi0 or hvc0):
$ cat /proc/device-tree/vdevice/vty@30000000/compatible
hvterm-protocol
==> hvsi0
$ cat /proc/device-tree/vdevice/vty@30000000/compatible
hvterm
-- or --
hvterm1
==> hvc0
In other words:
hvterm-protocol ==> Serial port attached console at port 1 or 2 (non-HMC managed)
hvterm or hvterm1 ==> HMC managed console
Rolf