Reading A20 SID (Security ID)

Started by gsbMechatr, September 11, 2015, 11:34:37 AM

Previous topic - Next topic

gsbMechatr

Hi,

I am looking into finding a unique "Serial key" like identification value for individual A20 LIME boards. I have done a bit of research which lead me to SID (Security ID) - http://linux-sunxi.org/SID_Register_Guide

I would like to read the memory address related to the SID, but I am not exactly sure how to do this. I have tried some things but without meaningful results.

If anyone has an idea of how a person might go about reading a memory address directly in linux, it would be greatly appreciated.

Thanks in advanced



progmetalbg

If you use u-boot 2015.07 or newer you can see some kind of serial number in the output of /proc/cpuinfo.
Output from my A20-OLinuXino-MICRO running Arch Linux ARM with mainline kernel 4.2 and u-boot 2015.07:
Quote

[alarm@alarm ~]$ cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 50.52
Features        : half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc07
CPU revision    : 4

processor       : 1
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 50.52
Features        : half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc07
CPU revision    : 4

Hardware        : Allwinner sun7i (A20) Family
Revision        : 0000
Serial          : 1651658f04c22286



https://groups.google.com/forum/#!topic/linux-sunxi/zrwAS7qaIVI

gsbMechatr

Thank you very much for your reply  :) We ended up using another method, but I am still going to explore this.

Cheers.