How to configure OEM driver for ubuntu (kernel 3.2.13-x7)


i have been following the steps given in this website to connect my beagleboard to a GPS receiver. this are the steps i followed from:

I am not sure how this set of commands listed below be able to run on a 3.2. kernel…but i have been unsuccessful in getting the usb serial working…

For kernel 2.4.21 (or any 2.4 kernels) you might try the following as root:

mknod /dev/ttyUSB0 c 188 0
mknod /dev/ttyUSB1 c 188 1
mknod /dev/ttyUSB2 c 188 2

mount -t usbdevfs none /proc/bus/usb
cd /bin/modules/2.4.21/kernel/drivers/usb/serial
/sbin/insmod usbserial.o vendor=0x09d7 product=0x0100
/sbin/lsmod # usbserial should show up in the list of loaded kernel modules

Power on the OEM4/OEMV or reconnect the USB cable

cat /proc/bus/usb/devices # you should now see NovAtel’s OEMV in the list

minicom -c on USB0 # connects to first bulk end point

For kernel 2.6 with the udev system, one can add the following to say:

/etc/udev/rules.d/z90_novatel.rules to automatically load the driver
and create links to /dev/gps0 /dev/gps1 /dev/gps2 for ttyUSB0 ttyUSB1
ttyUSB2 respectively upon insertion of the USB cable into the machine:

SUBSYSTEM==“usb”, SYSFS{idProduct}==“0100”, SYSFS{idVendor}==“09d7”,
PROGRAM="/sbin/modprobe usbserial vendor=0x09d7 product=0x0100"

BUS==“usb”, SYSFS{idProduct}==“0100”, SYSFS{idVendor}==“09d7”,
SYSFS{product}==“NovAtel GPS Receiver”, SYSFS{manufacturer}==“NovAtel
Inc.”, SYMLINK+=“gps%n”

Here are a couple things to try:

It seems that the whole interface to the GPS uses a serial over USB bridge. In which case the manufacturer ID and hardware ID simply need to be hardcoded inside the usbserial.c

Once you have this file amended, compile it as a kernel module, and insert it into your host machine to verify everything is working as expected.

Once everything is working on the host, you will need to cross compile usbserial.c for the target, if the compilation works without any problems and the driver worked on the host, I don’t see why it wouldn’t work on the target…

Hi ,

thanks for the info…but how do i compile it as a kernel module…


where do i find the usbserial.c and how wld i find the manufacturer ID and hardware ID? can i use minicom?