How to disable the USB debug messages on UART terminal - i.MX8QXP

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to disable the USB debug messages on UART terminal - i.MX8QXP

696 Views
AndreSilva
Contributor II

Hi,

 

my UART terminal is being flooded with USB debug messages as soon as I connect any cable on it:

[ 28.823118] xhci-hcd xhci-hcd.1.auto: irq 165, io mem 0x5b130000
[ 28.830427] hub 1-0:1.0: USB hub found
[ 28.834284] hub 1-0:1.0: 1 port detected
[ 28.839056] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 28.844920] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
[ 28.852877] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[ 28.859665] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 28.868855] hub 2-0:1.0: USB hub found
[ 28.873085] hub 2-0:1.0: 1 port detected
[ 29.365942] xhci-hcd xhci-hcd.1.auto: remove, state 4
[ 29.371051] usb usb2: USB disconnect, device number 1
[ 29.377215] xhci-hcd xhci-hcd.1.auto: USB bus 2 deregistered
[ 29.383310] xhci-hcd xhci-hcd.1.auto: remove, state 4
[ 29.388632] usb usb1: USB disconnect, device number 1
[ 29.395997] xhci-hcd xhci-hcd.1.auto: USB bus 1 deregistered
[ 29.611580] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 29.617184] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
[ 29.625420] xhci-hcd xhci-hcd.1.auto: hcc params 0x200073c8 hci version 0x100 quirks 0x0000002200018010 

is there anyway to disable it ? the terminal is unusuable while the messages are being printed.

 

my distro, Yocto - Gatesgarth (from code aurora):

Linux imx8qxpc0mek 5.10.9-1.0.0+g32513c25d8c7 #1 SMP PREEMPT Tue Mar 9 02:17:18 UTC 2021 aarch64 aarch64
aarch64 GNU/Linux

Thanks,

Andre

0 Kudos
2 Replies

662 Views
b36401
NXP Employee
NXP Employee

You can use "dmesg -n 1" command to disable all messages from the kernel (and its drivers) except panic messages to be appearing on the terminal.

656 Views
AndreSilva
Contributor II

Thanks for your support, 

 

Regarding the messages, it looks like the usb OTG is not working correctly, I am not able to get any device enumerated. Can you check it ? I already checked 5.4.70 and 5.4.47 bsps. All the same 

 

Regards,

Andre

 

0 Kudos