On Wed, 2019-02-13 at 10:35 +0100, Andreas Schwab wrote: > On Feb 13 2019, Anup Patel <a...@brainfault.org> wrote: > > > General practice (atlease what I have seen on few boards), is that > > board > > will have unique MAC address printed/labelled for each Ethernet > > port. We > > can just set-and-save "ethaddr" U-Boot env variable based on MAC > > address > > printed on board. > > > > Unfortunately, I was not able to find printed MAC address on > > Unleashed board. > > It is derived from the serial number. >
Here is the relevant code from the FSBL [1]. The serial number is stored in OTP memory. There's also a U-Boot driver available [2], but I haven't tested or looked at it in detail. [1]: https://github.com/sifive/freedom-u540-c000-bootloader/blob/master/fsbl/main.c#L377 [2]: https://github.com/tmagik/HiFive_U-Boot/commit/6d842765de142b61f847852da7a9ce0d081d770c Thanks, Lukas _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot