Skip to contentSkip to conversation

netconsole as normal console for userspace messages?

DISCUSSION Arkadiusz Miskiewicz 3 participants 5 messages Aug 30, 2009 – Sep 1, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,

Can netconsole be somehow used to see userspace messages, too? Something similar to console=ttySX... just =netconsole.

Signature · 2 lines
Arkadiusz Miśkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/
#1 lore raw
Quoted 1 line · Arkadiusz Miskiewicz

Hi,

Hi,

Quoted 4 lines

Can netconsole be somehow used to see userspace messages, too? Something similar to console=ttySX... just =netconsole.

AFAIK it can't, but AFAICR some time ago the netconsole maintainer gave some hope to some Debian guy with a similar question.

Jarek P.

#2 lore raw
Quoted 11 lines · Jarek Poplawski
Quoted 1 line · Arkadiusz Miskiewicz

Hi,

Hi,

Quoted 4 lines

Can netconsole be somehow used to see userspace messages, too? Something similar to console=ttySX... just =netconsole.

AFAIK it can't, but AFAICR some time ago the netconsole maintainer gave some hope to some Debian guy with a similar question.

It is, as they say, just a simple matter of programming to get a full bidirectional console out of it. As cool as that would be, I just haven't had time for it.

Signature · 1 line
http://selenic.com : development and support for Mercurial and Linux
#3 lore raw
Quoted 9 lines · Matt Mackall
Quoted 8 lines · Jarek Poplawski
Quoted 1 line · Arkadiusz Miskiewicz

Hi,

Hi,

Quoted 2 lines

Can netconsole be somehow used to see userspace messages, too? Something similar to console=ttySX... just =netconsole.

Quoted 6 lines
Quoted 2 lines

AFAIK it can't, but AFAICR some time ago the netconsole maintainer gave some hope to some Debian guy with a similar question.

It is, as they say, just a simple matter of programming to get a full bidirectional console out of it. As cool as that would be, I just haven't had time for it.

Unidirectional console would be enough for me but it seems that netconsole isn't capable even for that (userspace messages).

Signature · 2 lines
Arkadiusz Miśkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/
#4 lore raw
Quoted 13 lines · Arkadiusz Miskiewicz
Quoted 12 lines · Matt Mackall
Quoted 10 lines · Jarek Poplawski
Quoted 1 line · Arkadiusz Miskiewicz

Hi,

Hi,

Quoted 2 lines

Can netconsole be somehow used to see userspace messages, too? Something similar to console=ttySX... just =netconsole.

AFAIK it can't, but AFAICR some time ago the netconsole maintainer gave some hope to some Debian guy with a similar question.

Quoted 6 lines
Quoted 3 lines

It is, as they say, just a simple matter of programming to get a full bidirectional console out of it. As cool as that would be, I just haven't had time for it.

Unidirectional console would be enough for me but it seems that netconsole isn't capable even for that (userspace messages).

Yes. What's needed is to add a low-level tty interface and register it with the tty core. Most of that is attaching the tty_ops->write() method to netpoll's send_msg in the obvious way. Just about all the other methods are optional or trivial.

Once you've got unidirectional working, bidirectional is approximately one line of additional code to attach the read side: call tty_insert_flip_string(my_tty, buf, len) in netpoll's receive function.

Signature · 1 line
http://selenic.com : development and support for Mercurial and Linux