Unable to Flash R36 on Orin Nano 8GB Dev Kit Using External Storage

Hi,

If the echo on to usb2 power trick does not work, please try this patch to xudc driver which could be the potential official fix in next release. We are still reviewing it internally but mostly it won’t be changed.

diff --git a/drivers/usb/gadget/udc/tegra-xudc.c b/drivers/usb/gadget/udc/tegra-xudc.c
index dd89977..d7f55aa 100644
--- a/drivers/usb/gadget/udc/tegra-xudc.c
+++ b/drivers/usb/gadget/udc/tegra-xudc.c
@@ -3538,19 +3538,15 @@
 		}
 
 		/* Get USB3 phy */
-		usb3 = tegra_xusb_padctl_get_usb3_companion(xudc->padctl, i);
-		if (usb3 < 0)
-			continue;
-
-		snprintf(phy_name, sizeof(phy_name), "usb3-%d", usb3);
+		snprintf(phy_name, sizeof(phy_name), "usb3-%d", i);
 		xudc->usb3_phy[i] = devm_phy_optional_get(xudc->dev, phy_name);
 		if (IS_ERR(xudc->usb3_phy[i])) {
 			err = PTR_ERR(xudc->usb3_phy[i]);
 			dev_err_probe(xudc->dev, err,
-				      "failed to get usb3-%d PHY\n", usb3);
+				      "failed to get usb3-%d PHY\n", i);
 			goto clean_up;
 		} else if (xudc->usb3_phy[i])
-			dev_dbg(xudc->dev, "usb3-%d PHY registered", usb3);
+			dev_dbg(xudc->dev, "usb3-%d PHY registered", i);
 	}
 
 	return err;