Skip to contentSkip to conversation

lost printk's

Linux-ia64 Christian Hildner 5 participants 6 messages Oct 16, 2001

lore
Share & tools
lore
#0 lore raw

Hi everybody!

I want to write a low level driver for linux on ia64. During testing the machine often crashes very heavily. After reboot most of the printk's that have been done before the crash are lost. Maybe they are hold in the disk cache when the crash occurs. Does anybody know how to get the printk's written on disk?

Christian

#1 lore raw
Quoted 4 lines · Christian Hildner

I want to write a low level driver for linux on ia64. During testing the machine often crashes very heavily. After reboot most of the printk's that have been done before the crash are lost. Maybe they are hold in the disk cache when the crash occurs.

Still in memory. printk() -> console drivers -> kernel log buffer -> klogd (user space) -> syslogd -> kernel I/O subsystem -> disk. Crash too soon and the data does not get to disk.

Quoted 1 line

Does anybody know how to get the printk's written on disk?

If a crash kills the user space tasks or the disk I/O subsystem then your printk does not get to disk. Use a serial console and capture the output on a second machine, that goes printk() -> console drivers -> serial line. Still no guarantees that you get all output, some crashes kill the serial line driver as well. If your problem is that bad then use the kernel debugger, ftp://oss.sgi.com/projects/kdb/download/ia64.

#2 lore raw
In reply to Christian Hildner
Quoted 4 lines · Keith Owens

If a crash kills the user space tasks or the disk I/O subsystem then your printk does not get to disk. Use a serial console and capture the output on a second machine, that goes printk() -> console drivers -> serial line.

Can anyone recommend a console server that works well with Itanium machines? The problem with most console servers (or inversely EFI) is that they don't run at 115200 baud. Is everyone just running a line to another PC? Is there a console server that can handle several of these machines?

Signature · 3 lines
Nate Straz                                              [email protected]
sgi, inc                                           http://www.sgi.com/
Linux Test Project                                  http://ltp.sf.net/
#3 lore raw
In reply to Christian Hildner

Nathan-

I've used a Rocketport serial concentrator with a BigSur quite successfully. A single Rocketport PCI card can handle up to 32 ports. I've never had an issue with 115200 baud, I set up EFI to automatically boot Linux so I don't need to worry about running EFI over the serial line and then just tell Linux to run the serial line at 9600.

Quoted 20 lines · Nathan Straz
Quoted 4 lines · Keith Owens

If a crash kills the user space tasks or the disk I/O subsystem then your printk does not get to disk. Use a serial console and capture the output on a second machine, that goes printk() -> console drivers -> serial line.

Can anyone recommend a console server that works well with Itanium machines? The problem with most console servers (or inversely EFI) is that they don't run at 115200 baud. Is everyone just running a line to another PC? Is there a console server that can handle several of these machines?

Signature · 8 lines
Nate Straz                                              [email protected]
sgi, inc                                           http://www.sgi.com/
Linux Test Project                                  http://ltp.sf.net/

_______________________________________________
Linux-IA64 mailing list
[email protected]
http://lists.linuxia64.org/lists/listinfo/linux-ia64
Signature · 4 lines
Don Dugger
"Censeo Toto nos in Kansa esse decisse." - D. Gale
[email protected]
Ph: 303/652-0870x117
#4 lore raw
In reply to Christian Hildner
Quoted 5 lines

Can anyone recommend a console server that works well with Itanium machines? The problem with most console servers (or inversely EFI) is that they don't run at 115200 baud. Is everyone just running a line to another PC? Is there a console server that can handle several of these machines?

EFI does work at 115200 -- i use that here in my setup; but I only have it hooked up to a PC.

randolph

Signature · 4 lines
   @..@                                         http://www.TauSq.org/
  (----)
 ( >__< )
 ^^ ~~ ^^
#5 lore raw
In reply to Christian Hildner
Quoted 8 lines · Randolph Chung
Quoted 5 lines

Can anyone recommend a console server that works well with Itanium machines? The problem with most console servers (or inversely EFI) is that they don't run at 115200 baud. Is everyone just running a line to another PC? Is there a console server that can handle several of these machines?

EFI does work at 115200 -- i use that here in my setup; but I only have it hooked up to a PC.

Maybe I should clarify that.

Most console servers (that I've run across) don't run at 115200. EFI _only_ runs at 115200. :(

Signature · 3 lines
Nate Straz                                              [email protected]
sgi, inc                                           http://www.sgi.com/
Linux Test Project                                  http://ltp.sf.net/