<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: imx8mq cannot create usb interface for usb3.0 chip ft601. in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx8mq-cannot-create-usb-interface-for-usb3-0-chip-ft601/m-p/1192016#M165828</link>
    <description>&lt;P&gt;Hi W&lt;SPAN&gt;eidong,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your reply. I can create interface /dev/ft60x0 now.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There is something confusing to console logs of the command "lsusb -t"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;root@imx8mqevk:~# lsusb&lt;BR /&gt;Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub&lt;BR /&gt;Bus 001 Device 003: ID 0403:601f Future Technology Devices International, Ltd FTDI SuperSpeed-FIFO Bridge&lt;BR /&gt;Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub&lt;BR /&gt;root@imx8mqevk:~# lsusb -t&lt;BR /&gt;/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M&lt;BR /&gt;/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M&lt;BR /&gt;|__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=ft60x, 480M&lt;BR /&gt;|__ Port 1: Dev 3, If 1, Class=Vendor Specific Class, Driver=ft60x, 480M&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is the usb speed correct? I cannot understand the usb speed shows 480M instead of 5000M.&lt;BR /&gt;How can I test read/write between a imx8mq board and a ft601 chip? Is there some example code to support?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;By the way, my yocto version is LF_L5.4.3_1.0.0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;minying&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Dec 2020 06:50:28 GMT</pubDate>
    <dc:creator>mimi05633</dc:creator>
    <dc:date>2020-12-02T06:50:28Z</dc:date>
    <item>
      <title>imx8mq cannot create usb interface for usb3.0 chip ft601.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mq-cannot-create-usb-interface-for-usb3-0-chip-ft601/m-p/1191504#M165770</link>
      <description>&lt;P&gt;I want to use a imx8mq customer board to communicate with FTDI usb3.0 chip "UMFT601A".&lt;/P&gt;&lt;P&gt;After I modified the local.conf with:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;IMAGE_INSTALL_append = " libftdi"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and changed kernel config with:&lt;/P&gt;&lt;P&gt;CONFIG_USB_SERIAL=y&lt;/P&gt;&lt;P&gt;CONFIG_USB_SERIAL_FTDI_SIO=y&lt;/P&gt;&lt;P&gt;, I can see the console log as below.&lt;/P&gt;&lt;P&gt;[ 1.075673] usbcore: registered new interface driver ftdi_sio&lt;BR /&gt;[ 1.081459] usbserial: USB Serial support registered for FTDI USB Serial Device&lt;/P&gt;&lt;P&gt;After I plugged the ft601 chip by type C, I could see the usb was detected, but no ttyUSBx interface was created.&lt;/P&gt;&lt;P&gt;[ 48.274212] usb 1-1: new high-speed USB device number 2 using xhci-hcd&lt;BR /&gt;[ 48.528455] usb 1-1: New USB device found, idVendor=0403, idProduct=601f, bcdDevice= 0.00&lt;BR /&gt;[ 48.536645] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3&lt;BR /&gt;[ 48.543794] usb 1-1: Product: FTDI SuperSpeed-FIFO Bridge&lt;BR /&gt;[ 48.549208] usb 1-1: Manufacturer: FTDI&lt;BR /&gt;[ 48.553057] usb 1-1: SerialNumber: 000000000001&lt;/P&gt;&lt;P&gt;I followed to add new_id command "echo 0403 601f &amp;gt;/sys/bus/usb-serial/drivers/ftdi_sio/new_id", but the board detected&amp;nbsp;FT2232C rather than&amp;nbsp;FT601.&amp;nbsp;&lt;/P&gt;&lt;P&gt;[ 2418.906255] ftdi_sio 1-1:1.0: FTDI USB Serial Device converter detected&lt;BR /&gt;[ 2418.957183] usb 1-1: Detected FT2232C&lt;BR /&gt;[ 2418.962063] ftdi_sio ttyUSB0: Unable to read latency timer: -32&lt;BR /&gt;[ 2418.969074] ftdi_sio ttyUSB0: Unable to write latency timer: -32&lt;BR /&gt;[ 2418.991628] usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB0&lt;BR /&gt;[ 2419.009082] ftdi_sio 1-1:1.1: FTDI USB Serial Device converter detected&lt;BR /&gt;[ 2419.059718] usb 1-1: Detected FT2232C&lt;BR /&gt;[ 2419.064624] ftdi_sio ttyUSB1: Unable to read latency timer: -32&lt;BR /&gt;[ 2419.071074] ftdi_sio ttyUSB1: Unable to write latency timer: -32&lt;BR /&gt;[ 2419.094139] usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB1&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could any one tell me what can I do?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for any help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Minying&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 09:53:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mq-cannot-create-usb-interface-for-usb3-0-chip-ft601/m-p/1191504#M165770</guid>
      <dc:creator>mimi05633</dc:creator>
      <dc:date>2020-12-01T09:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mq cannot create usb interface for usb3.0 chip ft601.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mq-cannot-create-usb-interface-for-usb3-0-chip-ft601/m-p/1191616#M165777</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; It seems that steps should be like below:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;On ubuntu 18.04&lt;BR /&gt;(1) Getting ft60x driver source code&lt;BR /&gt;# cd ~/&lt;BR /&gt;# mkdir device-driver&lt;BR /&gt;# git clone &lt;A href="https://github.com/lambdaconcept/ft60x_driver.git" target="_blank"&gt;https://github.com/lambdaconcept/ft60x_driver.git&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;(2) Exporting cross-compile tool chain from Yocto&lt;/P&gt;
&lt;P&gt;According to chapter 4.5.12 of i.MX_Linux_Users_Guide.pdf, export cross-compile tool chain.&lt;BR /&gt;Then install it to path /opt&lt;/P&gt;
&lt;P&gt;Below is what I export: fsl-imx-xwayland-glibc-x86_64-imx-image-full-aarch64-imx8mmevk-toolchain-5.4-zeus.sh&lt;/P&gt;
&lt;P&gt;copy the file to /opt, then run :&lt;BR /&gt;# cd /opt&lt;BR /&gt;# ./fsl-imx-xwayland-glibc-x86_64-imx-image-full-aarch64-imx8mmevk-toolchain-5.4-zeus.sh&lt;/P&gt;
&lt;P&gt;Then below is the path of toolchain: /opt/fsl-imx-xwayland/5.4-zeus/&lt;/P&gt;
&lt;P&gt;(3) Download linux source code&lt;/P&gt;
&lt;P&gt;# cd ~/&lt;BR /&gt;# mkdir linux-source&lt;BR /&gt;# cd linux-source&lt;BR /&gt;# git clone &lt;A href="https://source.codeaurora.org/external/imx/linux-imx" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx&lt;/A&gt; -b imx_5.4.47_2.2.0&lt;/P&gt;
&lt;P&gt;(4) Compiling kernel&lt;BR /&gt;# cd linux-imx&lt;BR /&gt;# source /opt/fsl-imx-xwayland/5.4-zeus/environment-setup-aarch64-poky-linux &lt;BR /&gt;# export ARCH=arm64&lt;BR /&gt;# make imx_v8_defconfig&lt;BR /&gt;# make&lt;/P&gt;
&lt;P&gt;(5) Compiling ft60x driver&lt;BR /&gt;--Modifying Makefile&lt;BR /&gt;# cd ~/device-driver/ft60x_driver&lt;BR /&gt;# gedit Makefile&lt;BR /&gt;---------------------------------&lt;BR /&gt;#KERNEL_VERSION:=$(shell uname -r)&lt;BR /&gt;#KERNEL_PATH:=/lib/modules/$(KERNEL_VERSION)/build&lt;/P&gt;
&lt;P&gt;KERNEL_PATH:= /home/weidong/linux-source-code/L5.4.47_2.2.0/linux-imx&lt;/P&gt;
&lt;P&gt;obj-m = ft60x.o&lt;BR /&gt;sdr-objs = ft60x.o&lt;/P&gt;
&lt;P&gt;all: ft60x.ko&lt;/P&gt;
&lt;P&gt;ft60x.ko: ft60x.c&lt;BR /&gt;make -C $(KERNEL_PATH) M=$(PWD) modules&lt;/P&gt;
&lt;P&gt;clean:&lt;BR /&gt;make -C $(KERNEL_PATH) M=$(PWD) clean&lt;BR /&gt;rm -f *~&lt;BR /&gt;---------------------------------&lt;BR /&gt;Save and exit.&lt;/P&gt;
&lt;P&gt;# make&lt;/P&gt;
&lt;P&gt;Then we will get ft60x driver&lt;BR /&gt;------------&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="weidong_sun_0-1606825312573.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131454iB2D0C77CE4C4D519/image-size/medium?v=v2&amp;amp;px=400" role="button" title="weidong_sun_0-1606825312573.png" alt="weidong_sun_0-1606825312573.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;weidong_sun_0-1606825312573.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then use "insmod" command to load the driver on your board.&lt;/P&gt;
&lt;P&gt;Try it, please!&lt;/P&gt;
&lt;P&gt;After loading the driver, it should be like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="weidong_sun_1-1606825421727.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131455i790408F7A1037F6B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="weidong_sun_1-1606825421727.png" alt="weidong_sun_1-1606825421727.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;weidong_sun_1-1606825421727.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope the information is helpful to you.&lt;/P&gt;
&lt;P&gt;Have a nice day!&lt;/P&gt;
&lt;P&gt;B.R,&lt;/P&gt;
&lt;P&gt;weidong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 12:28:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mq-cannot-create-usb-interface-for-usb3-0-chip-ft601/m-p/1191616#M165777</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2020-12-01T12:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mq cannot create usb interface for usb3.0 chip ft601.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mq-cannot-create-usb-interface-for-usb3-0-chip-ft601/m-p/1192016#M165828</link>
      <description>&lt;P&gt;Hi W&lt;SPAN&gt;eidong,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your reply. I can create interface /dev/ft60x0 now.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There is something confusing to console logs of the command "lsusb -t"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;root@imx8mqevk:~# lsusb&lt;BR /&gt;Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub&lt;BR /&gt;Bus 001 Device 003: ID 0403:601f Future Technology Devices International, Ltd FTDI SuperSpeed-FIFO Bridge&lt;BR /&gt;Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub&lt;BR /&gt;root@imx8mqevk:~# lsusb -t&lt;BR /&gt;/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M&lt;BR /&gt;/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M&lt;BR /&gt;|__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=ft60x, 480M&lt;BR /&gt;|__ Port 1: Dev 3, If 1, Class=Vendor Specific Class, Driver=ft60x, 480M&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is the usb speed correct? I cannot understand the usb speed shows 480M instead of 5000M.&lt;BR /&gt;How can I test read/write between a imx8mq board and a ft601 chip? Is there some example code to support?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;By the way, my yocto version is LF_L5.4.3_1.0.0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;minying&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 06:50:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mq-cannot-create-usb-interface-for-usb3-0-chip-ft601/m-p/1192016#M165828</guid>
      <dc:creator>mimi05633</dc:creator>
      <dc:date>2020-12-02T06:50:28Z</dc:date>
    </item>
  </channel>
</rss>

