* Kernelmessage to usbstick?
@ 2009-01-10 19:13 Hans de Bruin
2009-01-10 22:53 ` Andi Kleen
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Hans de Bruin @ 2009-01-10 19:13 UTC (permalink / raw)
To: linux-kernel
Would it be possible to send kernel messages to an usbstick? On poweroff
my laptop displays a kernel trace and a final message:
poweroff[3114] exited with preempt_count 2
/etc/rc.d/rc.0: line 265: 3114 Segementation fault /sbin/poweroff.
I don't have a serial cable within reach, but plenty of usbsticks.
--
Hans
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Kernelmessage to usbstick?
2009-01-10 19:13 Kernelmessage to usbstick? Hans de Bruin
@ 2009-01-10 22:53 ` Andi Kleen
2009-01-10 22:58 ` Oliver Neukum
2009-01-13 21:31 ` Hans de Bruin
2009-01-18 8:14 ` Pavel Machek
2 siblings, 1 reply; 7+ messages in thread
From: Andi Kleen @ 2009-01-10 22:53 UTC (permalink / raw)
To: Hans de Bruin; +Cc: linux-kernel
Hans de Bruin <bruinjm@xs4all.nl> writes:
> Would it be possible to send kernel messages to an usbstick? On
> poweroff my laptop displays a kernel trace and a final message:
> poweroff[3114] exited with preempt_count 2
> /etc/rc.d/rc.0: line 265: 3114 Segementation fault /sbin/poweroff.
> I don't have a serial cable within reach, but plenty of usbsticks.
There's a mtdoops.c indeed, but it currently only works on
MTD controlled flash devices, not usb sticks.
However usb sticks would need the USB subsystem to be running and it's
unlikely that will be the case really late in poweroff. So it might
not help.
-Andi
--
ak@linux.intel.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Kernelmessage to usbstick?
2009-01-10 22:53 ` Andi Kleen
@ 2009-01-10 22:58 ` Oliver Neukum
2009-01-11 13:18 ` Hans de Bruin
2009-01-11 18:07 ` Mark Lord
0 siblings, 2 replies; 7+ messages in thread
From: Oliver Neukum @ 2009-01-10 22:58 UTC (permalink / raw)
To: Andi Kleen; +Cc: Hans de Bruin, linux-kernel
Am Saturday 10 January 2009 23:53:15 schrieb Andi Kleen:
> Hans de Bruin <bruinjm@xs4all.nl> writes:
>
> > Would it be possible to send kernel messages to an usbstick? On
> > poweroff my laptop displays a kernel trace and a final message:
> > poweroff[3114] exited with preempt_count 2
> > /etc/rc.d/rc.0: line 265: 3114 Segementation fault /sbin/poweroff.
> > I don't have a serial cable within reach, but plenty of usbsticks.
>
> There's a mtdoops.c indeed, but it currently only works on
> MTD controlled flash devices, not usb sticks.
>
> However usb sticks would need the USB subsystem to be running and it's
> unlikely that will be the case really late in poweroff. So it might
> not help.
USB in turn needs PCI, interrupts and DMA.
Regards
Oliver
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Kernelmessage to usbstick?
2009-01-10 22:58 ` Oliver Neukum
@ 2009-01-11 13:18 ` Hans de Bruin
2009-01-11 18:07 ` Mark Lord
1 sibling, 0 replies; 7+ messages in thread
From: Hans de Bruin @ 2009-01-11 13:18 UTC (permalink / raw)
To: linux-kernel; +Cc: Oliver Neukum, Andi Kleen
Oliver Neukum wrote:
> Am Saturday 10 January 2009 23:53:15 schrieb Andi Kleen:
>> Hans de Bruin <bruinjm@xs4all.nl> writes:
>>
>>> Would it be possible to send kernel messages to an usbstick? On
>>> poweroff my laptop displays a kernel trace and a final message:
>>> poweroff[3114] exited with preempt_count 2
>>> /etc/rc.d/rc.0: line 265: 3114 Segementation fault /sbin/poweroff.
>>> I don't have a serial cable within reach, but plenty of usbsticks.
>> There's a mtdoops.c indeed, but it currently only works on
>> MTD controlled flash devices, not usb sticks.
>>
>> However usb sticks would need the USB subsystem to be running and it's
>> unlikely that will be the case really late in poweroff. So it might
>> not help.
>
> USB in turn needs PCI, interrupts and DMA.
>
I just found out even a serial cable would not help, since the only comm
device in my laptop ends in a build in modem. Since there is no parallel
printer port either I will have to use pen and paper. In the mean time,
rc1 broke my keyboard.
--
Hans
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Kernelmessage to usbstick?
2009-01-10 22:58 ` Oliver Neukum
2009-01-11 13:18 ` Hans de Bruin
@ 2009-01-11 18:07 ` Mark Lord
1 sibling, 0 replies; 7+ messages in thread
From: Mark Lord @ 2009-01-11 18:07 UTC (permalink / raw)
To: Oliver Neukum; +Cc: Andi Kleen, Hans de Bruin, linux-kernel
Oliver Neukum wrote:
> Am Saturday 10 January 2009 23:53:15 schrieb Andi Kleen:
>> Hans de Bruin <bruinjm@xs4all.nl> writes:
>>
>>> Would it be possible to send kernel messages to an usbstick? On
>>> poweroff my laptop displays a kernel trace and a final message:
>>> poweroff[3114] exited with preempt_count 2
>>> /etc/rc.d/rc.0: line 265: 3114 Segementation fault /sbin/poweroff.
>>> I don't have a serial cable within reach, but plenty of usbsticks.
>> There's a mtdoops.c indeed, but it currently only works on
>> MTD controlled flash devices, not usb sticks.
>>
>> However usb sticks would need the USB subsystem to be running and it's
>> unlikely that will be the case really late in poweroff. So it might
>> not help.
>
> USB in turn needs PCI, interrupts and DMA.
..
Dunno about an oops, but I currently use a USB device to
display debug messages from the shutdown procedure,
all the way to kernel_halt().
So long as the Oops doesn't kill too much low level stuff,
it's probably feasible. Except for the very slow write times
for many USB storage devices.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Kernelmessage to usbstick?
2009-01-10 19:13 Kernelmessage to usbstick? Hans de Bruin
2009-01-10 22:53 ` Andi Kleen
@ 2009-01-13 21:31 ` Hans de Bruin
2009-01-18 8:14 ` Pavel Machek
2 siblings, 0 replies; 7+ messages in thread
From: Hans de Bruin @ 2009-01-13 21:31 UTC (permalink / raw)
To: linux-kernel
Hans de Bruin wrote:
> Would it be possible to send kernel messages to an usbstick? On poweroff
> my laptop displays a kernel trace and a final message:
> poweroff[3114] exited with preempt_count 2
> /etc/rc.d/rc.0: line 265: 3114 Segementation fault /sbin/poweroff.
> I don't have a serial cable within reach, but plenty of usbsticks.
>
The shutdown problem just disappeared.
--
Hans
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Kernelmessage to usbstick?
2009-01-10 19:13 Kernelmessage to usbstick? Hans de Bruin
2009-01-10 22:53 ` Andi Kleen
2009-01-13 21:31 ` Hans de Bruin
@ 2009-01-18 8:14 ` Pavel Machek
2 siblings, 0 replies; 7+ messages in thread
From: Pavel Machek @ 2009-01-18 8:14 UTC (permalink / raw)
To: Hans de Bruin; +Cc: linux-kernel
On Sat 2009-01-10 20:13:10, Hans de Bruin wrote:
> Would it be possible to send kernel messages to an usbstick? On poweroff
> my laptop displays a kernel trace and a final message:
> poweroff[3114] exited with preempt_count 2
> /etc/rc.d/rc.0: line 265: 3114 Segementation fault /sbin/poweroff.
> I don't have a serial cable within reach, but plenty of usbsticks.
digital camera :-).
...or green display with *long* phosphor burn time.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-01-18 8:22 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-10 19:13 Kernelmessage to usbstick? Hans de Bruin
2009-01-10 22:53 ` Andi Kleen
2009-01-10 22:58 ` Oliver Neukum
2009-01-11 13:18 ` Hans de Bruin
2009-01-11 18:07 ` Mark Lord
2009-01-13 21:31 ` Hans de Bruin
2009-01-18 8:14 ` Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).