public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Custom kernel logging using an USB microcontroller?
@ 2010-12-12 23:31 Jouko Orava
  2010-12-14 14:34 ` Shaun Ruffell
  0 siblings, 1 reply; 3+ messages in thread
From: Jouko Orava @ 2010-12-12 23:31 UTC (permalink / raw)
  To: linux-kernel

Hello,

Would any of you happen to have written a kernel module for
custom kernel logging to a USB microcontroller?

I'm having unexpected shutdowns/reboots with absolutely no
sign of the cause in any logs, when using the radeon driver
heavily, and having kernel MCE support enabled. Disabling kernel
MCE support seems to eliminate the problem. See
https://bugs.freedesktop.org/show_bug.cgi?id=30349 for details.

I don't have suitable hardware for a serial console, so
this is proving really difficult to investigate.

I do, however, have a USB AVR microcontroller (pjrc.com/teensy),
which has a few thousand bytes of RAM; I'd like to use it as a custom
logging device. Specifically, I need an in-kernel interface to log
directly to the USB microcontroller, so I can find out the codepath
causing the problems I'm having. (I suspect thermal or voltage
misreporting, so a printk interface would be useful.)
I don't really want nor need to save the entire kernel log.

Since these USB microcontrollers are dirt cheap (24 USD), need only
an USB cable to work, and are very easy to program as HID devices using
avr-gcc, it occurs to me that this has probably been already done.
It seems like a useful tool for any kernel or kernel module developer.

So, any pointers to existing code I could adapt?
Or hints on how the kernel-side logging via USB should be done?

Thanks for your time,
	Jouko Orava

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-12-14 21:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-12 23:31 Custom kernel logging using an USB microcontroller? Jouko Orava
2010-12-14 14:34 ` Shaun Ruffell
2010-12-14 21:39   ` Jouko Orava

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox