USB OTG not working on RZ/G2M HiHope

Dear Renesas Team, 

 

I am using Hi-hope RZ/G2M evaluation board and I need to use USB 2.0 port as OTG. 

I follow this link "renesas.info/.../RZG_DeviceTree" for kernel configuration. When I insmod usb_g_serial or any other gadget driver, I get error messages. 

 

root@hihope-rzg2m:/# insmod /lib/modules/5.10.158-cip22-yocto-standard/kernel/drivers/usb/gadget/function/u_serial.ko 

[  439.899348] u_serial: Unknown symbol usb_ep_free_request (err -2) 

[  439.905590] u_serial: Unknown symbol usb_ep_alloc_request (err -2) 

[  439.911839] u_serial: Unknown symbol usb_ep_queue (err -2) 

[  439.917392] u_serial: Unknown symbol usb_ep_enable (err -2) 

[  439.923103] u_serial: Unknown symbol usb_ep_disable (err -2) 

insmod: ERROR: could not insert module /lib/modules/5.10.158-cip22-yocto-standard/kernel/drivers/usb/gadget/function/u_serial.ko: Unknown symbol in module 

 

root@hihope-rzg2m:/# insmod /lib/modules/5.10.158-cip22-yocto-standard/kernel/drivers/usb/gadget/legacy/g_serial.ko 

[  237.635631] g_serial: Unknown symbol usb_remove_function (err -2) 

[  237.641874] g_serial: Unknown symbol usb_get_function_instance (err -2) 

[  237.648547] g_serial: Unknown symbol usb_add_config_only (err -2) 

[  237.654695] g_serial: Unknown symbol usb_string_ids_tab (err -2) 

[  237.660740] g_serial: Unknown symbol usb_get_function (err -2) 

[  237.666593] g_serial: Unknown symbol usb_composite_unregister (err -2) 

[  237.673248] g_serial: Unknown symbol usb_put_function (err -2) 

[  237.679111] g_serial: Unknown symbol usb_add_function (err -2) 

[  237.684962] g_serial: Unknown symbol usb_composite_probe (err -2) 

[  237.691068] g_serial: Unknown symbol usb_composite_overwrite_options (err -2) 

[  237.698221] g_serial: Unknown symbol usb_otg_descriptor_alloc (err -2) 

[  237.704768] g_serial: Unknown symbol usb_put_function_instance (err -2) 

[  237.711398] g_serial: Unknown symbol usb_otg_descriptor_init (err -2) 

[  237.717858] g_serial: Unknown symbol usb_ep_autoconfig_reset (err -2) 

insmod: ERROR: could not insert module /lib/modules/5.10.158-cip22-yocto-standard/kernel/drivers/usb/gadget/legacy/g_serial.ko: Unknown symbol in module 

 

Note: No made in change in DTS file. 

 

Looking forward to help to enable USB OTG port. Am I missing anything here?

 

Regards, 

Dipen Patel