Home
Support

Knowledge Base

BSPs and drivers
Community resources
Product documentation
Questions?
Contact us

How to redirect a kernel dump to the serial port
 
________________________________________________________________________

Applicable Environment
________________________________________________________________________
  • Topic: How to redirect kernel dump to serial port
  • SDP: 6.3.0 SP3
  • Target: Supported X86 targets
________________________________________________________________________

Recommendation
________________________________________________________________________

A rebuild of the boot image (IFS) is required to change this setting. The startup program in the mkifs build file has arguments for the debug output. Change

startup-bios -s64k
to
startup-bios -s64k -K 8250.3f8^0.57600.1843200.16 -D 8250..57600

This will print the kernel dump on the first serial port with a baud rate of 57600.

How do I test this?
-> Run a program with a printf() in an ISR like in the attached example. This often results in a kernel crash. The kernel dump will be printed to the serial port. You have to connect the serial with another machine to see the output.

________________________________________________________________________
NOTE: This entry has been validated against the SDP version listed above. Use caution when considering this advice for any other SDP version. For supported releases, please reach out to QNX Technical Support if you have any questions/concerns.
________________________________________________________________________


Related Attachments
 Attachment Name Size Last Modified
 killer.c 393 bytes 11/5/2009 10:05 AM





Please contact us with your questions or concerns.