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

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

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

688 Views
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 Kudos
3 Replies

673 Views
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 Kudos

667 Views
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 Kudos

681 Views
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 Kudos