i.MX7 read MAC address via NVMEM driver

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.MX7 read MAC address via NVMEM driver

1,252件の閲覧回数
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 返答(返信)

1,239件の閲覧回数
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 件の賞賛

1,219件の閲覧回数
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 件の賞賛

1,213件の閲覧回数
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 件の賞賛

1,200件の閲覧回数
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 件の賞賛