I’m trying to get the Toradex iMX8 serial number from user space so I can have a unique ID for each of my boards. I see that the serial number can usually be obtain with the following:
but when I use that command, this is what I get in return:
root@colibri-imx8x:~# cat /proc/device-tree/serial-number root@colibri-imx8x:~#
I also tried:
root@colibri-imx8x:~# hexdump -C /proc/device-tree/serial-number 00000000 00 00 00 00 00 00 00 00 00 |.........| 00000009
So I wanted to know if I’m doing something wrong or if there is another way to obtain the serial number.