Re: Serial port seemingly not working
Bob Alexander wrote:
Dear Debfriends :)
I am attaching my GPS to a serial port under a Debian sid system with
a custom built 2.6.11.4 kernel and it does not seem to work. HArdware
is an IBM Thinkpad T40 (serial port on the port replicator).
Same hardware booted with XP works :(
Not sure I am doing the proper things to have the bloody serial working.
These are the options I believe are of relevance in my kernel config:
bob@t40:/usr/src/linux-2.6.11.4$ grep SERIAL .config |grep -v ^#
CONFIG_SERIAL_8250=m
CONFIG_SERIAL_8250_CS=m
CONFIG_SERIAL_8250_ACPI=y
CONFIG_SERIAL_8250_NR_UARTS=4
CONFIG_SERIAL_CORE=m
CONFIG_USB_SERIAL=m
CONFIG_USB_SERIAL_VISOR=m
in dmesg I see
bob@t40:/usr/src/linux-2.6.11.4$ dmesg |grep tty
ttyS0: LSR safety check engaged!
ttyS0: LSR safety check engaged!
bob@t40:~$ lsmod | grep -v ^ip|grep -v ^snd |sort
8250 24292 1 8250_pci
8250_pci 18560 0
aes_i586 39232 0
af_key 32784 0
agpgart 35048 2 drm,intel_agp
blowfish 8256 0
cdrom 41376 1 ide_cd
drm 67412 2 radeon
e1000 88756 0
ehci_hcd 32904 0
evdev 9408 0
fan 4548 0
fat 41372 1 vfat
hw_random 5524 0
ibm_acpi 23264 0
ide_cd 42052 0
intel_agp 23196 1
Module Size Used by
ntfs 112304 1
pcmcia 25672 4
pcmcia_core 50084 3 pcmcia,yenta_socket,rsrc_nonstatic
radeon 78528 1
rsrc_nonstatic 9344 1 yenta_socket
serial_core 23296 1 8250
serpent 14336 0
sha256 9664 0
thermal 13448 0
twofish 38720 0
uhci_hcd 33168 0
usbcore 125368 4 ehci_hcd,usbhid,uhci_hcd
usbhid 27392 0
vfat 14080 1
yenta_socket 23304 2
How do I understand if my serial is working under linux, if ttyS0 is
this serial etc etc
Thank you,
Bob
I'm using debian sarge with autoserial. If you're not using autoserial,
you might need to uncomment one of the lines in your /etc/serial.conf
file. You can check your current serial status by typing
"setserial -g /dev/ttyS[0-3]". My results look like this:
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
/dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
I have a Garmin GPS 76 GPS hooked up to /dev/ttyS0. I can view the gps
stream using minicom (serial device: /dev/ttyS0, baud rate: 4800).
Hope this helps,
Hannuman
Reply to: