Sorry, you need to enable JavaScript to visit this website.

Unique serial number or ID

Unsolved
6 posts / 0 new
chris.smith's picture
chris.smith
Junior(0)
Unique serial number or ID

Is there any way to read in software a unique serial number that only that physical board will have? I've seen there appears to be a serial number sticker on the board. Is that accessible in software anywhere?

Perhaps something in the /sys/devices/amba.0/ directory has an entry that indicates a unique number? QSPI memory, SD disk, or Zynq itself?

Thanks,

Chris

TroutChaser's picture
TroutChaser
Moderator(18)
There is no 'Zynq based'

There is no 'Zynq based' unique identifier that I am aware of. You don't mention what hardware platform you are using but there may be options depending on your board. As an example the Avnet MicroZed FMC Carrier Card has a MicroChip 11AA02E48 2Kbit Serial EEPROM installed that has a unique 48 bit node address. Many use this as the Ethernet MAC ID address but you could use it as a board serial number as well. You could also reserve a memory location in some non-volatile device (QSPI flash) at an application level and program an identifier youself.
 
-Gary

chris.smith's picture
chris.smith
Junior(0)
Ahh, should have mentioned

Ahh, should have mentioned that I'm using the MicroZed. The serial EEPROM sounds like a good approach. Is there any easy way to access that ID from within the OS?

TroutChaser's picture
TroutChaser
Moderator(18)
Hello Chris,

Hello Chris,
 
I ran this by one of my co-workers and got this reply:
 
 
The way the single wire UNI/O interface works is that it depends upon a rather precise timing protocol to maintain clock synchronization with the host processor.  We have a standalone application which can do this on bare metal but once you get the OS involved, the timing would go out the window.  Theoretically, a hardware controller could be implemented in the PL to control the timing and retrieval of the MAC ID from the EEPROM and then the PS read that data from a set of AXI registers but we have not gotten that far yet.
 
Another alternative would be to run the standalone application and copy the MAC ID to QSPI flash and then have the OS read the data from QSPI flash.
 
Hope that helps,
 
-Gary

johnnymopo's picture
johnnymopo
Junior(0)
Hi Gary,

Hi Gary,
would it be possible to post the bare metal code to read the eeprom? or is it proprietary?

Thanks,
I'd like to check this out with my own FMC carrier.
John

liubenyuan's picture
liubenyuan
Junior(0)
yes, also a PL side SCIO

yes, also a PL side SCIO application would also be fine.