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 ?
|