From 72eb151aeec4b22bba618db928eed6c401e021af Mon Sep 17 00:00:00 2001 From: "Thang Q. Nguyen" Date: Sat, 6 Feb 2021 01:22:45 +0000 Subject: 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: 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 Signed-off-by: Thang Q. Nguyen Change-Id: Ifb7eefbb17257545d026005f859d37ef562289b7 --- meta-ampere/meta-jade/conf/machine/mtjade.conf | 1 + 1 file changed, 1 insertion(+) (limited to 'meta-ampere/meta-jade/conf/machine') diff --git a/meta-ampere/meta-jade/conf/machine/mtjade.conf b/meta-ampere/meta-jade/conf/machine/mtjade.conf index 218018953..ec6e27f17 100644 --- a/meta-ampere/meta-jade/conf/machine/mtjade.conf +++ b/meta-ampere/meta-jade/conf/machine/mtjade.conf @@ -18,6 +18,7 @@ VOLATILE_LOG_DIR = "no" OBMC_IMAGE_EXTRA_INSTALL_append = "\ ampere-usbnet \ ampere-flash-utils \ + ampere-mac-update \ " PREFERRED_PROVIDER_virtual/obmc-chassis-mgmt = "packagegroup-ampere-apps" -- cgit v1.2.3