Skip to contentSkip to conversation

how to capture long oops w/o having second machine

DISCUSSION Mohammad A. Haque 9 participants 15 messages Dec 12, 2000 – Dec 16, 2000

lore
Share & tools
lore
#0 lore raw

What's the best way to capture (manually or otherwise) a rather long oops that scrolls off my console without having a second machine?

I'm gonna try to compile in a framebuffer and use a high resolution and see if that'll hold it all when I get back later today.

Signature · 12 lines
=====================================================================
Mohammad A. Haque                              http://www.haque.net/ 
                                               [email protected]

  "Alcohol and calculus don't mix.             Project Lead
   Don't drink and derive." --Unknown          http://wm.themes.org/
                                               [email protected]
=====================================================================
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#1 lore raw
Quoted 5 lines

What's the best way to capture (manually or otherwise) a rather long oops that scrolls off my console without having a second machine?

I'm gonna try to compile in a framebuffer and use a high resolution and see if that'll hold it all when I get back later today.

shift+pageup ?

Xav
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#2 lore raw
Quoted 7 lines · Xavier Bestel
Quoted 5 lines

What's the best way to capture (manually or otherwise) a rather long oops that scrolls off my console without having a second machine?

I'm gonna try to compile in a framebuffer and use a high resolution and see if that'll hold it all when I get back later today.

shift+pageup ?

the problem with Shift-PgUP is that all the framebuffer drivers I tried (matrox, ati, vesa) corrupt the screen when it is used. The only way to use Shift-PgUp reliably I have ever seen was on vgacon. These bugs seemed to be there for years so I didn't even bother reporting them - I just got used to the idea "using fb? forget the Shift-PgUP then".

Regards,
Tigran

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#3 lore raw
In reply to Xavier Bestel

No go.

Quoted 2 lines · Xavier Bestel

shift+pageup ?

Signature · 12 lines
=====================================================================
Mohammad A. Haque                              http://www.haque.net/ 
                                               [email protected]

  "Alcohol and calculus don't mix.             Project Lead
   Don't drink and derive." --Unknown          http://wm.themes.org/
                                               [email protected]
=====================================================================
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#4 lore raw
In reply to Mohammad A. Haque

Someone gave me a really awesome idea about possibly using a palm pilot to capture the oops. Anyone know if it will be a problem using /dev/ttyUSB0 as the serial port?

Baiscally if I want to duplicate the environment in which I'm getting the oops, I need to be dialed out. That takes out COM1. I never gt my COM2 to work (can't figure out what's wrong. doesn't work under windows either). So that's out. I have a Keyspan USB PDA adapter that I use for my Palm Vx which shows up as /dev/ttyUSB0.

I guess if usb serial can't be used I'll try duplicating the oops w/o being dialed out.

Quoted 2 lines · Mohammad A. Haque

What's the best way to capture (manually or otherwise) a rather long oops that scrolls off my console without having a second machine?

Signature · 13 lines
=====================================================================
Mohammad A. Haque                              http://www.haque.net/
                                               [email protected]

  "Alcohol and calculus don't mix.             Project Lead
   Don't drink and derive." --Unknown          http://wm.themes.org/
                                               [email protected]
=====================================================================

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#5 lore raw
In reply to Mohammad A. Haque
Quoted 5 lines

What's the best way to capture (manually or otherwise) a rather long oops that scrolls off my console without having a second machine?

I'm gonna try to compile in a framebuffer and use a high resolution and see if that'll hold it all when I get back later today.

Tried using a printer? (Laser is not a good idea as they only print pages at a time.)

Signature · 5 lines
 Lab tests show that use of micro$oft causes cancer in lab animals
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#6 lore raw
In reply to Mohammad A. Haque
Quoted 4 lines · Mohammad A. Haque

Someone gave me a really awesome idea about possibly using a palm pilot to capture the oops. Anyone know if it will be a problem using /dev/ttyUSB0 as the serial port?

Quoted 8 lines

Baiscally if I want to duplicate the environment in which I'm getting the oops, I need to be dialed out. That takes out COM1. I never gt my COM2 to work (can't figure out what's wrong. doesn't work under windows either). So that's out. I have a Keyspan USB PDA adapter that I use for my Palm Vx which shows up as /dev/ttyUSB0.

I guess if usb serial can't be used I'll try duplicating the oops w/o being dialed out.

I don't know if /dev/ttyUSBX would work, but I think it would. People have successfully run consoles through the usb-serial drivers, but I'm not sure if the oops main console requires something different (like registering itself actually as a console?)

And then there's the nice problem of the fact that if the oops comes from the USB code, you will not see it come out the usb-serial driver :)

Let me know if you try this, and have any success (or find that it doesn't work.)

thanks,

greg k-h

Signature · 6 lines
greg@(kroah|wirex).com
http://immunix.org/~greg
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#7 lore raw

Nope, this didn't fly. Would have been neat if it did work. Maybe it can be made to work for future use?

Quoted 10 lines · Greg KH

I don't know if /dev/ttyUSBX would work, but I think it would. People have successfully run consoles through the usb-serial drivers, but I'm not sure if the oops main console requires something different (like registering itself actually as a console?)

And then there's the nice problem of the fact that if the oops comes from the USB code, you will not see it come out the usb-serial driver :)

Let me know if you try this, and have any success (or find that it doesn't work.)

Signature · 13 lines
=====================================================================
Mohammad A. Haque                              http://www.haque.net/
                                               [email protected]

  "Alcohol and calculus don't mix.             Project Lead
   Don't drink and derive." --Unknown          http://wm.themes.org/
                                               [email protected]
=====================================================================

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#8 lore raw

Try reading:

http://www.linuxhq.com/kernel/v2.3/doc/oops-tracing.txt.html

It mentions:

Patch the kernel with one of the crash dump patches. These save data to a floppy disk or video rom or a swap partition. None of these are standard kernel patches so you have to find and apply them yourself. Search kernel archives for kmsgdump, lkcd and oops+smram.

I don't know if the "dump to floppy" patch is maintained for the 2.4.0 series.

Miles

Quoted 16 lines · Mohammad A. Haque

Nope, this didn't fly. Would have been neat if it did work. Maybe it can be made to work for future use?

Quoted 10 lines · Greg KH

I don't know if /dev/ttyUSBX would work, but I think it would. People have successfully run consoles through the usb-serial drivers, but I'm not sure if the oops main console requires something different (like registering itself actually as a console?)

And then there's the nice problem of the fact that if the oops comes from the USB code, you will not see it come out the usb-serial driver :)

Let me know if you try this, and have any success (or find that it doesn't work.)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#9 lore raw

i've always been curious why none of the crash dump patches are default. an oops dumper alone would seem to be most useful. (i know anything more would be unacceptable 'cause linus isn't into debuggers ;)

-dean

Quoted 34 lines · Miles Lane

Try reading:

http://www.linuxhq.com/kernel/v2.3/doc/oops-tracing.txt.html

It mentions:

Patch the kernel with one of the crash dump patches. These save data to a floppy disk or video rom or a swap partition. None of these are standard kernel patches so you have to find and apply them yourself. Search kernel archives for kmsgdump, lkcd and oops+smram.

I don't know if the "dump to floppy" patch is maintained for the 2.4.0 series.

Miles

Quoted 14 lines · Mohammad A. Haque

Nope, this didn't fly. Would have been neat if it did work. Maybe it can be made to work for future use?

Quoted 8 lines · Greg KH

I don't know if /dev/ttyUSBX would work, but I think it would. People have successfully run consoles through the usb-serial drivers, but I'm not sure if the oops main console requires something different (like registering itself actually as a console?)

And then there's the nice problem of the fact that if the oops comes from the USB code, you will not see it come out the usb-serial driver :)

Quoted 9 lines
Quoted 2 lines
Quoted 2 lines

Let me know if you try this, and have any success (or find that it doesn't work.)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/

#10 lore raw

Wouldn't you know it. I've patched my kernel with kdb and now I can't get it to throw up.

Maybe it'll do it once this mail gets sent out like it did last time.

I'd prefer a dumper also. I went and grabbed LKCD but it didn't patch cleanly against test12 so I decided against it.

Quoted 7 lines · dean gaudet

i've always been curious why none of the crash dump patches are default. an oops dumper alone would seem to be most useful. (i know anything more would be unacceptable 'cause linus isn't into debuggers ;)

-dean

Signature · 12 lines
=====================================================================
Mohammad A. Haque                              http://www.haque.net/ 
                                               [email protected]

  "Alcohol and calculus don't mix.             Project Lead
   Don't drink and derive." --Unknown          http://wm.themes.org/
                                               [email protected]
=====================================================================
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#11 lore raw
In reply to Mohammad A. Haque
Quoted 3 lines · Mohammad A. Haque

Someone gave me a really awesome idea about possibly using a palm pilot to capture the oops. Anyone know if it will be a problem using /dev/ttyUSB0 as the serial port?

The driver itself has to provide support for serial console. If the USB serial driver doesn't (I don't know) it won't work. Check the config options for USB serial, if it doesn't offer an option for console on USB serial port then you're out of luck.

Unless the USB serial driver in some strange way hooks into the standard serial driver, but then someone more knowledgeable should answer that question.

Signature · 6 lines
 Andreas E. Bombe <[email protected]>    DSA key 0x04880A44
http://home.pages.de/~andreas.bombe/    http://linux1394.sourceforge.net/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#12 lore raw
In reply to Mohammad A. Haque
Quoted 5 lines · Andreas Bombe
Quoted 3 lines · Mohammad A. Haque

Someone gave me a really awesome idea about possibly using a palm pilot to capture the oops. Anyone know if it will be a problem using /dev/ttyUSB0 as the serial port?

Quoted 8 lines

The driver itself has to provide support for serial console. If the USB serial driver doesn't (I don't know) it won't work. Check the config options for USB serial, if it doesn't offer an option for console on USB serial port then you're out of luck.

Unless the USB serial driver in some strange way hooks into the standard serial driver, but then someone more knowledgeable should answer that question.

Nope, it doesn't specifically support the CONFIG_SERIAL_CONSOLE with all of the register_console code, etc., so this will not work, sorry.

But it's something that I would gladly take a patch for :)

greg k-h

Signature · 6 lines
greg@(kroah|wirex).com
http://immunix.org/~greg
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#13 lore raw
In reply to Mohammad A. Haque

Hi!

Quoted 10 lines
Quoted 10 lines

Someone gave me a really awesome idea about possibly using a palm pilot to capture the oops. Anyone know if it will be a problem using /dev/ttyUSB0 as the serial port?

Baiscally if I want to duplicate the environment in which I'm getting the oops, I need to be dialed out. That takes out COM1. I never gt my COM2 to work (can't figure out what's wrong. doesn't work under windows either). So that's out. I have a Keyspan USB PDA adapter that I use for my Palm Vx which shows up as /dev/ttyUSB0.

Quoted 7 lines
Quoted 2 lines

I guess if usb serial can't be used I'll try duplicating the oops w/o being dialed out.

I don't know if /dev/ttyUSBX would work, but I think it would. People have successfully run consoles through the usb-serial drivers, but I'm not sure if the oops main console requires something different (like registering itself actually as a console?)

No, you can't put kernel console on usb. Kernel console has to work irq-less.
Pavel

Signature · 6 lines
I'm [email protected]. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at [email protected]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
#14 lore raw
In reply to Mohammad A. Haque

Hi!

Quoted 9 lines
Quoted 9 lines
Quoted 3 lines

Someone gave me a really awesome idea about possibly using a palm pilot to capture the oops. Anyone know if it will be a problem using /dev/ttyUSB0 as the serial port?

The driver itself has to provide support for serial console. If the USB serial driver doesn't (I don't know) it won't work. Check the config options for USB serial, if it doesn't offer an option for console on USB serial port then you're out of luck.

Quoted 8 lines
Quoted 3 lines

Unless the USB serial driver in some strange way hooks into the standard serial driver, but then someone more knowledgeable should answer that question.

Nope, it doesn't specifically support the CONFIG_SERIAL_CONSOLE with all of the register_console code, etc., so this will not work, sorry.

But it's something that I would gladly take a patch for :)

Forget it. It is almost impossible, unless you can do usb without interrupts. (You can't).
Pavel

Signature · 6 lines
I'm [email protected]. "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at [email protected]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/