Re: [PATCH v2] netconsole: Add tty driver

From: Tetsuo Handa
Date: Wed Apr 02 2014 - 08:17:10 EST


Struan Bartlett wrote:
> Adds tty driver to netconsole module. When module is loaded,
> creates /dev/netcon0 device and enables support for console=netcon0
> kernel cmdline option, causing /dev/console output to be sent to
> /dev/netcon0. This allows startup/shutdown script output from
> headless platforms to be logged over (secure) network.

Excuse me, but I think that the netconsole logging can work only during network
interfaces (e.g. eth0) are up. Did this patch description assume that the
network interfaces are up before the startup script is started and the shutdown
script is finished before the network interfaces are down?

By the way, I uploaded a logger specialized for receiving netconsole messages
to http://sourceforge.jp/projects/akari/scm/svn/tree/head/branches/udplogger/ .
The shortage of netconsole approach compared to serial console approach is that
the netconsole logging cannot work if the network interfaces are down. If we
could log kernel messages via the netconsole module while initializing kdump
kernel by adding console=netcon0 to kdump kernel's command line, we can utilize
netconsole as an alternative tool for logging kernel messages in case
initialization of kdump kernel fails.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/