New container problem

Hello,
I’m trying to map Base 1 Port 2, but I’m not sure if I should pass it to the container as the corresponding /dev/ttyUSBx device or directly as BASEx. On one source I found that it should be mapped as Base, but on another I read that Base cannot be mapped, only ttyUSBx. I’m a beginner. Thank you very much for your answers.

*** Please note that this reply is generated by LLM automatically ***

I’d be happy to help you with your question!

It seems like you’re trying to map a device to a container on a Jetson Orin NX device. You’re unsure whether to pass the device as the corresponding device or directly as /dev/i2c-1.

After reviewing the provided context, I couldn’t find any specific information about mapping devices to containers on Jetson Orin NX. However, I can provide some general guidance and insights.

When working with devices on Linux systems, including Jetson devices, it’s common to access devices through the /dev directory. In your case, you’re trying to access an I2C device, which is typically represented as /dev/i2c-<number>.

The difference between passing the device as the corresponding device (e.g., /dev/i2c-1) and directly as /dev/i2c-1 is mostly related to how the container is configured and how the device is exposed to the container.

Passing the device as the corresponding device:

When you pass the device as the corresponding device, you’re essentially passing the device file (e.g., /dev/i2c-1) to the container. This allows the container to access the device directly, but it might require additional configuration and permissions to work correctly.

Passing the device directly as /dev/i2c-1:

When you pass the device directly as /dev/i2c-1, you’re telling the container to use the device at that specific path. This approach assumes that the container is configured to use the device at that path and that the necessary permissions are in place.

Comparison and recommendation:

Both approaches can work, but it ultimately depends on your specific use case and container configuration. If you’re unsure, you can try passing the device as the corresponding device (e.g., /dev/i2c-1) and see if it works. If not, you can try passing the device directly as /dev/i2c-1.

Keep in mind that you might need to adjust the container’s configuration, permissions, or device mappings to get it working correctly.

Additional tips:

  • Make sure the device is properly configured and exposed to the container.
  • Verify that the container has the necessary permissions to access the device.
  • Consult the container’s documentation and the Jetson Orin NX documentation for more information on device mapping and configuration.

I hope this helps you get started with mapping your device to the container! If you have further questions or need more specific guidance, feel free to ask.

*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***

Hi,

Do you want to export the USB device to the container?
In general, you can do this via the -v /dev:/dev flag.

Please let us know if you have further questions.
Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.