LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX
User Name
Password
Other *NIX This forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.

Notices


Closed Thread
  Search this Thread
Old 12-23-2008, 12:56 AM   #1
ganesha.ld
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Rep: Reputation: 0
File read/write on /dev/ttyS0 is not working on silent boot


Hi,

I'm using kernel 2.6.22 ported on a mips based embedded board(with u-boot 1.3.1).

The serial port(ttyS0) here is configured for kernel console and kernel messages. My aim is to disable the kernel console and disable all the messages coming on the serial port and use it to communicate with another serial device.

Problem is, if kernel is in silent mode(silent boot), i'm not able to send/receive data through serial port using file write/read operations on /dev/ttyS0(not able to see any characters in minicom on ttyS0 file write and not able to give input through minicom for ttyS0 read).

If kernel is NOT in silent mode (configured for normal boot)and console is disabled on serial port, read and write operations on /dev/ttyS0 are working. Here the problem is, it expects a return key at the end of input from serial port for reading the character(s) from /dev/ttyS0.

Please help me in this regard.

Thanks,
-Ganesha
 
Old 12-23-2008, 08:03 AM   #2
ganesha.ld
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Please delete this thread

Hi,
It's a request with moderators.
I want to put this thread in Linux-Embedded catagory. Please remove this thread from here.
Thanks in advance,
-Ganesha
 
Old 12-23-2008, 08:19 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
It looks like you already made a new post there!!!

Next time, please use the "report" button---this gets the attention of a moderator more quickly.

I'll report this thread for closure....
 
  


Closed Thread



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
Can read from /dev/ttyS0, but not write? ivanatora Programming 7 11-06-2008 05:20 PM
How to read serial port (/dev/ttyS0) seraph-seph Linux - Hardware 4 11-01-2006 06:55 AM
How to read serial port (/dev/ttyS0) without end of transmission seraph-seph Programming 1 10-22-2006 01:03 AM
read/write access for ttys0 pete_bogg Linux - General 1 08-15-2006 12:31 AM
can write to but not read from ttyS0 philetus Linux - Hardware 9 06-24-2004 05:46 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX

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