From a3c56c3931a7d679fa6f18f6a733f2e27a6ced8f Mon Sep 17 00:00:00 2001 From: Tobias Weber Date: Tue, 6 Jan 2015 17:29:37 +0100 Subject: [PATCH] Add lines how to unload the ftdi_sio kernel modules when using a FT2232H mini module as JTAG programmer --- trb3/Trb3GeneralRemarks.tex | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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} -- 2.43.0