This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM4376: USB UART problem

Part Number: AM4376

hello,

 In order to expand the serial port, I connected USB1 with a USB HUB, and then connected the hub to the computer with a USB to serial cable(FT232R USB UART) for test.I know the 058 under  /dev/bus/usb/001/058 is the device i need to operate(kernel version 3.14.43).

root@AM437x-Tronlong:/dev/bus/usb/001# lsusb
Bus 001 Device 036: ID 214b:7250 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 037: ID 0bda:8152 Realtek Semiconductor Corp.
Bus 001 Device 039: ID 0b95:772b ASIX Electronics Corp. AX88772B
Bus 001 Device 054: ID 05e3:0749 Genesys Logic, Inc.
Bus 001 Device 058: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
root@AM437x-Tronlong:/dev/bus/usb/001# ls
001  036  037  039  054  058

But when I configure it with function tcgetattr,it displays the  error:Inappropriate ioctl for device.Even if the tcgetattrfunction is commented,other setting functions will run incorrectly.

root@AM437x-Tronlong:/dev/bus/usb/001# ../../../../sscom 058 1
fcntl=0
isatty success!
fd->open=3
SetupSerial 1: Inappropriate ioctl for device

  • Hi,

    Is this on your AM4376 custom board or TI EVM?

    user6227452 said:
     In order to expand the serial port, I connected USB1 with a USB HUB, and then connected the hub to the computer with a USB to serial cable(FT232R USB UART) for test.

    I need a better description of your USB topology please. It is not clear to me how the USB1, the hub, the computer and the FT232R are connected together. What is USB1? The USB1 port of AM437x or USB1 bus in Linux?

    user6227452 said:
    root@AM437x-Tronlong:/dev/bus/usb/001# ../../../../sscom 058 1

    what is the sscom program? Do you have the source code? Why it doesn't access /dev/ttyUSBx device node but the raw /dev/bus/usb/001/058 device?

    By the way, kernel v3.14.43 is no longer supported, please use the latest Processor SDK Linux release.

  • Hi, I haven’t heard back from you, I’m assuming you were able to resolve your issue. If not, just post a reply below (or create a new thread if the thread has locked due to time-out).  thanks.