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.

AM3358: Debug console on USB

Part Number: AM3358
Other Parts Discussed in Thread: AM5728

Hi,

The purpose of the USB0 is to implement the debug interface function of am3358, and to communicate and debug with the device system.

Can you provide some reference suggestions?

Regards,
Andre

  • Hi,

    For AM335x devices the default debug console is UART0. This can be changed to another UART, but I don't think anyone has succeeded to change it to USB, at least there is no such information on this forum.
  • Hi,

    To enable the Generic Serial driver to recognize am3358 device. The purpose is to generate /dev/ttyUSBxx devices in user space.
    When insmod usbserial.ko , need device vendors ID and product ID. What is the vendors ID and product ID?


    Best Regards
    Andre
  • Andre,

    I am not sure what you are doing. I don't see why usbserial.ko asks for VID:PID. But to get a VID assigned, please check with USB-IF: Getting a Vendor ID

  • Hi,

    In am335x_03.03_sdk board-support/linux-4.4.41+gitAUTOINC+f9f6f0db2d-gf9f6f0db2d/Documentation/usb/usb-serial.txt

    Generic Serial driver

    If your device is not one of the above listed devices, compatible with
    the above models, you can try out the "generic" interface. This
    interface does not provide any type of control messages sent to the
    device, and does not support any kind of device flow control. All that
    is required of your device is that it has at least one bulk in endpoint,
    or one bulk out endpoint.

    To enable the generic driver to recognize your device, provide
    echo <vid> <pid> >/sys/bus/usb-serial/drivers/generic/new_id
    where the <vid> and <pid> is replaced with the hex representation of your
    device's vendor id and product id.
    If the driver is compiled as a module you can also provide one id when
    loading the module
    insmod usbserial vendor=0x#### product=0x####

    vendor ID and product ID are needed when loading Generic Serial driver.

    I need vendor ID and product ID for AM5728 usb serial port.

    Best Regards
    Andre