Re: /dev/ttySx problems... solved

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 10 November 2006 06:59, stan mcintosh wrote:
>Gene Heskett wrote:
>> selinux is set permissive, and an ls -l of /dev/ttyS* show this:
>>
>> crw-rw---- 1 root uucp 4, 64 Nov  9 16:35 /dev/ttyS0
>> crw------- 1 root root 4, 65 Nov  9 16:35 /dev/ttyS1
>> crw------- 1 root root 4, 66 Nov  9 16:35 /dev/ttyS2
>> crw------- 1 root root 4, 67 Nov  9 16:35 /dev/ttyS3
>
>Cool use of your serial port.  Have you gone into your /dev directory
>and 'chmod o+rw ttyS*' as root?
>
>If this is too much of a noob approach, then I'm busted ;>)
>
>My privileges are:
>[root@localhost dev]# ls -l ttyS*
>crw-rw-rw- 1 root uucp 4, 64 Nov  9 19:29 ttyS0
>crw-rw-rw- 1 root uucp 4, 65 Nov  9 19:31 ttyS1
>crw-rw-rw- 1 root uucp 4, 66 Nov  9 14:13 ttyS2
>crw-rw-rw- 1 root uucp 4, 67 Nov  9 14:13 ttyS3
>
>Regards,
>stan

Ok, tried that, got this:
[root@coyote dev]# ls -l ttyS*
crw-rw-rw- 1 root uucp 4, 64 Nov  9 16:35 ttyS0
crw----rw- 1 root root 4, 65 Nov  9 16:35 ttyS1
crw----rw- 1 root root 4, 66 Nov  9 16:35 ttyS2
crw----rw- 1 root root 4, 67 Nov  9 16:35 ttyS3

So then I run my daytime script:

[root@coyote dev]# its-daylight

And which generates this in the heyu.log:
-----
Fri Nov 10 09:13:08 EST 2006 my name is /root/bin/its-daylight
Fri Nov 10 09:13:08 EST 2006: its-daylight:doing a killall xtend
xtend: no process killed
heyu: no process killed
Fri Nov 10 09:13:09 EST 2006: heyu-restart: sleep done now doing a heyu 
setclock

HEYU: Can't open tty line.  Check the permissions.

Fri Nov 10 09:13:13 EST 2006: heyu-restart: now restarting the heyu monitor
Fri Nov 10 09:13:13 EST 2006: heyu-restart all done - exiting
Fri Nov 10 09:13:13 EST 2006: its-daylight:heyu-restart completed

HEYU: Can't open tty line.  Check the permissions.

Fri Nov 10 09:13:16 EST 2006: its-daylight:Changing to /etc/.xtendrc-day
Fri Nov 10 09:13:17 EST 2006: its-daylight: heyu turn off a14

HEYU: Can't open tty line.  Check the permissions.

Fri Nov 10 09:13:20 EST 2006: its-daylight:executing xtend -f /etc/.xtendrc
Fri Nov 10 09:13:20 EST 2006: its-daylight:xtend running with daytime 
config
Fri Nov 10 09:13:20 EST 2006: its-daylight: cd /root/bin
Fri Nov 10 09:13:20 EST 2006: its-daylight:removing the link heyu-now

Couldn't open Heyu spool file: No such file or directory
Couldn't fcntl x10: Bad file descriptor

# these last two are normal when its not running. The output file from 
# the 'heyu monitor' function doesn't exist because heyu couldn't access 
# the port and exited.

Fri Nov 10 09:13:21 EST 2006: its-daylight:set heyu-now link to myself so I 
will run on a reboot
Fri Nov 10 09:13:21 EST 2006: its-daylight script has completed
------

I do all sorts of funky things with links so I always call the current 
setup on a reboot.

On the odd chance, I did this:
[root@coyote dev]# lsof | grep ttyS
[root@coyote dev]#

so nothing has them tied up. Then a setserial /dev/ttyS0:
[root@coyote dev]# setserial /dev/ttyS0
Cannot get serial info: Invalid argument
And
[root@coyote dev]# setserial /dev/ttyS1
/dev/ttyS1: No such device or address

But as you can see, it does exist, the cm11a is still plugged into it etc 
etc.

I am beginning to think we have a buglet in this kernel.  Since I'm running 
the latest 2.6.19-rc5 on the FC2 install on the /dev/hdb drive, I'll copy 
that vmlinuz and initrd to this boot partition, and edit the grub.conf to 
use it for my next test sometime today.  If it then works, I'll bugzilla 
it.

Thanks.

-- 
Cheers, Gene

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux