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/PROCESSOR-SDK-AM335X: USB gadget debug message disable

Part Number: PROCESSOR-SDK-AM335X

Tool/software: Linux

We are using SDK 7.0  Linux kernel 3.12.10.

When we initiate a USB g-ether gadget connection on our board the g-ether gadget driver is filling the system log with debug messages.  I have the kernel debugging turned off in .config ( CONFIG_DEBUG_INFO ) but these messages still appear.  Is there a way in .config to turn this off or do I need to modify the source to #udef DEBUG, which will turn off these messages?

  • Tim,

    Can you please post a log showing what the debug messages look like?
  • Sorry about that. Here is a sample:


    Jun 20 13:53:57 Node00b01973d6c8 user.debug kernel: [ 666.179058] g_ether gadget: rndis reqa1.01 v0000 i0000 l4096
    Jun 20 13:53:57 Node00b01973d6c8 user.debug kernel: [ 666.179265] g_ether gadget: rndis req21.00 v0000 i0000 l36
    Jun 20 13:53:57 Node00b01973d6c8 user.debug kernel: [ 666.179301] gen_ndis_query_resp: RNDIS_OID_GEN_RCV_NO_BUFFER
  • Tim,

    The first two lines of the messages are printed by drivers/usb/gadget/f_rndis.c, line 523:

     522         if (value >= 0) {
     523                 DBG(cdev, "rndis req%02x.%02x v%04x i%04x l%d\n",
     524                         ctrl->bRequestType, ctrl->bRequest,
     525                         w_value, w_index, w_length);
    

    Likely you have the following Kernel debug option enabled.

    menuconfig -> Device Drivers > USB support > USB Gadget Support > [*] Debugging messages (DEVELOPMENT)

    The config option name is CONFIG_USB_GADGET_DEBUG.

    Disabling the option should solve the issue for you.