attaching a USB gps receiver to yun

I have been trying with no success to get a USB gps receiver (bu353) to work on the linino side of the yun.

I downloaded the gpsd,libgpsd,libgps, and gpsd-client libraries with opkg. When I plug in the GPS, I see the following in the system log:

Jan 16 16:15:25 peteyun kern.info kernel: [ 9034.940000] usb 1-1.1: New USB device found, idVendor=067b, idProduct=2303
Jan 16 16:15:25 peteyun kern.info kernel: [ 9034.940000] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jan 16 16:15:25 peteyun kern.info kernel: [ 9034.940000] usb 1-1.1: Product: USB-Serial Controller
Jan 16 16:15:25 peteyun kern.info kernel: [ 9034.940000] usb 1-1.1: Manufacturer: Prolific Technology Inc.
Jan 16 16:15:28 peteyun user.notice gpsd: Starting...
Jan 16 16:15:28 peteyun user.notice gpsd: Unable to find device /dev/ttyUSB0. Exiting.

Anybody have any ideas?

Thanks,

Pete

opkg update
opkg install kmod-usb-serial kmod-usb-serial-pl2303

http://h-wrt.com/en/doc/gps

Thanks for that. I am a bit farther now:

Jan 17 10:44:31 peteyun kern.info kernel: [ 2910.730000] usb 1-1.1: new full-speed USB device number 6 using ehci-platform
Jan 17 10:44:31 peteyun kern.info kernel: [ 2910.860000] usb 1-1.1: New USB device found, idVendor=067b, idProduct=2303
Jan 17 10:44:31 peteyun kern.info kernel: [ 2910.860000] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Jan 17 10:44:31 peteyun kern.info kernel: [ 2910.860000] usb 1-1.1: Product: USB-Serial Controller
Jan 17 10:44:31 peteyun kern.info kernel: [ 2910.860000] usb 1-1.1: Manufacturer: Prolific Technology Inc.
Jan 17 10:44:31 peteyun kern.info kernel: [ 2910.870000] pl2303 1-1.1:1.0: pl2303 converter detected
Jan 17 10:44:31 peteyun kern.info kernel: [ 2910.880000] usb 1-1.1: pl2303 converter now attached to ttyUSB0
Jan 17 10:44:34 peteyun user.notice gpsd: Starting...
Jan 17 10:44:34 peteyun user.notice gpsd: Unable to find device /dev/ttyUSB0. Exiting.

note that if I start gpsd manually at the linux prompt with $gpsd -b /dev/ttyUSB0 and then run cgps, It works!

any other ideas for auto start upon plugin?

nano /etc/config/gpsd

config gpsd core
    option device    "/dev/ttyUSB0"
    option port    "2947"
    option listen_globally    "false"
    option enabled    "true"

make sure option device "/dev/ttyUSB0" match with your port.

/etc/init.d/gpsd  enable
/etc/init.d/gpsd  start

ok making progress,

the config was correct, and the gps works, but there are still error messages in the syslog:

Jan 18 08:23:07 peteyun user.notice gpsd: Starting...
Jan 18 08:23:07 peteyun user.notice gpsd[3208]: gpsd:ERROR: can't create IPv6 socket
Jan 18 08:23:08 peteyun user.err gpsd[3208]: gpsd:SHOUT: vendor/product match with 091e:0003 not found

what next?

Plan A: Enable ipv6 at OS

http://wiki.openwrt.org/doc/howto/ipv6

Plan B: Recompile your own gpsd with disable-ipv6

Plan C: Ignore complaining about IPv6.

Great, Plan C it is! Thanks for all your help!