Re: tty: add 'active' sysfs attribute to tty0 and console device

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dr. Werner Fink
Date: Friday, November 19, 2010 - 6:21 am

On Thu, Nov 18, 2010 at 02:41:23PM +0000, Alan Cox wrote:

ACK ... nevertheless sometime it could be very useful to be able to
debug the user space boot process on e.g. big irons aka mainframes.


Even with this case and IMHO a copy of all system console messages
would be sometimes useful for debugging.


Currently the bootlogd(8) or blogd(8) parse the kernels command line
and if available do an ioctl TIOCGDEV (not supported by the upstream
kernel), then create a pty/tty pair, do an ioctl TIOCCONS to forward
the system console to the created tty, now both daemons can parse
all console messages to write out logs and write all copies to the
former devices node(s) (compare with http://lkml.org/lkml/2000/12/15/160
and http://lkml.org/lkml/1998/3/21/57).


I've seen that in the changelog of the kernel ... maybe this would
a good replacment for the /dev/kmsg redirect of stdout/stderr in initrd.


     Werner

-- 
System V style init programs - http://savannah.nongnu.org/projects/sysvinit/
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: tty: add 'active' sysfs attribute to tty0 and console ..., Lennart Poettering, (Tue Nov 16, 2:36 pm)
Re: tty: add 'active' sysfs attribute to tty0 and console ..., Lennart Poettering, (Tue Nov 16, 2:42 pm)
Re: tty: add 'active' sysfs attribute to tty0 and console ..., Lennart Poettering, (Tue Nov 16, 3:58 pm)
Re: tty: add 'active' sysfs attribute to tty0 and console ..., Lennart Poettering, (Tue Nov 16, 4:10 pm)
Re: tty: add 'active' sysfs attribute to tty0 and console ..., Lennart Poettering, (Tue Nov 16, 4:18 pm)
Re: tty: add 'active' sysfs attribute to tty0 and console ..., Valdis.Kletnieks, (Wed Nov 17, 3:01 pm)
Re: tty: add 'active' sysfs attribute to tty0 and console ..., Lennart Poettering, (Wed Nov 17, 6:48 pm)
Re: tty: add 'active' sysfs attribute to tty0 and console ..., Lennart Poettering, (Wed Nov 17, 7:29 pm)
Re: tty: add 'active' sysfs attribute to tty0 and console ..., Dr. Werner Fink, (Fri Nov 19, 6:21 am)
Re: tty: add 'active' sysfs attribute to tty0 and console ..., Dr. Werner Fink, (Fri Nov 19, 10:07 am)
Re: tty: add 'active' sysfs attribute to tty0 and console ..., Dr. Werner Fink, (Fri Nov 19, 11:41 am)