BPI-R3 serial number

Hy. I tried to get the serial Number of my R3. I tried with lshw, dmidecode but they don’t find. Has someone has an Idea please? :slight_smile:

Afaik there is no serial-number which can be read out. And ethernet-macs are random so also not reliable.

Maybe there is something fixed in efuse which can be used as serial.

Dmidecode imho only works on x86 to read out bios data

1 Like

You can try to read register from 0x11d00140~0x11d00144. it’s a unique id of the chip

image

2 Likes

what is the command ? I could not read

Hy Thank you. I will truc tonight. You use thé command Line MD from uboot?

In your screenshot and also checking various devices with the same SoC it looks like there are 8 bytes unique ID and not just 4. @moore can you check and let us know what the adjacent 4 bytes 0x11d00144~0x11d00148 are and if they are also a unique ID or something else?

Correct my previous information: The total bytes of the unique ID is 16 bytes.

3 Likes

On MT7981, MT7988 and MT7987 the ID seems to be 16 bytes like you described.

On MT7622 and MT7986 I only see the bytes 0x140~0x148 in the efuse resemble a unique ID while 0x148~014c are all zero. Can you check again for those older chips please (MT7622 and MT7986)?

Edit, just for completeness: MT7623 doesn’t seem to have any unique ID in the efuse (dumped on BananaPi R2).

Thank you for your reminder. After checking the datasheet, I found that the unique ID for MT7986/22 is only 8 bytes.

1 Like

Submitted for upstream inclusion in the respective DTSI files. I’d be happy to see review on the mailing list. https://patchwork.kernel.org/project/linux-mediatek/list/?series=1003113

2 Likes