Difference between revisions of "SPCP8x5 Driver Installation"

From LinuxMCE
Jump to: navigation, search
(About)
(That steps are not needed any more for 0710)
Line 7: Line 7:
 
This is a small howto compile the spcp8x5 kernel driver module. It's used in some ZWave sticks.
 
This is a small howto compile the spcp8x5 kernel driver module. It's used in some ZWave sticks.
  
= That steps are not needed any more for 0710 =
+
= THIS IS NOT NEEDED SINCE 0710. THE DRIVER IS INCLUDED =
  
 
= Instructions =
 
= Instructions =

Revision as of 18:09, 21 October 2008


About

This is a small howto compile the spcp8x5 kernel driver module. It's used in some ZWave sticks.

THIS IS NOT NEEDED SINCE 0710. THE DRIVER IS INCLUDED

Instructions

Installing Subversion

If you don't have Subversion installed do the following:

sudo apt-get install subversion

Get the driver

Check out the driver from the repository:

linuxmce@dcerouter:/tmp$ svn co http://svn.charonmedia.org/svn/vendor/spcp8x5
A    spcp8x5/spcp8x5.c
A    spcp8x5/Makefile
Checked out revision 1512.

Compile the driver

Change into the "spcp8x5" directory and build the kernel driver module:

linuxmce@dcerouter:/tmp/spcp8x5$ make
make -C /lib/modules/2.6.20-15-generic/build M=/tmp/spcp8x5 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic'
  CC [M]  /tmp/spcp8x5/spcp8x5.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/spcp8x5/spcp8x5.mod.o
  LD [M]  /tmp/spcp8x5/spcp8x5.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic
linuxmce@dcerouter:/tmp/spcp8x5$

Load the modules

linuxmce@dcerouter:/tmp/spcp8x5$ sudo modprobe usbserial
linuxmce@dcerouter:/tmp/spcp8x5$ sudo insmod spcp8x5.ko

Install the modules

You may have to substitute "2.6.20-15-generic" with your actual kernel version (do a "ls /lib/modules" to find out):

sudo cp spcp8x5.ko  /lib/modules/2.6.20-15-generic/kernel/drivers/usb/serial/
sudo depmod -ae

Verify

Plug the device in and use the "dmesg" command to verify the device initialization:

[ 6007.724000] drivers/usb/serial/usb-serial.c: USB Serial support registered for SPCP8x5
[ 6007.728000] usbcore: registered new interface driver spcp8x5
[ 6007.728000] /tmp/spcp8x5/spcp8x5.c: SPCP8x5 USB to serial adaptor driver v0.04
[ 6168.652000] usb 1-1: new full speed USB device using uhci_hcd and address 4
[ 6168.820000] usb 1-1: configuration #1 chosen from 1 choice
[ 6168.824000] spcp8x5 1-1:1.0: SPCP8x5 converter detected
[ 6168.824000] usb 1-1: SPCP8x5 converter now attached to ttyUSB1

View the device id's

Use "lsusb" to see the usb device id (this is from the Intermatic HA22):

Bus 001 Device 004: ID 04fc:0204 Sunplus Technology Co., Ltd

If you want Plug and Play you have to add the id to the ZWave device template:

ZWave_DeviceTemplate_PlugAndPlay