[LinuxPPS] 2.6.25

Cirilo Bernardo cirilo.bernardo at gmail.com
Sun Apr 20 12:58:36 CEST 2008


On Sun, Apr 20, 2008 at 8:32 PM, Udo van den Heuvel <udovdh at xs4all.nl> wrote:
> Cirilo Bernardo wrote:
>  >>  Still udev doesn't run my rc.serial replacement stuff.
>  >>  Who has this working?
>  >>  Please explain how/what.
>  >>
>  >>
>
> > That depends on how your Linux installation is set up, but in all
>  > cases it will be something in the udev rules (/etc/udev/* on Debian).
>
>  I have been toying with it before.
>  In /etc/udev/rules.d I made a file 10-pps.rules which contains:
>
>
>  KERNEL=="ttyS0", RUN+="/bin/setserial -v %k low_latency hardpps"
>  SYMLINK+="gpspps%d", OPTIONS+="last_rule"
>  KERNEL=="ttyS0",                SYMLINK+="gps0"
>  KERNEL=="pps0",                 SYMLINK+="gpspps0"
>
>
>  But after a boot I have no pps device...
>

If that is your rules file, it is invalid; did you run 'udevtest' on
the /dev entry to see what happens?
udevtest /dev/ttyS0

You are missing the comma ',' to separate RUN+= from SYMLINK+= and the
"last_rule" will prevent your second 'KERNEL=="ttyS0"' from being
processed.  From what I can see, 'setserial' will not be run because
udev cannot make sense of the line.

- Cirilo



More information about the LinuxPPS mailing list