#182 /dev/ttySx: " Device or resource busy"

v0.7.x (release)
closed-fixed
nobody
5
2011-05-04
2011-04-22
Gilles Casse
No

Using simultaneously two serial devices appears to be not possible (colinux 0.7.9).
For example below, ttyS0 or ttyS1 can be read, but if ttyS0 is being read, then ttyS1 is considererd as busy.

root@colinux:~# cat /dev/ttyS0
^C
root@colinux:~# cat /dev/ttyS1
^C
root@colinux:~# cat /dev/ttyS0&
[1] 2618
root@colinux:~# cat /dev/ttyS1
cat: /dev/ttyS1: Device or resource busy
root@colinux:~# dmesg -c
COSERIAL: unable to get irq 3
cocd: close no attached struct

Discussion

  • Gilles Casse
    Gilles Casse
    2011-05-04

    multi ttyS (coserial.c kernel 2.6.33.7)

     
    Attachments
  • Gilles Casse
    Gilles Casse
    2011-05-04

    The attached patch enables the use of several serial devices (ttySx) (diff from coserial.c, rev svn 1545, kernel 2.6.33.7).
    The whole coserial.c file is also attached.

     
  • Henry N.
    Henry N.
    2011-05-04

    Thanks! Patch committed to SVN as revision 1584 (branch devel).

     
  • Henry N.
    Henry N.
    2011-05-04

    • status: open --> closed-fixed
     
  • Fantastic blog! Do you have any hints for aspiring writers? I'm planning to start my own blog soon but I'm a little lost on everything. Would you propose starting with a free platform like Wordpress or go for a paid option? There are so many choices out there that I'm completely confused .. Any recommendations? Cheers!
    north face outlet http://zqlqbcnbrk.webnode.com/