[LinuxPPS] pps patch does not see my serial ports
Folkert van Heusden
folkert at vanheusden.com
Sun Jan 13 15:27:34 CET 2008
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
More information about the LinuxPPS
mailing list