[fdt] Add ability to parse a MAC address from a flattened device tree
authorMichael Brown <mcb30@ipxe.org>
Fri, 19 Jul 2019 16:35:39 +0000 (17:35 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 19 Jul 2019 16:35:39 +0000 (17:35 +0100)
commite520a51df1c65d750798420d5ba1bab4271db264
tree22f0bda67cd67738eac25ba56644eae399acc933
parenta385e2376859dc0195ec77aeab220876b201c16b
[fdt] Add ability to parse a MAC address from a flattened device tree

The Raspberry Pi NIC has no EEPROM to hold the MAC address.  The
platform firmware (e.g. UEFI or U-Boot) will typically obtain the MAC
address from the VideoCore firmware and add it to the device tree,
which is then made available to subsequent programs such as iPXE or
the Linux kernel.

Add the ability to parse a flattened device tree and to extract the
MAC address.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/config/config_fdt.c [new file with mode: 0644]
src/config/fdt.h [new file with mode: 0644]
src/core/fdt.c [new file with mode: 0644]
src/include/ipxe/errfile.h
src/include/ipxe/fdt.h [new file with mode: 0644]