LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 04-09-2008, 12:06 AM   #1
linuxgentoo
LQ Newbie
 
Registered: Nov 2007
Location: Shanghai,China
Distribution: gentoo
Posts: 19
Blog Entries: 1

Rep: Reputation: 0
write messages to serial console


Hi,all
I want to print message to serial console while booting kernel

in init/main.c i found console_init() function
after this function,my serial console can work ,right?


thanks
 
Old 04-09-2008, 01:27 AM   #2
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 40
You may write messages to console via grub passing the following kernel options:

Code:
kernel /vmlinuz-2.6.9-67.0.4.ELsmp ro console=ttyS0,115200
ttySX is the name of the serial console, 115200 is the baud setting.
 
Old 04-09-2008, 01:51 AM   #3
linuxgentoo
LQ Newbie
 
Registered: Nov 2007
Location: Shanghai,China
Distribution: gentoo
Posts: 19

Original Poster
Blog Entries: 1

Rep: Reputation: 0
Quote:
Originally Posted by brianmcgee View Post
You may write messages to console via grub passing the following kernel options:

Code:
kernel /vmlinuz-2.6.9-67.0.4.ELsmp ro console=ttyS0,115200
ttySX is the name of the serial console, 115200 is the baud setting.

thanks for your reply
but if do it like the above,it will output all kernel message to serial console

what i want is that output some message to serial console

like that after ttyS0 is avaiable to write,i can print message to serial console
 
  


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
Boot messages to serial port fanoliv Ubuntu 7 03-10-2008 09:04 PM
Messages sent to main console. kporter007 Linux - Newbie 2 04-28-2006 07:46 PM
Console messages gn00kie Linux - General 2 02-08-2006 03:22 AM
Console messages Stephanie Linux - General 4 08-15-2003 03:33 PM
Console Messages bfloeagle Linux - General 6 06-30-2001 02:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:17 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