Ethernet Static MAC id allocation on yocto zeus kernel or u-boot

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

Ethernet Static MAC id allocation on yocto zeus kernel or u-boot

1,446件の閲覧回数
nikhil_sahu2
Contributor III

Hi All,

I have the Ethernet MAC id stored in QSPI NOR Flash under Partition Name /dev/mtdblock0 in a file. I want to read this file and assign this MAC id permanently to my ethernet port.

This assignment can be done on u-boot or kernel time.

which will be the best way to do this activity also please explain how can we achieve this.

I am using the Imx6 sabresd board and yocto zeus.

Thanks,

Nikhil

 

 

0 件の賞賛
返信
3 返答(返信)

1,431件の閲覧回数
nikhil_sahu2
Contributor III

Hello Igor,

Thanks for your reply. can you suggest some way so we can get this from userspace.

Thanks,

Nikhil

 

0 件の賞賛
返信

1,425件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Nikhil

 

one can try fw_setenv described in

https://www.denx.de/wiki/view/DULG/HowCanIAccessUBootEnvironmentVariablesInLinux

 

Best regards
igor

0 件の賞賛
返信

1,439件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Nikhil

 

one can try to define uboot CONFIG_ENV_IS_IN_SPI_FLASH in

https://source.codeaurora.org/external/imx/uboot-imx/tree/include/configs/mx6sabre_common.h?h=imx_v2...

and use ethaddr uboot environment variable.

 

Best regards
igor

0 件の賞賛
返信