LinuxQuestions.org
Register a domain and help support LQ
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, 04: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, 09:22 PM   #2
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,330

Rep: Reputation: 227Reputation: 227Reputation: 227
printk probably pokes directly to screen memory
you will have to change the source
 
Old 10-02-2009, 01: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, 02:59 AM   #4
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,330

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:42 PM
printk(KERN_DEBUG ...) vs printk(...) Sergei Lavrov Linux - Kernel 2 03-25-2007 05:41 PM
Can't get printk output directed to console xuanadoo Linux - Newbie 0 11-07-2006 09:40 PM
Serial Console zaicheke Linux - Networking 4 11-14-2004 08:55 PM
serial console ixion Linux - Software 3 03-19-2003 01:36 PM


All times are GMT -5. The time now is 08:30 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration