11
revolution
(c) Revolution Education Ltd. Email: [email protected] Web: www.picaxe.co.uk V2.2 02/09
AXE027.PMD
PICAXE USB CABLE
4.1) Linux Patch Option 1
Temporarily update the kernel drivers product id every time the computer is restarted (this must be carried out before
the cable is inserted into the USB port). This method can also be used when running Linux from a live CD.
To do this open a Terminal console and then type
sudo modprobe ftdi_sio vendor=0x0403 product=0xbd90
4.2) Linux Patch Option 2 (recommended)
Create a new udev rule, so that the modprobe rule is automatically applied every time the computer boots.
Create a new file (e.g. using KWrite, gedit or similar text editor) named
/etc/udev/rules.d/99-axe027.rules
To do this press open a Terminal console and then type
sudo kwrite /etc/udev/rules.d/99-axe027.rules
Then enter the following text
(note the last 2 lines below should be entered as one long line)
and then save the file.
# /etc/udev/rules.d/99-axe027.rules
# contains axe027 udev rule to patch default
# FTDI product id to AXE027 product id (0xbd90)
SYSFS{idProduct}=="bd90", SYSFS{idVendor}=="0403",
RUN+="/sbin/modprobe -q ftdi_sio product=0xbd90 vendor=0x0403"
The new rule will then always be applied when the system boots. To immediately try out the new rule without
rebooting open a Terminal console and then type
sudo udevcontrol reload_rules
4.3) Patch Option 3
The technically correct method, but for experienced users only!
Patch the original kernel source files orig/drivers/usb/serial/ftdi_sio.c (3 extra lines required as overleaf) and orig/
drivers/usb/serial/ftdi_sio.h (1 extra line required) and recompile.
After patching these two files also make sure in addition to normal USB support you have
CONFIG_USB_SERIAL_GENERIC and CONFIG_USB_SERIAL_FTDI_SIO enabled in kernel .config.
Then recompile and install the kernel (or at least this module).