Re: how to redirect serial console to telnet session?

Russell King (rmk@arm.linux.org.uk)
Fri, 10 May 2002 16:29:02 +0100


On Fri, May 10, 2002 at 10:32:10AM -0400, Chris Friesen wrote:
> I found some patches by Ingo Molnar, but they look like kernel mods.

That's the one.

> What I'm really looking for is a way to redirect this from userspace in
> a stock kernel.

There isn't anything in the stock kernel that will let you do this
without some form of patches being applied.

> I want the serial console as normal, but then for just debugging this
> one thing I want to telnet in over ethernet and basically redirect /dev/ttyS0
> onto my telnet session.

telnet (and its associated protocol) is a completely different beast to
serial consoles - in fact any network connection is.

If you really want to get at the kernel message data, there's dmesg
or a simple cat /proc/kmsg. The problem with these is, when the kernel
crashes, you won't get the last messages. Also, if you're generating
more than 16K of messages before allowing the kernel to continue (and
thus user space) you're also going to loose messages.

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/