i.MX7 read MAC address via NVMEM driver

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

i.MX7 read MAC address via NVMEM driver

2,267 次查看
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.

标签 (1)
0 项奖励
回复
4 回复数

2,254 次查看
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 项奖励
回复

2,234 次查看
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 项奖励
回复

2,228 次查看
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 项奖励
回复

2,215 次查看
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 项奖励
回复