Thanks for your information.
I succeeded install R36.2.0 by l4t_initrd_flash.sh.
I can continue the installation by reconnect the USB cable, after USB Gadget was enabled.
It seems possible that the USB Gadget is operating in an incorrect USB device mode before it starts.
tegra-xudc.ko.tar.gz (330 KB)
succeeded_initrd.log (50.0 KB)
succeeded_capture_initrd_flash_usb_reconnect.txt (153.9 KB)
succeeded_hostpc_kernel.log (9.2 KB)
Details are below:
First, I prepared nv_enable_remote.sh with comments and sleep added to make it easier to see the progress.
nv_enable_remote.sh.txt (8.6 KB)
In particular, the process of searching for a UDC device seemed to be a waste of waiting time, so I changed the process to exit the loop once it is found, just like in R35.4.1.
This reduces the waiting time for ssh access.
for _ in $(seq 60); do
echo "set_up_usb_device_mode: check UDC device"
- udc_dev=3550000.usb
- if [ ! -e "/sys/class/udc/${udc_dev}" ]; then
- udc_dev=""
+ udc_dev_t186=3550000.usb
+ if [ -e "/sys/class/udc/${udc_dev_t186}" ]; then
+ udc_dev="${udc_dev_t186}"
break
fi
sleep 1
done
Second, once “enable_remote_access()” completed, the USBGadget configuration looked fine to me.
bash-5.1# ip a
1: lo: <LOOPBACK> mtu 65536 qdisc noop state DOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 48:b0:2d:ec:0c:84 brd ff:ff:ff:ff:ff:ff
3: usb0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
link/ether a2:d7:55:e6:88:52 brd ff:ff:ff:ff:ff:ff
inet6 fc00:1:1::2/64 scope global tentative
valid_lft forever preferred_lft forever
inet6 fe80::1/128 scope link tentative
valid_lft forever preferred_lft forever
At this time, a USB connection error message appeared on the host side before Jetson set the DeviceMode.
[25693.010687] usb usb4-port2: Cannot enable. Maybe the USB cable is bad?
Add /dev/nvme0n1
set_up_usb_device_mode: usb2 power on
set_up_usb_device_mode: link up
[ 9.507981] usb0: HOST MAC 2a:c8:de:4d:56:fb
[ 9.507986] usb0: MAC c6:ae:d2:dd:60:20
[ 9.509612] tegra-xudc 3550000.usb: EP 0 (type: ctrl, dir: out) enabled
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
bash-5.1#
<--- Reconnect USB cable here
[ 16.595476] tegra-xudc 3550000.usb: EP 5 (type: intr, dir: in) enabled
At this time, once I re-pointed the USB cable connected to OTG, the USB was recognized normally, RNDIS and MassStorage worked as expected, and the installation was completed.
Jan 6 18:40:49 um773l kernel: [25693.010687] usb usb4-port2: Cannot enable. Maybe the USB cable is bad?
<-- Reconnect USB cable here
Jan 6 18:41:12 um773l kernel: [25715.269457] usb 4-2: new SuperSpeed USB device number 9 using xhci_hcd
Jan 6 18:41:12 um773l kernel: [25715.290580] usb 4-2: New USB device found, idVendor=0955, idProduct=7020, bcdDevice= 0.02
Jan 6 18:41:12 um773l kernel: [25715.290588] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 6 18:41:12 um773l kernel: [25715.290591] usb 4-2: Product: Linux for Tegra
Jan 6 18:41:12 um773l kernel: [25715.290594] usb 4-2: Manufacturer: NVIDIA
Jan 6 18:41:12 um773l kernel: [25715.290596] usb 4-2: SerialNumber: 1421623029227
Jan 6 18:41:12 um773l kernel: [25715.388878] rndis_host 4-2:1.0 usb0: register 'rndis_host' at usb-0000:34:00.4-2, RNDIS device, a2:04:ff:74:8f:76
Jan 6 18:41:12 um773l kernel: [25715.389573] cdc_acm 4-2:1.2: ttyACM0: USB ACM device
Jan 6 18:41:12 um773l kernel: [25715.390007] usb-storage 4-2:1.4: USB Mass Storage device detected
Jan 6 18:41:12 um773l kernel: [25715.390315] scsi host0: usb-storage 4-2:1.4
Jan 6 18:41:12 um773l kernel: [25715.410436] cdc_ncm 4-2:1.5: MAC-Address: 26:9a:a6:4a:8c:3e
Jan 6 18:41:12 um773l kernel: [25715.410733] cdc_ncm 4-2:1.5 usb1: register 'cdc_ncm' at usb-0000:34:00.4-2, CDC NCM, 26:9a:a6:4a:8c:3e
Jan 6 18:41:12 um773l kernel: [25715.419069] cdc_ncm 4-2:1.5 enx269aa64a8c3e: renamed from usb1
Jan 6 18:41:13 um773l kernel: [25716.406406] scsi 0:0:0:0: Direct-Access Linux File-Stor Gadget 0515 PQ: 0 ANSI: 2
Jan 6 18:41:13 um773l kernel: [25716.406965] sd 0:0:0:0: Attached scsi generic sg0 type 0
Jan 6 18:41:13 um773l kernel: [25716.407475] sd 0:0:0:0: Power-on or device reset occurred
Jan 6 18:41:13 um773l kernel: [25716.407753] sd 0:0:0:0: [sda] 32768 512-byte logical blocks: (16.8 MB/16.0 MiB)
Jan 6 18:41:13 um773l kernel: [25716.407881] sd 0:0:0:0: [sda] Write Protect is on
Jan 6 18:41:13 um773l kernel: [25716.407884] sd 0:0:0:0: [sda] Mode Sense: 0f 00 80 00
Jan 6 18:41:13 um773l kernel: [25716.408007] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Jan 6 18:41:13 um773l kernel: [25716.409083] sda:
Jan 6 18:41:13 um773l kernel: [25716.409652] sd 0:0:0:0: [sda] Attached SCSI removable disk
Jan 6 18:43:33 um773l kernel: [25856.934448] usb 4-2: USB disconnect, device number 9