[LinuxPPS] after a reboot suddenly there's no more pps for serial?!

Folkert van Heusden folkert at vanheusden.com
Mon Apr 21 20:35:18 CEST 2008


> > > By loading the modules yourself you give the command "modprobe 8250",
> > > is that right?
> > Correct.
> > 
> > > And after that you see that lp support is enabled,
> > 
> > Well, it seems that the lp support is always there, it is just that no
> > support comes in for the serial device.
> > 
> > belle:/home/folkert# rmmod 8250_pci ; rmmod 8250 ; rmmod serial_core
> > belle:/home/folkert# find /sys/ -iname \*pps\*
> > /sys/class/pps
> > /sys/class/pps/pps0
> > /sys/devices/pnp0/00:07/pps:pps0
> > belle:/home/folkert# cat /sys/class/pps/pps0/path
> > /dev/lp0
> > belle:/home/folkert# modprobe 8250
> > belle:/home/folkert# find /sys/ -iname \*pps\*
> > /sys/class/pps
> > /sys/class/pps/pps0
> > /sys/devices/pnp0/00:07/pps:pps0
> > belle:/home/folkert# cat /sys/class/pps/pps0/path
> > /dev/lp0
> 
> It seems that the PPS device related with the serial device is not
> created? Did you enable the hardpps flag for the serial port?

Darn. That indeed was part of the problem.

But:
belle:/home/folkert# find /sys/ -iname \*pps\*
/sys/class/pps
/sys/class/pps/pps1
/sys/class/pps/pps0
/sys/devices/pnp0/00:07/pps:pps0
/sys/devices/platform/serial8250/pps:pps1
belle:/home/folkert# cat /sys/class/pps/pps0/path
/dev/lp0
belle:/home/folkert# cat /sys/class/pps/pps1/path
/dev/ttyS0

But:
belle:/home/folkert# ls -la /dev/ttyS*
crw-rw---- 1 root dialout 4, 64 2008-04-18 17:41 /dev/ttyS0
crw-rw---- 1 root dialout 4, 65 2008-04-21 14:19 /dev/ttyS1
crw-rw---- 1 root dialout 4, 66 2008-04-18 17:41 /dev/ttyS2
crw-rw---- 1 root dialout 4, 67 2008-04-18 17:41 /dev/ttyS3
and:
belle:/home/folkert# dmesg | grep ttyS
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:06: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
0000:05:02.0: ttyS1 at I/O 0x8400 (irq = 18) is a 16550A
0000:05:02.0: ttyS2 at I/O 0x8800 (irq = 18) is a 16550A


Folkert van Heusden

-- 
MultiTail is een flexibele tool voor het volgen van logfiles en
uitvoer van commando's. Filteren, van kleur voorzien, mergen,
'diff-view', etc. http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com



More information about the LinuxPPS mailing list