How to recognize Jetson Nano device?

Hi,

I want my application to detect the hardware type (e.g. Jetson Nano, Raspberry Pi 4, etc) automatically.

Particularly, I want to know reliable ways to recognize Jetson Nano.
My application can read file systems and issue ioctl. Assume it can do anything a root user of L4T can.

Thanks,

I know

cat /proc/device-tree/model

returns the following string on Jetson Nano (L4T r32.4.2):

NVIDIA Jetson Nano Developer Kit

But I’m not sure this is reliable way. I mean I wonder if this string will be kept as-is in the future versions.

Hi,

Or you could go to this patch and check the sku # here. 3310 is the id of TX2 while 3489 is for TX2i. These should be not changed in future.

/proc/device-tree/chosen/plugin-manager/ids

1 Like

Ideal.

What’s the SKU # of Jetson Nano?
I see the following output on my nano:

% tree /proc/device-tree/chosen/plugin-manager/ids/
/proc/device-tree/chosen/plugin-manager/ids/
β”œβ”€β”€ 3448-0000-400
β”œβ”€β”€ 3449-0000-400
β”œβ”€β”€ connection
β”‚   β”œβ”€β”€ i2c@7000c500
β”‚   β”‚   β”œβ”€β”€ module@0x50
β”‚   β”‚   β”‚   β”œβ”€β”€ 3448-0000-400
β”‚   β”‚   β”‚   └── name
β”‚   β”‚   β”œβ”€β”€ module@0x57
β”‚   β”‚   β”‚   β”œβ”€β”€ 3449-0000-400
β”‚   β”‚   β”‚   └── name
β”‚   β”‚   └── name
β”‚   └── name
└── name

3448-0000 is for sdcard module
3448-0002 is for emmc module.

3449 is the carrier board id.

1 Like

Thanks a lot for your fast and precise answer :)

1 Like

I reached a conclusion on how to recognize Jetson Nano.

Find a file named β€œ\A3448-\d{4}-\d{3}\z” (regex) in /proc/device-tree/chosen/plugin-manager/ids/ directory.

Rationale is here:
https://docs.nvidia.com/jetson/archives/l4t-archived/l4t-3231/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/jetson_eeprom_layout.html

1 Like