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.

DRA712: kernel compilation error for CDC ECM driver

Part Number: DRA712


POSTING ON BEHALF OF CUSTOMER

I need your help with the following issue.

I’m trying to add a GSM modem to the project trough the USB port.

The idea is that this modem presents itself as a network  card to linux.

My understanding is that for that to happen, kernel should include the CDC ECM dirvers.

However, when I enable the CDC_ECM driver on the menuconfig and I  try to compile the kernel, I get the following error:

 

  drivers/built-in.o:f_ecm.c:function ecm_disable: error: undefined reference to 'gether_disconnect'    

 

I was not able to find information about that on the forums so I would appreciate if you have any information that can help me.

  • Hi,

    I don't see the build failure on my setup when enabling USB_CONFIGFS_ECM. Please make sure all the dependent Kernel configurations are enabled.
    gether_disconnect API is coming from u_ether driver, so make sure CONFIG_USB_U_ETHER is also enabled in your Kernel config.

    drivers/usb/gadget/function/u_ether.c:1344:EXPORT_SYMBOL_GPL(gether_disconnect);

    Regards,
    Vishal