Due to the U.S. Thanksgiving holiday, please expect delayed responses during the week of 11/22.

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.

Linux/PHYTC-3P-PHYCORE-AM57X: USB debug console

Part Number: PHYTC-3P-PHYCORE-AM57X

Tool/software: Linux

Hi,

We are using AM57x SOC on our board and we are using UART as debug console (system console of the AM57X SOC).

But now we want to see the debug prints on the USB instead of UART.

Has anyone done this ? Is this is supported in AM57x ? Is it possible straight forward connecting a USB cable to PC and observe the same?

So is there any document which can help in this process?

Thanks & Regards,

Nanjunda M

  • Hi,

    Can anyone please help.

    Thanks & Regards,

    Nanjunda M

    .

  • Hello and thanks for your post. Could you please let us know what version of the Processor SDK you are using for your evaluation?

    The best person to reply to this is out for a couple of days and will reply as soon as they can upon their return. I'm sorry for the delay.

  • Hello Ron,

    Thanks for the response.

    We are not using the SDK here. We are using the Linux 4.9.0 version. I hope you can help with that?

    Thanks & Regards,

    Nanjunda M

  • Hi Ron,

    Do you have any luck finding the solution for this?

    Thanks & Regards,

    Nanjunda M

  • Hi Nanjunda,

    Sorry for the late response. But I am not aware of any work or documentation for using usb port as the linux debug console, as it has some limitations comparing to a UART console, because the usb-serial port doesn't exist until kernel fully loaded all the usb drivers, so it is not recommended to use a usb port as the Linux debug console.

    Of cause, you can still achieve it by configuring your linux to load all the usb drivers and g_serial usb gadget driver and tell kernel (in u-boot bootargs) to use ttyGS0 instead of ttyO0 as the console.

  • Hi Liu,

    Thanks for the inputs.

    "Of cause, you can still achieve it by configuring your linux to load all the usb drivers and g_serial usb gadget driver and tell kernel (in u-boot bootargs) to use ttyGS0 instead of ttyO0 as the console."

    So with these above steps I'll be able to get the console via USB directly(MicroUSB to USB connector) on the terminal in my UBUNTU system?

    Regards,

    Nanjunda M

  • Yes, you should. You won't see any kernel log on the terminal until the Ubuntu host enumerates the board USB-serial port and opens it.

  • Hi Liu,

    What I mean is, whether the simple 'microUSB to USB' cable would be fine or we should have a 'microUSB to serial converter-Serial to USB converter' cable connection?

    Actually we tried the microUSB to serial cable and then serial to USB cable combination and we could get the prints (without modifying the kernel as you have suggested in previous post).

    Thanks & Regards,

    Nanjunda M