Hi,
We are using Jetson AGX Xavier L4T 32.4.3 based custom BSP on our Custom Carrier board and one of our customers is trying to use a UDC device(USB Device Controller).
Jetson Xavier fails to start the “nv-l4t-usb-device-mode” service. It fails to find UDC devices. As a result, it is missing the USB gadget API that is present on the Jetson AGX Xavier Development Kit.
Specifically, they are in need of the RNDIS feature for Ethernet, a virtual COM port, and SSH/SFTP capabilities from a Windows client.
They have a hard requirement for a virtual COM port in addition to the mentioned features provided by RNDIS. The main issue is that the nv-l4t-usb-device-mode service fails to start. I looked into the service’s failure mode with systemctl and it failed because it cannot find a UDC (USB Device Controller), which is strange because there is clearly a USB controller on the carrier.
When I try to see the status of this service on stock BSP as well as in our custom BSP, I see below log: Is this expected if no device connected and system is normal boot condition? Can you suggest me what needs to be done to make the UDC be detected in system?
nvidia@nvidia-desktop:~$ systemctl status nv-l4t-usb-device-mode.service
● nv-l4t-usb-device-mode.service - Configure USB flashing port for device mode
Loaded: loaded (/opt/nvidia/l4t-usb-device-mode/nv-l4t-usb-device-mode.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2018-01-28 22:06:47 IST; 3 years 5 months ago
Process: 20285 ExecStopPost=/opt/nvidia/l4t-usb-device-mode/nv-l4t-usb-device-mode-stop.sh (code=exited, status=0/SUCCESS)
Process: 18060 ExecStart=/opt/nvidia/l4t-usb-device-mode/nv-l4t-usb-device-mode-start.sh (code=exited, status=1/FAILURE)
Main PID: 18060 (code=exited, status=1/FAILURE)
Jan 28 22:06:46 nvidia-desktop nv-l4t-usb-device-mode-stop.sh[20285]: rmdir: failed to remove ‘l4t/functions/mass_storage.0/’: No such file or directory
Jan 28 22:06:46 nvidia-desktop nv-l4t-usb-device-mode-stop.sh[20285]: rmdir: failed to remove ‘l4t/functions/acm.GS0/’: No such file or directory
Jan 28 22:06:46 nvidia-desktop nv-l4t-usb-device-mode-stop.sh[20285]: rmdir: failed to remove ‘l4t/functions/rndis.usb0/’: No such file or directory
Jan 28 22:06:46 nvidia-desktop nv-l4t-usb-device-mode-stop.sh[20285]: rmdir: failed to remove ‘l4t/configs/c.1/’: No such file or directory
Jan 28 22:06:46 nvidia-desktop nv-l4t-usb-device-mode-stop.sh[20285]: rmdir: failed to remove ‘l4t/strings/0x409’: No such file or directory
Jan 28 22:06:46 nvidia-desktop nv-l4t-usb-device-mode-stop.sh[20285]: rmdir: failed to remove ‘l4t’: No such file or directory
Jan 28 22:06:46 nvidia-desktop nv-l4t-usb-device-mode-stop.sh[20285]: l4tbr0: ERROR while getting interface flags: No such device
Jan 28 22:06:46 nvidia-desktop nv-l4t-usb-device-mode-stop.sh[20285]: bridge l4tbr0 doesn’t exist; can’t delete it
Jan 28 22:06:47 nvidia-desktop systemd[1]: nv-l4t-usb-device-mode.service: Failed with result ‘exit-code’.
Jan 28 22:06:47 nvidia-desktop systemd[1]: Failed to start Configure USB flashing port for device mode.