LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-01-2009, 03:54 PM   #1
csohns
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
Directing printk to serial console


I've been reading around the net about how to do this. Everyone directs me to Documentation/serial-console.txt.

I've added `console=ttyS0,115200n8 console=tty0' to my boot parameters and `T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100' to my inittab.

That all works fine, I get my serial console. Heck, this machine is fancy enough to be able to redirect all pre-OS boot text to the serial term, so I can see the entire boot process, can access CMOS and the bootloader (yay!). Unfortunately I still am not getting the printk messages.

What am I missing?
 
Old 10-01-2009, 08:22 PM   #2
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
printk probably pokes directly to screen memory
you will have to change the source
 
Old 10-02-2009, 12:44 PM   #3
csohns
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by smeezekitty View Post
printk probably pokes directly to screen memory
you will have to change the source
I looked at printk.c yesterday, it sends messages to a list of terms handed to it by init.
 
Old 10-03-2009, 01:59 AM   #4
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
huh, thats strange but its probably fixed to output on THAT computer.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
serial console pvpnguyen Red Hat 1 11-17-2007 01:42 PM
printk(KERN_DEBUG ...) vs printk(...) Sergei Lavrov Linux - Kernel 2 03-25-2007 04:41 PM
Can't get printk output directed to console xuanadoo Linux - Newbie 0 11-07-2006 08:40 PM
Serial Console zaicheke Linux - Networking 4 11-14-2004 07:55 PM
serial console ixion Linux - Software 3 03-19-2003 12:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration