This is an automated email from Gerrit. Antonio Borneo (borneo.anto...@gmail.com) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/4664
-- gerrit commit 6becdd5eca711b075fd9f92c072baa020547b768 Author: Antonio Borneo <borneo.anto...@gmail.com> Date: Mon Aug 27 19:07:25 2018 +0200 contrib: add modprobe configuration file As already reported in OpenOCD documentation, ST-Link/V1 requires a quirk for usb-storage driver. Add such quirk in a separate file in contrib and update the documentation. Change-Id: I77a40e5d61ee8988a144867c04990915fa82f17f Signed-off-by: Antonio Borneo <borneo.anto...@gmail.com> diff --git a/contrib/openocd-modprobe.conf b/contrib/openocd-modprobe.conf new file mode 100644 index 0000000..cd8de60 --- /dev/null +++ b/contrib/openocd-modprobe.conf @@ -0,0 +1,8 @@ +# Copy this file to /etc/modprobe.d/ + +# ST-Link/V1 enumerates using the mass storage usb class but it is not a mass +# storage device, thus causes issues under Linux. +# This let Linux driver usb-storage to ignore ST-Link/V1. +# If driver usb-storage is already loaded, adding this file will have no effect +# till next reboot or until the driver is removed with "rmmod". +options usb-storage quirks=483:3744:i diff --git a/doc/openocd.texi b/doc/openocd.texi index c0d065d..d508a5f 100644 --- a/doc/openocd.texi +++ b/doc/openocd.texi @@ -494,7 +494,9 @@ its implementation is completely broken. The result is this causes issues under The simplest solution is to get Linux to ignore the ST-LINK using one of the following methods: @itemize @bullet @item modprobe -r usb-storage && modprobe usb-storage quirks=483:3744:i -@item add "options usb-storage quirks=483:3744:i" to /etc/modprobe.conf +@item add "options usb-storage quirks=483:3744:i" to @file{/etc/modprobe.conf} or +to a separate file in @file{/etc/modprobe.d/}, like the example file +@file{openocd-modprobe.conf} shipped with OpenOCD in the @file{contrib} directory @end itemize @section USB TI/Stellaris ICDI based -- ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel