What is the proper way to identify the board type (TX1, TX2, Xavier, Orin, etc.) at runtime?
In the past, I have used:
This is also suggested in this forum topic:
Is there any command to identify if the board is Jetson TX1 or TX2? I’ve both TX1 and TX2, and for some development purpose, want to know which board I’m using at runtime.
I tried the following to get the CPU info -
Only Jetson TX1 shows the Hardware name as “jetson_tx1”. On TX2, there is no Hardware name when the above command is used.
I also tried to use the following command to identify the L4T version
head -n 1 /etc/nv_tegra_release
Output on TX1 was
# R24 (rel…
That topic lists the following values:
[EDIT: Xavier: 25]
But, that file does not exist on the Orin. Is it possible to detect the chip type at runtime reliably?
You may find this from sysfs. Check:
You may also try:
# or if you want the hex format:
SOC_ID=`printf "0x%x\n" $(cat /sys/devices/soc0/soc_id)`
cat /sys/devices/soc1/soc_id | cut -d':' -f3
Thanks for the help. That “file” is available on the Orin, but not on the older models (Xavier, TX2, etc). Was the information just moved to that new location, or is that a different type of information? I am having some trouble finding reliable documentation on that.
It should be available with some previous releases such as recent JP4.
You may need to be be root:
I am guessing the jetpack or host Ubuntu version isn’t new enough for that to be available on my Xavier or TX2
Hmm… this was working on TX1 in Jan 2017:
I am trying to the hardware revision version for the Tegra X1 SoC in the Jetson TX1 kit that I have. Can someone guide me on how to get it? Can I read it from software?
Are you using standard kernel from JetPack ? Do you have /sys ? /sys/devices ?
I am 99% that we are using the standard kernel from the JetPack. /sys/devices does exist, however, it does not have any “soc#” entries. The new Orin I am testing on does.
For the 1% left, if you’re not using standard devkits but 3rd party carrier board, you may ask their support.
Did you edit device tree or /etc/fstab ?
Otherwise, it looks unexpected to me.
NVIDIA folks may have better suggestion than me for this.
which l4t release version you’re currently working?
please refer to below for checking,
# cat /sys/firmware/devicetree/base/model or,
# cat /sys/firmware/devicetree/base/compatible
Here are the results of catting those two files:
so, you’re able to identify the chip at runtime. are we able to close this discussion thread?
/sys/devices/soc0/soc_id I believe so
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.