LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-28-2010, 04:08 AM   #1
Der Prozessor
LQ Newbie
 
Registered: Jul 2010
Posts: 1

Rep: Reputation: 0
How to use UART in Userspace (PowerPC)


Hello,

I am using a PowerPC MPC5200 from Freescale (STK5200-Board), ELDK 4.2 from DENX,
Kernel 2.6.34-rc5.

My Kernel is running fine. The console output is coming over the device ttyPSC0. In future I want to login over telnet. So I deactivated the Kerneloption to output the console over the UART device.

Now I want to read and write to the RS232 interface from a program.
But when I try to open the device ttyPSC* I get the follwoing error:
"unable to read portsettings : Inappropriate ioctl for device"

What does this mean ? How can I send and receive Data to/from the UART ?
 
Old 07-28-2010, 02:45 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Is the error reported by a program you've written, or it's something standard?
 
  


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
UART Polling/Interrupt jdhar Linux - Software 1 06-10-2010 02:55 PM
UART Interrupt Handler devajyotibarman Linux - Hardware 2 01-02-2009 11:12 PM
UART : Unknown iceman911 Linux - Hardware 1 06-23-2005 10:14 PM
uart pantera Programming 5 05-21-2005 06:50 PM
jpilot/serial UART? amam Linux - General 1 11-01-2001 12:16 AM

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

All times are GMT -5. The time now is 10:46 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
Open Source Consulting | Domain Registration