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
2 Likes