[U-Boot] [PATCH v2 1/3] rockchip: rk3399: derive ethaddr from cpuid

2019-07-12 Thread Rohan Garg
Generate a MAC address based on the cpuid available in the efuse block: Use the first 6 byte of the cpuid's SHA256 hash and set the locally administered bits. Also ensure that the multicast bit is cleared. The MAC address is only generated and set if there is no ethaddr present in the saved enviro

Re: [U-Boot] [PATCH v2 1/3] rockchip: rk3399: derive ethaddr from cpuid

2019-07-15 Thread Kever Yang
Hi Rohan, On 2019/7/12 下午10:22, Rohan Garg wrote: Generate a MAC address based on the cpuid available in the efuse block: Use the first 6 byte of the cpuid's SHA256 hash and set the locally administered bits. Also ensure that the multicast bit is cleared. The MAC address is only generated and s

Re: [U-Boot] [PATCH v2 1/3] rockchip: rk3399: derive ethaddr from cpuid

2019-07-19 Thread Rohan Garg
Hey Kever > > This should be depends on CONFIG_MISC_INIT_R. > Ack. > > It's great to make these code as common code so that other SoCs > > can share it, is it possible to also make this function common? > > Not every SoC have efuse driver, so for those SoCs, we need a random > > serial No.

Re: [U-Boot] [PATCH v2 1/3] rockchip: rk3399: derive ethaddr from cpuid

2019-07-20 Thread Kever Yang
HI Rohan, On 2019/7/19 下午10:56, Rohan Garg wrote: Hey Kever This should be depends on CONFIG_MISC_INIT_R. Ack. It's great to make these code as common code so that other SoCs can share it, is it possible to also make this function common? Not every SoC have efuse driver, so for those