All of lore.kernel.org
 help / color / mirror / Atom feed
* Naming inconsistency for serial device on sparc
@ 2019-04-14  7:21 John Paul Adrian Glaubitz
  2019-04-14 20:18 ` David Miller
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: John Paul Adrian Glaubitz @ 2019-04-14  7:21 UTC (permalink / raw)
  To: sparclinux

Hello!

We recently ran into a regression in the debian-installer on
sparc64 which made the serial console unusable during installation.

It turned out that the regression was introduced by a change in
the rootskel package [1] and the problem is that "steal-tty" is
not able to find the active serial console and pick it up for
the installer.

After looking at the code changes, we found out that the problem is
that in the sparc64 kernel, the device names for the serial console
in /proc/consoles does not match the one under /sys:

root@landau:~# cat /proc/consoles 
ttyHV0               -W- (EC p  )    4:64
tty0                 -WU (E     )    4:1
root@landau:~#

root@landau:~# readlink /sys/dev/char/4:64
../../devices/root/f0299a70/f029b788/tty/ttyS0
root@landau:~#

Thus, any software reading /proc/consoles will not be able to figure
out what the name of the serial device is.

Is there any particular reason this device name mismatch exists or
is it just a bug we can fix?

Thanks,
Adrian

> [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug’6539
> [2] https://salsa.debian.org/installer-team/rootskel/commit/b6048aafed7d73ba42da04d6f7a798710f271384#11da32c570b25101c7d830e4fd6c254c323cddc8_21_16

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-04-26 12:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-14  7:21 Naming inconsistency for serial device on sparc John Paul Adrian Glaubitz
2019-04-14 20:18 ` David Miller
2019-04-14 20:25 ` John Paul Adrian Glaubitz
2019-04-14 21:13 ` David Miller
2019-04-14 21:17 ` John Paul Adrian Glaubitz
2019-04-26 12:07 ` John Paul Adrian Glaubitz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.