From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from web50010.mail.yahoo.com (web50010.mail.yahoo.com [206.190.38.25]) by ozlabs.org (Postfix) with SMTP id C58E768A46 for ; Thu, 2 Feb 2006 16:57:04 +1100 (EST) Message-ID: <20060202055703.37247.qmail@web50010.mail.yahoo.com> Date: Wed, 1 Feb 2006 21:57:03 -0800 (PST) From: bharathi kandimalla Subject: problem with writing data to serialdriver form userspace To: jagadish , "linuxppc-embedded@ozlabs.org" , ram krishna MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-965849843-1138859823=:33914" List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --0-965849843-1138859823=:33914 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi I am able to use the serialport uart drivers for the custom board with mpc860T which are available in the kernel 2.6.13 I am getting bootup messages like this ttyCPM0 at MMIO 0xfb000a80 (irq = 20) is a CPM UART ttyCPM1 at MMIO 0xfb000a90 (irq = 19) is a CPM UART ttyCPM2 at MMIO 0xfb000a00 (irq = 46) is a CPM UART ttyCPM3 at MMIO 0xfb000a20 (irq = 45) is a CPM UART And after getting prompt cd /proc/dev/ cat drivers /dev/tty /dev/tty 5 0 system:/dev/tty /dev/console /dev/console 5 1 system:console /dev/ptmx /dev/ptmx 5 2 system ttyCPM /dev/ttyCPM 204 46-49 serial pty_slave /dev/pts 136 0-1048575 pty:slave pty_master /dev/ptm 128 0-1048575 pty:master I am using mknod command mknod /dev/ttyCPM0 c 204 46 mknod /dev/ttyCPM1 c 204 47 mknod /dev/ttyCPM2 c 204 48 mknod /dev/ttyCPM3 c 204 49 even I am not able to open the device from the user space application I want to write some data from the user space into the application But I am not able to open the device please help me out regards bharathi --------------------------------- Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars. --0-965849843-1138859823=:33914 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
 
Hi
I am able to  use the serialport uart drivers  for the custom board with mpc860T
 which are available in the kernel 2.6.13 
I am getting bootup messages like this
ttyCPM0 at MMIO 0xfb000a80 (irq = 20) is a CPM UART
ttyCPM1 at MMIO 0xfb000a90 (irq = 19) is a CPM UART
ttyCPM2 at MMIO 0xfb000a00 (irq = 46) is a CPM UART
ttyCPM3 at MMIO 0xfb000a20 (irq = 45) is a CPM UART 
 And after getting prompt
cd /proc/dev/    
cat drivers
/dev/tty             /dev/tty        5       0 system:/dev/tty
/dev/console         /dev/console    5       1 system:console
/dev/ptmx            /dev/ptmx       5       2 system
ttyCPM               /dev/ttyCPM   204 46-49 serial
pty_slave            /dev/pts      136 0-1048575 pty:slave
pty_master           /dev/ptm      128 0-1048575 pty:master
I am  using mknod command
mknod /dev/ttyCPM0 c 204 46
mknod /dev/ttyCPM1 c 204 47
mknod /dev/ttyCPM2 c 204 48
mknod /dev/ttyCPM3 c 204 49 
  even I am not able to open the device from the user space application
I want to write some data from the user space into the
application
But I am not able to open the device
please help me out
regards
bharathi
                                                                

 


Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars. --0-965849843-1138859823=:33914--