Re: [U-Boot] ethernet: ROM MAC address vs env variable MAC address

2017-11-14 Thread Mike Looijmans
On 13-11-17 20:49, Wolfgang Denk wrote: Dear Prabhakar, In message you wrote: Why ROM MAC address getting overwritten by environment env MAC address. Because in U-Boot we give the user the freedom to do what

Re: [U-Boot] ethernet: ROM MAC address vs env variable MAC address

2017-11-13 Thread Wolfgang Denk
Dear Prabhakar, In message you wrote: > > Why ROM MAC address getting overwritten by environment env MAC address. Because in U-Boot we give the user the freedom to do what he needs/wants to do. Usually the

Re: [U-Boot] ethernet: ROM MAC address vs env variable MAC address

2017-11-09 Thread Lukasz Majewski
Hi Prabhakar, > Hi All, > > I am seeing following type of code for MAC address write for a > network device. > > net/eth-uclass.c eth_post_probe() or net/eth_legacy.c > eth_write_hwaddr() > > eth_env_get_enetaddr_by_index("eth", dev->seq, env_enetaddr); > if

[U-Boot] ethernet: ROM MAC address vs env variable MAC address

2017-11-08 Thread Prabhakar Kushwaha
Hi All, I am seeing following type of code for MAC address write for a network device. net/eth-uclass.c eth_post_probe() or net/eth_legacy.c eth_write_hwaddr() eth_env_get_enetaddr_by_index("eth", dev->seq, env_enetaddr); if (!is_zero_ethaddr(env_enetaddr)) {