In cases, we would like to track down the pcDuino in the field. This can be achieved by check the CPU serial number of pcDuino. In this post, we show how to check the CPU serial number information.
We can get CPU ID by loading cpu_id.ko (this is built for pcDuino 2). The following are the commands we typed at the terminal of pcDuino:
$ sudo insmod cpu_id.ko $ cat /proc/cpu_id VER:C ID:165166c380485370515248480301dc8b
The source code can be found at: https://github.com/pcduino/modules/tree/master/sun4i-cpu-id
The ko file for pcDuino3 can be downloaded here.
To buiild the ko file for pcDuino3, we need to first install the dependency software package:
$sudo apt-get install pcduino-linux-headers-3.4.79+
Then we need to change the kernel location in Makefile to 3.4.79+, and comment out:
in file cpu_id.c.