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

Folkert van Heusden folkert at vanheusden.com
Mon Apr 21 20:15:58 CEST 2008


> > > > > > after a reboot suddenly there's no more pps for serial?!
> > > > > > same kernel
> > > > > > 
> > > > > > belle:/home/folkert# dmesg | grep -i PPS
> > > > > > Linux version 2.6.23pps-nodeb.pps-nodeb (root at belle) (gcc version 4.2.3 20071123 (prerelease) (Debian 4.2.2-4)) #1 SMP Sun Jan 13 20:25:06 CET 2008
> > > > > > LinuxPPS API ver. 1 registered
> > > > > > new PPS source parport0 at ID 0
> > > > > > parport_pc 00:07: PPS source #0 "/dev/lp0" added
> > > > > 
> > > > > Why are you using lp support? Are you talking about serial lines or
> > > > > not? =:-o
> > > > 
> > > > I'm not, that's what is so odd.
> > > > It suddenly started to set PPS to the lp0 instead of ttyS0.
> > > 
> > > are loading your module by yourself or by using udev? If so, please,
> > > disable udev and try by hand.
> > 
> > No difference, still no luck.
> > 
> > Please note that when it worked before I *did* use udev too.
> 
> I see, however to understand what happens we should remove some
> interferencing tools.
> 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

> right?

right!

Also:
belle:/home/folkert# zcat /proc/config.gz  | grep -i pps
# Linux kernel version: 2.6.23pps-nodeb
CONFIG_LOCALVERSION=".pps-nodeb"
# PPS support
CONFIG_PPS=y
# CONFIG_PPS_DEBUG is not set
# PPS clients support
CONFIG_PPS_CLIENT_KTIMER=m
CONFIG_PPS_CLIENT_UART=y
CONFIG_PPS_CLIENT_LP=y


Folkert van Heusden

-- 
MultiTail er et flexible tool for å kontrolere Logfiles og commandoer.
Med filtrer, farger, sammenføringer, forskeliger ansikter etc.
http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com



More information about the LinuxPPS mailing list