Read Hardware id of the TX2 SOM

I want to read unique id for each TX2 SOM for inventory tracking. I have implemented that using the function unsigned long long tegra_chip_uid(void) {…} in the kernel. Is this id unique for the each TX2 SOM?

Hi nandagopalan.v, please see this related thread about determining the serial number at runtime:

[url]https://devtalk.nvidia.com/default/topic/1027966/jetson-tx2/how-to-read-tx2-modules-serial-number-in-code-/[/url]

Thanks a lot for your reply dustin. I have implemented unique id reading from procedures given in the following threads
https://devtalk.nvidia.com/default/topic/996988/
https://devtalk.nvidia.com/default/topic/1013747/obtain-unique-machine-id-of-tx1/

From the thread you have shared, i have read the serial no as below in my tx2 dev kit,

cat /proc/cmdline

androidboot.serialno=0335115020673

is androidboot.serialno unique for each tx2? and from where the androidboot.serialno is read?

Yes, they are unique to each unit. I confirmed by checking a couple different boards here, and they were each different.

Thanks dustin. In our design we are planning to go with L4T27.1. On that androidboot.serialno is taken from /boot/extlinux/extlinux.conf
“APPEND fbcon=map:0 net.ifnames=0 console=tty0 OS=l4t console=ttyS0,115200n8 memtype=0 video=tegrafb no_console_suspend=1 earlycon=uart8250,mmio32,0x03100000 gpt tegraid=18.1.2.0.0 tegra_keep_boot_clocks maxcpus=6 android.kerneltype=normal androidboot.serialno=0335115020673 vpr_resize root=/dev/mmcblk0p1 rw rootwait”

observed serial no is not unique. It only takes the value from this file only.

But in L4T28.1, androidboot.serialno is taken from cbootargs in /boot/extlinux/extlinux.conf. In this serialno is unique.

any suggestion?