* opening the serial port from userspace application
@ 2006-02-01 8:24 bharathi kandimalla
2006-02-02 11:45 ` Vitaly Bordug
0 siblings, 1 reply; 3+ messages in thread
From: bharathi kandimalla @ 2006-02-01 8:24 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 1349 bytes --]
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
ln -sf console ttyCPM0
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
---------------------------------
What are the most popular cars? Find out at Yahoo! Autos
[-- Attachment #2: Type: text/html, Size: 2711 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: opening the serial port from userspace application
2006-02-01 8:24 opening the serial port from userspace application bharathi kandimalla
@ 2006-02-02 11:45 ` Vitaly Bordug
2006-02-02 20:13 ` Wolfgang Denk
0 siblings, 1 reply; 3+ messages in thread
From: Vitaly Bordug @ 2006-02-02 11:45 UTC (permalink / raw)
To: bharathi kandimalla; +Cc: linuxppc-embedded
On Wed, 1 Feb 2006 00:24:19 -0800 (PST)
bharathi kandimalla <bharthik2004@yahoo.com> wrote:
> Hi
> I am able to use the serialport uart drivers for the custom board with =
mpc860T=20
> which are available in the kernel 2.6.13 =20
> I am getting bootup messages like this
> ttyCPM0 at MMIO 0xfb000a80 (irq =3D 20) is a CPM UART
> ttyCPM1 at MMIO 0xfb000a90 (irq =3D 19) is a CPM UART
> ttyCPM2 at MMIO 0xfb000a00 (irq =3D 46) is a CPM UART
> ttyCPM3 at MMIO 0xfb000a20 (irq =3D 45) is a CPM UART =20
=46rom what I can see, you have misconfigured something. Dunno for certain, b=
ut 860T=20
might have 2 UARTs, when you have at least 4 enabled. Please enable in the =
kernel configuration only those which exist on your board.
> And after getting prompt
> cd /proc/dev/ =20
> 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=20
> I am using mknod command=20
> mknod /dev/ttyCPM0 c 204 46=20
> ln -sf console ttyCPM0=20
> mknod /dev/ttyCPM1 c 204 47
> mknod /dev/ttyCPM2 c 204 48
> mknod /dev/ttyCPM3 c 204 49 =20
> 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=20
> =20
> =20
> =20
>=20
> =09
> ---------------------------------
> =20
> What are the most popular cars? Find out at Yahoo! Autos=20
--=20
Sincerely,=20
Vitaly
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: opening the serial port from userspace application
2006-02-02 11:45 ` Vitaly Bordug
@ 2006-02-02 20:13 ` Wolfgang Denk
0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2006-02-02 20:13 UTC (permalink / raw)
To: Vitaly Bordug; +Cc: bharathi kandimalla, linuxppc-embedded
In message <20060202144520.3422129b@vitb.ru.mvista.com> you wrote:
>
> >From what I can see, you have misconfigured something. Dunno for certain, but 860T
> might have 2 UARTs, when you have at least 4 enabled. Please enable in the kernel configuration only those which exist on your board.
You can have up to 6 UART ports on a 860 (2 x SMC + 4 x SCC).
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Don't tell me how hard you work. Tell me how much you get done.
-- James J. Ling
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-02-02 20:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-01 8:24 opening the serial port from userspace application bharathi kandimalla
2006-02-02 11:45 ` Vitaly Bordug
2006-02-02 20:13 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).