Skip to contentSkip to conversation

netconsole and a serial one

DISCUSSION Jon Smirl 2 participants 3 messages Sep 22, 2008

lore
Share & tools
lore

Jon Smirl

author
#0 lore raw

I have both netconsole and a serial console setup on an embedded system. This is what I need for the boot process.

After I'm booted I want to turn off printk() output to the serial console but keep it going to netconsole.
I've been googling for an hour, how do I do this?

I need to turn off the serial output after boot because serial printk() disables interrupts for up to 1ms which is enough to cause me to lose a lot of other interrupts.

Signature · 2 lines
Jon Smirl
[email protected]
#1 lore raw
Quoted 10 lines · Jon Smirl

I have both netconsole and a serial console setup on an embedded system. This is what I need for the boot process.

After I'm booted I want to turn off printk() output to the serial console but keep it going to netconsole.
I've been googling for an hour, how do I do this?

I need to turn off the serial output after boot because serial printk() disables interrupts for up to 1ms which is enough to cause me to lose a lot of other interrupts.

There's no way (that I know of) to do this presently. However, I think David Howells has been working on a patch that reduces the amount of time printk spends with IRQs disabled.

David?

Cheers,

Jeff

author
#2 lore raw
Quoted 9 lines · Jeff Moyer
Quoted 7 lines · Jon Smirl

I have both netconsole and a serial console setup on an embedded system. This is what I need for the boot process.

After I'm booted I want to turn off printk() output to the serial console but keep it going to netconsole.
I've been googling for an hour, how do I do this?

Quoted 7 lines
Quoted 3 lines

I need to turn off the serial output after boot because serial printk() disables interrupts for up to 1ms which is enough to cause me to lose a lot of other interrupts.

There's no way (that I know of) to do this presently. However, I think David Howells has been working on a patch that reduces the amount of time printk spends with IRQs disabled.

I looked into interrupts and printk several years ago. If I recall correctly printk() prints with interrupts off to ensure stability in an OOPS situation. Could serial printk() be changed to disable interrupts only in the OOPS situation? It's all of the other non-critical printks that are impacting my system.

Signature · 2 lines
Jon Smirl
[email protected]