sgw136
October 4, 2022, 12:19pm
1
What is the proper way to identify the board type (TX1, TX2, Xavier, Orin, etc.) at runtime?
In the past, I have used:
cat /sys/module/tegra_fuse/parameters/tegra_chip_id
This is also suggested in this forum topic:
Hi,
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 -
cat /proc/cpuinfo
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:
TK1 : 64
TX1 : 33
TX2 : 24
[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:
cat /sys/devices/soc0/soc_id
# or if you want the hex format:
SOC_ID=`printf "0x%x\n" $(cat /sys/devices/soc0/soc_id)`
echo $SOC_ID
# or
cat /sys/devices/soc1/soc_id | cut -d':' -f3
sgw136
October 4, 2022, 3:50pm
3
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:
sudo su
cat /sys/devices/soc0/soc_id
exit
sgw136
October 4, 2022, 4:36pm
5
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 ?
sgw136
October 4, 2022, 7:22pm
7
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.
hello sgw136,
which l4t release version you’re currently working?
please refer to below for checking,
such as… # cat /sys/firmware/devicetree/base/model
or, # cat /sys/firmware/devicetree/base/compatible
sgw136
October 5, 2022, 1:25pm
11
Here are the results of catting those two files:
model: jetson-xavier
compatible: nvidia,jetson-xaviernvidia,tegra194
hello sgw136,
so, you’re able to identify the chip at runtime. are we able to close this discussion thread?
sgw136
October 6, 2022, 1:43pm
13
Between /sys/module/tegra_fuse/parameters/tegra_chip_id
and /sys/devices/soc0/soc_id
I believe so
system
Closed
October 26, 2022, 6:08am
15
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.