Is it possible to uniquely identify a Librem 5 via software?

Is it possible to uniquely identify a Librem 5 via software? For example by reading out a serial number, or something like that? Just for my own administration.

Not answering the question as such but … MAC address of WiFi (or Bluetooth)? The card could of course be removed or replaced.

1 Like

I just checked the i.MX 8M’s Linux documentation, and it says that the processor’s unique ID can be read at /sys/bus/nvmem/devices/imx-ocotp0/nvmem, but there is an option in the kernel to surpress that. I don’t have my Librem 5 with me right now to check if that is suppressed or not. If it is, you can change that option and recompile your kernel.

2 Likes

While you can use nvmem directly, it gives you all raw bytes as stored in e-fuses. No need to fiddle with them when there’s /sys/devices/soc0/serial_number that gives a properly formatted output already.

3 Likes

Has this number any value for us?

Unclear on what the question is. Value meaning ā€œworthwhileā€ or value meaning ā€œthe actual number or string that you getā€?

If you had a fleet of identical devices, a unique immutable serial number is worthwhile for management purposes.

There are occasional low level protocols where it is convenient to have such a serial number available but where for some reason MAC or IP address does not suffice.

In general, unique immutable computer-readable serial numbers are considered bad for privacy but

  • that doesn’t so much apply in an all open source environment, and
  • in any case that ship has probably sailed (e.g. fingerprinting).

If your question is directed at the latter meaning, on my Librem 5 the ā€˜file’ that @ā€dos mentions contains 16 hex digits i.e. a 64-bit number, and it is non-zero. That doesn’t directly answer the question though as to whether it is ā€œsuppressedā€.

It is also unprotected i.e. readable to all.

1 Like