Today I wanted to use my Keyspan USB-to-Serial adapter on my Ubuntu (gutsy) box. Unfortunately, Ubuntu doesn’t ship with a driver for this because of some licensing restrictions. So after trying a few things the hard way, I found out an easy way to build the drivers.
Follow these steps.
Note: Wherever I use “amd64” in the below examples you’ll need to replace with your architecture if you’re not on 64-bit Intel or AMD.
Grab the kernel source package:
1 2 3 4 5 |
|
If you don’t already have the Ubuntu tools for building packages, you’ll need to run:
1
|
|
Now edit the following file:
1
|
|
Add the following under the line that reads CONFIG_USB_SERIAL_KEYSPAN_PDA=m
:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
Rebuild the kernel like so:
1
|
|
And now install it:
1 2 |
|
You should now be able to insert a Keyspan USB-to-Serial adapter into the USB port and it’ll be recognized as
/dev/ttyUSB0
. Check dmesg
for any errors.