LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded
User Name
Password
Linux - Embedded This forum is for the discussion of Linux and embedded devices.

Notices

Reply
 
LinkBack Search this Thread
Old 12-23-2008, 08:06 AM   #1
ganesha.ld
LQ Newbie
 
Registered: Dec 2008
Posts: 3

Rep: Reputation: 0
File read/write on /dev/ttyS0 is not working on kernel 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
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can read from /dev/ttyS0, but not write? ivanatora Programming 8 01-31-2010 07:25 AM
File read/write on /dev/ttyS0 is not working on silent boot ganesha.ld Other *NIX 2 12-23-2008 08:19 AM
How to read serial port (/dev/ttyS0) seraph-seph Linux - Hardware 4 11-01-2006 06:55 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


All times are GMT -5. The time now is 12:53 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration