Hi Axel,
On 02/23/2016 07:36 PM, Axel Heider wrote:
Does the HiKey board have a unique ID in the SoC that can be read out and that allows identifying different boards in software (e.g. in UBoot, Linux...)?On 02/23/2016 07:36 PM, Axel Heider wrote: Does the HiKey board have a unique ID in the SoC that can be read out and that allows identifying different boards in software (e.g. in UBoot, Linux...)?
On 02/24/2016 03:46 AM, Daniel Thompson wrote:
Hi Axel
eMMC has a 32-bit serial number in it. The DB410C uses this to generate a MAC address if it can't find one another way[1]. You should be able to access it directly from userspace. Something like:
cat /sys/bus/mmc/devices/mmc0:0001/serial
I tried above on two of my HiKey.
HiKey1
root@linaro-alip:~# cat /sys/bus/mmc/devices/mmc0:0001/serial 0x8654f095
HiKey2
root@linaro-alip:~# cat /sys/bus/mmc/devices/mmc0:0001/serial 0xfe544087
They are able to obtain unique ID for every board.
Does this work for you?
Akira
Daniel.
[1]: Although sadly it doesn't get cute and generate a MAC address commencing 0x96... I was rather pleased when I realized that would be valid locally assigned address.
On 23/02/16 11:21, Axel Heider wrote:
Koen,
Where does the MAC of board's ethernet port comes from actually?
Ehm, ethernet port? You mean wifi, right? I wish it had ethernet!
Shame on me, should have done a reality sync before adding that thought about the MAC. But it seems the MAC comes from config data in flash anyway, so not really what I'm looking for.
Axel
Dev mailing list Dev@lists.96boards.org https://lists.96boards.org/mailman/listinfo/dev
Dev mailing list Dev@lists.96boards.org https://lists.96boards.org/mailman/listinfo/dev