Board keeps resetting when usbnet drivers are enabled in Android 13.0.0_1.0.0 on imx8mm-evk

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

Board keeps resetting when usbnet drivers are enabled in Android 13.0.0_1.0.0 on imx8mm-evk

401 Views
mr_anderson
Contributor II

Greetings,

I was trying to integrate my 4G modem with the i.MX8mm-evk, so I enabled the usbnet drivers as per the Android user guide, I am using a fresh build and have not made any changes to the source files.

All I did was only enable the usbnet driver(drivers/net/usb/usbnet.c), it builds without any issues, but when I flashed.. and tried to turn it on, it keeps rebooting!

There seems to be some issue with a function call : usb_get_urb

I am not sure about how to fix this issue, If anyone could point me in to right direction it would be very helpful.

Regards,

Thomas.

Here are a few lines from logs before it reboots:

[ 4.083840][ T1] imx-drm 32c00000.bus:display-subsystem: bound imx-lcdif-crtc.0 (ops lcdif_crtc_ops [imx_lcdif_crtc])
[ 4.094984][ T1] imx_sec_dsim_drv 32e10000.mipi_dsi: version number is 0x1060200
[ 4.104384][ T1] imx-drm 32c00000.bus:display-subsystem: bound 32e10000.mipi_dsi (ops imx_sec_dsim_ops [sec_mipi_dsim_imx])
[ 4.116102][ T1] [drm] Initialized imx-drm 1.0.0 20120507 for 32c00000.bus:display-subsystem on minor 0
[ 4.286513][ T1] usb_phy_generic usbphynop1: supply vcc not found, using dummy regulator
[ 4.295108][ T1] usb_phy_generic usbphynop1: dummy supplies not allowed for exclusive requests
[ 4.304167][ T1] usb_phy_generic usbphynop2: supply vcc not found, using dummy regulator
[ 4.312697][ T1] usb_phy_generic usbphynop2: dummy supplies not allowed for exclusive requests
[ 4.335217][ T9] OF: graph: no port node found in /soc@0/bus@30800000/i2c@30a30000/tcpc@50/connector
[ 4.344675][ T9] OF: graph: no port node found in /soc@0/bus@30800000/i2c@30a30000/tcpc@50/connector
[ 4.385831][ T1] usbcore: registered new interface driver option
[ 4.392179][ T1] usbserial: USB Serial support registered for GSM modem (1-port)
[ 4.401420][ T1] usbnet: Unknown symbol usb_get_urb (err -2)
[ 4.458552][ T1] kvm: exiting hardware virtualization
[ 4.499034][ T1] reboot: Restarting system with command 'bootloader'

Labels (1)
0 Kudos
2 Replies

331 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Beside that you need to enter the usb location in device tree support.

Regards

0 Kudos

321 Views
mr_anderson
Contributor II

Hey @Bio_TICFSL ,

Thank you for the response,

Could you please elaborate a little bit more on how to enter the usb location in device tree support, or maybe link me an article on how to do so, else point me out if it is mentioned in the user guide.

I have done the same procedure in Android 11 build and was able to successfully enable the usbnet driver by only modifying the fragment file and SharedBoardConfig file without touching the dts files, but unable to recreate in Android 13.

Regards,

Thomas

0 Kudos