diff options
author | Thang Q. Nguyen <thang@os.amperecomputing.com> | 2021-02-06 04:22:45 +0300 |
---|---|---|
committer | Thang Q. Nguyen <thang@os.amperecomputing.com> | 2021-02-09 01:44:37 +0300 |
commit | 72eb151aeec4b22bba618db928eed6c401e021af (patch) | |
tree | 7a818596b14556df34147e71296c9a9b74f328cc /meta-openpower | |
parent | 38e84136d5ea0f52126d7c2a1c629e0eb3653039 (diff) | |
download | openbmc-72eb151aeec4b22bba618db928eed6c401e021af.tar.xz |
meta-ampere: Set BMC MAC Address from FRU inventory
Support to get BMC MAC address from FRU over the FRU inventory
information (/xyz/openbmc_project/inventory/system/chassis/motherboard)
and update to the eth0 Ethernet interface and set the eth1addr u-boot
variable.
Tested:
1. Boot to u-boot, clear the eth1addr variable, save and reboot.
2. Boot to Linux:
- Check if the eth0 interface uses the MAC address in FRU.
root@mtjade:~# ip addr show dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 70:e2:84:86:76:ba brd ff:ff:ff:ff:ff:ff
- Check if the eth1addr u-boot variable uses the MAC address in FRU
root@mtjade:~# fw_printenv eth1addr
eth1addr=70:E2:84:86:76:BA
Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com>
Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com>
Change-Id: Ifb7eefbb17257545d026005f859d37ef562289b7
Diffstat (limited to 'meta-openpower')
0 files changed, 0 insertions, 0 deletions