ttyS0 ttyS1
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
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: [email protected] on behalf = of [email protected]
Sent: Fri 3/23/2007 3:43 AM
To: [email protected]
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
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Quoted 5 lines · On Mar 23, 2007, at 3:43 AM, <[email protected]> <[email protected]> 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