The OTG port ssh is not exposed immediately

Hello nv teams
I use orin nano module, l4t version is 36.4.3, now I can not see the l4tbr0 device name and ip address through ifconfig after the machine is finished. I can see The device and the ip address with the command 'echo device >/sys/class/usb role/usb2-0-role-switch/role '. Now I want to ssh this ip after the initialization is complete, how do I need to set up the change?

  1. Is this a custom carrier board or NV devkit? Or you don’t know what I mean here?

  2. I want to ssh this ip after the initialization is complete

What “initialization” is that?

Thank you for your reply
I use custom carrier board,
initialization indicates that after the flash is complete, access the mouse and keyboard display to initialize the system,
Is there any way is not to enter the command ‘echo device >/sys/class/usb role/usb2-0-role-switch/role’, after the system initialization is completed, can use the l4tbr0 IP

Or to put it another way, can I add this “echo device >/sys/class/usb role/usb2-0-role-switch/role” to the device tree so that I can use it after initialization

Hi,

Ok… Just to clarify and explain. Your concept for this seems not correct.

Actually there is no need to do “echo device >/sys/class/usb role/usb2-0-role-switch/role”.

If your Jetson is recognized as USB device mode, then the role itself would be device automatically. The criteria here is:

  1. The usb2-0 port you are using now needs to be device mode supported from hardware aspect.

  2. If the hardware supports it, you need to follow our document to configure the USB port to fully work with OTG or device mode. As this document.
    Jetson AGX Orin Platform Adaptation and Bring-Up — NVIDIA Jetson Linux Developer Guide
    (device tree changes)

Some background knowledge for USB would be needed.

Thanks
Let me try