LinuxQuestions.org
Help answer threads with 0 replies.
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 09-27-2011, 08:36 AM   #1
javierhernandez
LQ Newbie
 
Registered: Sep 2011
Posts: 9

Rep: Reputation: Disabled
ttyS1 terminal


Hello,

I am writing an application that uses terminal and I am able to communicate with device /dev/tty. Now we have added a second serial port on UART1. How do I set up the serial port to work with UART1?

I checked the available devices in my embedded sytem and this what I have.

/dev/tty /dev/tty 5 0 system:/dev/tty
/dev/console /dev/console 5 1 system:console
/dev/ptmx /dev/ptmx 5 2 system
/dev/vc/0 /dev/vc/0 4 0 system:vtmaster
serial /dev/ttyS 4 64-65 serial
pty_slave /dev/pts 136 0-1048575 pty:slave
pty_master /dev/ptm 128 0-1048575 pty:master
unknown /dev/tty 4 1-63 console

Please help, I don't know were to go from here.
 
Old 09-27-2011, 10:47 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
The term 'UART1' is not a term conventionally used in Linux. I think you are asking how to find the device node associated with the device's driver. For that to happen, there must be a driver for the serial hardware. Are you sure this has occurred? If so, it may have left a record of its findings in a system log file. On a desktop or server host, you could usually find this information in the output of dmesg, and/or /var/log/messages. In either case, it s probably easiest to find the information using a simple visual scan of the logs; they are generally not really large. The useful info tends to be populated at boot time.

--- rod.
 
Old 09-27-2011, 11:24 AM   #3
javierhernandez
LQ Newbie
 
Registered: Sep 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
In my embedded system UART0 is assigned to dev/tty and I am able to communicate just find. I just need to now what step I need to take to ensure UART1 works the same as UART0. Do I need to do something with the mux_cfg.c file?
 
Old 09-27-2011, 03:52 PM   #4
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
/dev/tty is the generic description for the controlling terminal of any process. It does not describe any particular hardware. See Text-Terminal-HOWTO: Terminal Special Files such as /dev/tty.
If you want to make it behave as a login console, you will have to ascertain it's device node name (/dev/tty???), and then modify/create an entry for it in /etc/inittab, to spawn a getty process attached to it. The article in the above link should describe most of that.

--- rod.
 
  


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
[SOLVED] Beginner at ttyS1 cucub Linux - General 3 03-20-2011 01:43 AM
Terminal ttyS1 not working after re-install pentalive Linux - Hardware 4 02-24-2006 07:29 PM
Problems with ttyS1 as a Terminal Laoch Linux - General 1 08-24-2005 08:16 AM
serial port (ttyS1) - Sending commands via terminal... HELP!!! Nalorin Linux - Networking 2 08-21-2005 10:22 PM
modem on ttyS1 ?? skguha Linux - Newbie 6 08-18-2005 07:08 PM


All times are GMT -5. The time now is 07:14 PM.

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