i.MX7 read MAC address via NVMEM driver

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX7 read MAC address via NVMEM driver

1,203 Views
GeoffBenn
Contributor I
We are trying to read the MAC address on an i.MX7.
We've enabled the NVMEM driver.
Then hexdump results in an invalid argument as follows:
 

# hexdump /sys/bus/platform/drivers/imx_ocotp/30350000.ocotp-ctrl/imx-ocotp0/subsystem/devices/imx-ocotp0/nvmem

hexdump: /sys/bus/platform/drivers/imx_ocotp/30350000.ocotp-ctrl/imx-ocotp0/subsystem/devices/imx-ocotp0/nvmem: Invalid argument

0000000 0103 a003 886a 8ebf 0297 0000

000000c

 

# hexdump /sys/devices/platform/soc/30000000.aips-bus/30350000.ocotp-ctrl/imx-ocotp0/nvmem

hexdump: /sys/devices/platform/soc/30000000.aips-bus/30350000.ocotp-ctrl/imx-ocotp0/nvmem: Invalid argument

0000000 0103 a003 886a 8ebf 0297 0000

000000c

Note that at the moment the MAC address is unset, and will be set in due course.

Labels (1)
0 Kudos
4 Replies

1,190 Views
igorpadykov
NXP Employee
NXP Employee

Hi GeoffBenn

 

one can look at similar example on

https://community.nxp.com/t5/i-MX-Processors/OCOTP-write-support-on-i-mx8m/m-p/825028?commentID=1161...

 

Best regards
igor

0 Kudos

1,170 Views
GeoffBenn
Contributor I

Thanks Igor,

Yes, I had seen that, including the successful hexdump.

However, isn't that patch adding "write" functionality, and we arent even getting as far as reading.

The link is broken, but by copying the displayed text, and pasting that it works.

The headline is i.MX8, thought it does also mention imx7s:

Tested imx8mm-evk, imx7s-warp7

I understood that they were quite different...?

Regards,

Geoff

0 Kudos

1,164 Views
igorpadykov
NXP Employee
NXP Employee

Hi Geoff

 

>I understood that they were quite different...?

 

it is the same, for example one can look at:

https://community.nxp.com/t5/i-MX-Processors/OCOTP-write-support-on-i-mx8m/m-p/825028

ocotp: ocotp-ctrl@30350000 {
compatible = "fsl,imx8mq-ocotp", "fsl,imx7d-ocotp", "syscon";

 

Different in i.MX8, i.MX8X families.

https://imxdev.gitlab.io/tutorial/Burning_eFuses_on_i.MX8_and_i.MX8x_families/

 

Best regards
igor

0 Kudos

1,151 Views
GeoffBenn
Contributor I

Thanks Igor (@igorpadykov),

Yes, I had seen that, including the successful hexdump.

The link is broken, but by copying it it works: https://patchwork.kernel.org/cover/10928999/

The headline is i.MX8, thought it does also mention imx7s:

Tested imx8mm-evk, imx7s-warp7

I understood that they were quite different...?

Regards,

Geoff

0 Kudos