linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* ttyS0 ttyS1
@ 2007-03-23 10:43 oparz
  2007-03-23 16:10 ` Charles Krinke
  2007-03-23 17:12 ` Dan Malek
  0 siblings, 2 replies; 4+ messages in thread
From: oparz @ 2007-03-23 10:43 UTC (permalink / raw)
  To: linuxppc-embedded

Hello,
i have problems to use ttyS1 on my TQM885 Board.

fd1 = open("/dev/ttyS0",O_RDWR);
fd2 = open("/dev/ttyS1",O_RDWR);

I have expected to get different filehandles, but
both handles for ttyS0 and ttyS1 are 0! 

Any help is very appreciated.

_____________________
Dr. Otto Parzhuber
Munich University of Applied Sciences
Fac. of Precision Engineering

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: ttyS0 ttyS1
  2007-03-23 10:43 ttyS0 ttyS1 oparz
@ 2007-03-23 16:10 ` Charles Krinke
  2007-03-23 17:12 ` Dan Malek
  1 sibling, 0 replies; 4+ messages in thread
From: Charles Krinke @ 2007-03-23 16:10 UTC (permalink / raw)
  To: oparz, linuxppc-embedded

Dear Otto:
=20
You might check that the dev entry points in your root file system for =
/dev/tty, /dev/console, /dev/ttyS0 and /dev/ttyS1 all exist. They must =
be created with mknod and not with mkdir.=20
=20
These are the settings you should see with an 'ls' of the target's root =
filesystem on the host which has created it. All of these entries should =
be character devices as shown by the first bit of the permissions being =
a 'c'.
=20
/dev/console 5 1
/dev/tty 5 0
/dev/ttyS0 4 64
/dev/ttyS1 4 65
=20
Charles Krinke

________________________________

From: linuxppc-embedded-bounces+ckrinke=3Distor.com@ozlabs.org on behalf =
of oparz@compuserve.de
Sent: Fri 3/23/2007 3:43 AM
To: linuxppc-embedded@ozlabs.org
Subject: ttyS0 ttyS1



Hello,
i have problems to use ttyS1 on my TQM885 Board.

fd1 =3D open("/dev/ttyS0",O_RDWR);
fd2 =3D open("/dev/ttyS1",O_RDWR);

I have expected to get different filehandles, but
both handles for ttyS0 and ttyS1 are 0!

Any help is very appreciated.

_____________________
Dr. Otto Parzhuber
Munich University of Applied Sciences
Fac. of Precision Engineering





_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

^ permalink raw reply	[flat|nested] 4+ messages in thread

* ttyS0 ttyS1
@ 2007-03-23 16:50 oparz
  0 siblings, 0 replies; 4+ messages in thread
From: oparz @ 2007-03-23 16:50 UTC (permalink / raw)
  To: linuxppc-embedded

Hello Charles,
thank you, but the dev entries are correct (created with mknod:)

root@/># ls -l ttyS*
crw------- 1 0 0 4, 64 Jun 7 2005 ttyS0
crw------- 1 0 0 4, 65 Jun 7 2005 ttyS1

following is a part of dmesg output:
....
CPM UART driver version 0.04
ttyS0 at 0x0280 is on SMC1 using BRG1
ttyS1 at 0x0380 is on SMC2 using BRG2
....

the serial interface ttyS0 is working properly...but ttyS1 is responding
to the same pins as ttyS0

best regards
otto

\0

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ttyS0 ttyS1
  2007-03-23 10:43 ttyS0 ttyS1 oparz
  2007-03-23 16:10 ` Charles Krinke
@ 2007-03-23 17:12 ` Dan Malek
  1 sibling, 0 replies; 4+ messages in thread
From: Dan Malek @ 2007-03-23 17:12 UTC (permalink / raw)
  To: oparz; +Cc: linuxppc-embedded


On Mar 23, 2007, at 3:43 AM, <oparz@compuserve.de>  
<oparz@compuserve.de> wrote:

> Hello,
> i have problems to use ttyS1 on my TQM885 Board.
>
> fd1 = open("/dev/ttyS0",O_RDWR);
> fd2 = open("/dev/ttyS1",O_RDWR);

If you are using 2.6 kernels....
/dev/ttyCPM0 and /dev/ttyCPM1

Otherwise, ensure additional serial ports are
configured in your kernel and the device nodes
exist.



	-- Dan

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-03-23 17:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-23 10:43 ttyS0 ttyS1 oparz
2007-03-23 16:10 ` Charles Krinke
2007-03-23 17:12 ` Dan Malek
  -- strict thread matches above, loose matches on Subject: below --
2007-03-23 16:50 oparz

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).