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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

112 Views
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

97 Views
Contributor III

Hello Igor,

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

Thanks,

Nikhil

 

0 Kudos

91 Views
NXP TechSupport
NXP TechSupport

Hi Nikhil

 

one can try fw_setenv described in

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

 

Best regards
igor

0 Kudos

105 Views
NXP TechSupport
NXP TechSupport

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