From: Tobias Weber Date: Tue, 6 Jan 2015 16:29:37 +0000 (+0100) Subject: Add lines how to unload the ftdi_sio kernel modules when using a FT2232H mini module... X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=a3c56c3931a7d679fa6f18f6a733f2e27a6ced8f;p=daqdocu.git Add lines how to unload the ftdi_sio kernel modules when using a FT2232H mini module as JTAG programmer --- diff --git a/trb3/Trb3GeneralRemarks.tex b/trb3/Trb3GeneralRemarks.tex index 7e3e235..35f142d 100644 --- a/trb3/Trb3GeneralRemarks.tex +++ b/trb3/Trb3GeneralRemarks.tex @@ -199,8 +199,18 @@ Note that the programming cable can only be used as root by default in most Linu There's also an alternative to the quite expensive Lattice Programming cable, if you have some time left, you can buy the FT2232H mini module -and solder a cable yourself. This costs roughly 50 Eur and one hour -soldering fun. +and solder a cable yourself. This costs roughly 50 Euro and one hour +soldering fun. If the programmer is not able to find a valid JTAG chain or +errors are reported during programming, the problem may be related to the Linux ftdi\_sio kernel module. +You can unload it automatically using a udev-rule by adding (as one line) +\\\verb!SUBSYSTEM=="usb",ATTRS{idVendor}=="0403",ATTRS{idProduct}=="6010",MODE=="0666",! +\\\verb!OWNER=="root",GROUP="users",RUN+="/bin/sh -c 'RESULT=$(basename %p); ! +\\\verb!echo $RESULT:1.0 >/sys/bus/usb/drivers/ftdi_sio/unbind"! +\\into +\\\files{/etc/udev/rules.d/91-usb-hardware.rules} +\\and restart udev or unload it by hand with +\\\verb!rmmod ftdi_sio! +\\after plugging in the cable. \subsection{Data Unpacker} \label{Data_Unpacking}