[LinuxPPS] pps patch does not see my serial ports
Folkert van Heusden
folkert at vanheusden.com
Sun Jan 13 15:30:23 CET 2008
I forgot some information:
belle:/usr/src/linux-2.6-2.6.22/Documentation/pps# ls -lR /sys/class/pps/
/sys/class/pps/:
total 0
drwxr-xr-x 2 root root 0 2008-01-13 15:21 00
drwxr-xr-x 2 root root 0 2008-01-13 15:23 01
/sys/class/pps/00:
total 0
-r--r--r-- 1 root root 4096 2008-01-13 15:21 assert
-r--r--r-- 1 root root 4096 2008-01-13 15:21 echo
-r--r--r-- 1 root root 4096 2008-01-13 15:21 mode
-r--r--r-- 1 root root 4096 2008-01-13 15:21 name
-r--r--r-- 1 root root 4096 2008-01-13 15:21 path
lrwxrwxrwx 1 root root 0 2008-01-13 15:13 subsystem -> ../../../class/pps
--w------- 1 root root 4096 2008-01-13 15:13 uevent
/sys/class/pps/01:
total 0
-r--r--r-- 1 root root 4096 2008-01-13 15:28 assert
-r--r--r-- 1 root root 4096 2008-01-13 15:28 clear
-r--r--r-- 1 root root 4096 2008-01-13 15:28 echo
-r--r--r-- 1 root root 4096 2008-01-13 15:28 mode
-r--r--r-- 1 root root 4096 2008-01-13 15:28 name
-r--r--r-- 1 root root 4096 2008-01-13 15:28 path
lrwxrwxrwx 1 root root 0 2008-01-13 15:23 subsystem -> ../../../class/pps
--w------- 1 root root 4096 2008-01-13 15:28 uevent
it seems 01 appeared AFTER I executed "setserial /dev/gps0 hardpps"
I also executed "ppsctl /dev/gps0 enable" but that did not help either
On Sun, Jan 13, 2008 at 03:27:34PM +0100, Folkert van Heusden wrote:
> Hi,
>
> Took a while but I succeeded in creating a debian-aware kernel image
> package with PPS support:
>
> belle:/usr/src/linux-2.6-2.6.22/Documentation/pps# dmesg | grep -i pps
> Linux version 2.6.22.pps-nodeb (root at belle) (gcc version 4.2.3 20071123 (prerelease) (Debian 4.2.2-4)) #1 SMP Sun Jan 13 14:43:34 CET 2008
> LinuxPPS API ver. 2 registered
> parport_pc 00:07: PPS source #0 "/dev/lp0" added
> parport_serial 0000:05:02.0: PPS support disabled due port "/dev/lp1" is in polling mode
>
> As you can see though it does not detect the serial ports in the system.
>
> belle:/usr/src/linux-2.6-2.6.22/Documentation/pps# grep serial /proc/interrupts
> 18: 137 6066 IO-APIC-fasteoi uhci_hcd:usb5, ehci_hcd:usb6, serial
>
> 05:02.0 Communication controller: NetMos Technology PCI 9835 Multi-I/O Controller (rev 01)
> Subsystem: LSI Logic / Symbios Logic 1P2S
> Flags: medium devsel, IRQ 18
> I/O ports at 8400 [size=8]
> I/O ports at 8800 [size=8]
> I/O ports at 8c00 [size=8]
> I/O ports at 9000 [size=8]
> I/O ports at 9400 [size=8]
> I/O ports at 9800 [size=16]
>
> gps0 is (using udev) the first port on the plugin serial adapter as shown above
>
> belle:/usr/src/linux-2.6-2.6.22/Documentation/pps# ./ppstest /dev/gps0
> trying PPS source "/dev/gps0"
> no available PPS source in the system
>
> It does see the parallel port though:
> belle:/usr/src/linux-2.6-2.6.22/Documentation/pps# ./ppstest
> found PPS source #0 "parport0" on "/dev/lp0"
> ok, found 1 source(s), now start fetching data...
> time_pps_fetch() error -1 (Connection timed out)
> but my GPS is connected to the serial port.
>
>
> belle:/usr/src/linux-2.6-2.6.22/Documentation/pps# dmesg | grep tty
> 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
>
> gps0 -> ttyS1
>
>
> Folkert van Heusden
>
> --
> To MultiTail einai ena polymorfiko ergaleio gia ta logfiles kai tin
> eksodo twn entolwn. Prosferei: filtrarisma, xrwmatismo, sygxwneysi,
> diaforetikes provoles. http://www.vanheusden.com/multitail/
> ----------------------------------------------------------------------
> Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
Folkert van Heusden
--
www.vanheusden.com/multitail - win een vlaai van multivlaai! zorg
ervoor dat multitail opgenomen wordt in Fedora Core, AIX, Solaris of
HP/UX en win een vlaai naar keuze
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
More information about the LinuxPPS
mailing list