Udc-core: couldn't find an available UDC - added [g_ether] to list of pending drivers

Hi ,
I am trying to load the g_ether on Jetson Xavier with 5.1.2 version jetpack and I face the below log while loading it .

udc-core: couldn't find an available UDC - added [g_ether] to list of pending drivers

When I stop the nv-l4t-usb-device-mode.service I could load the g_ether but I could not see the USB addition when i give lsmod on my PC .

And i could see the below details when i use ifconfig on the Soc

hoenix@tegra-ubuntu:/sys/kernel$ ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.42.0.5  netmask 255.255.255.0  broadcast 10.42.0.255
        inet6 fe80::d4eb:fe6e:483a:cc3c  prefixlen 64  scopeid 0x20<link>
        ether 3c:6d:66:00:16:3b  txqueuelen 1000  (Ethernet)
        RX packets 2331  bytes 159415 (159.4 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2159  bytes 606644 (606.6 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

l4tbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.55.1  netmask 255.255.255.0  broadcast 192.168.55.255
        inet6 fe80::1  prefixlen 128  scopeid 0x20<link>
        ether 62:20:25:ff:89:01  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 175  bytes 20429 (20.4 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 175  bytes 20429 (20.4 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

rndis0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 62:20:25:ff:89:01  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

usb0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 62:20:25:ff:89:03  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Can you help on this USB tethering from Xavier to my PC?

hi @ShaneCCC , any update on this issue?

hi @DaneLLL , any idea on this issue?

Hi,
Would suggest check if required configs are enabled for the function. On Jetpack 6, we have tried
Jetson Orin Nano - Usb tethering not working (Jetpack 6) - #4 by DaveYYY

On Jetpack 5, CONFIG_USB_NET_RNDIS_HOST is enabled and CONFIG_USB_IPHETH is not enabled. The two configs are for mobile devices. And probably certain configs are required for desktop PCs.

I am using Jetson xavier NX (JP 5.1.2)

probably certain configs are required for desktop PCs

May I know which configs are required since i am not using any mobile.
Currently I have enabled the below configs on my system


    CONFIG_USB_GADGET=y
    CONFIG_USB_ETH=m
    CONFIG_USB_ETH_RNDIS=y (If connecting to Windows Host)
    CONFIG_INET=y