meta-facebook: fix ipv6-ll address
The correct MAC address of NCSI managerd ethernet interface is obtained
during NCSI config process. It will need run extra workaround to
regenerated IPv6-LL address based on new MAC address from NCSI.
Add service for checking the MAC address is correctly get from NIC card
via NCSI, then regenerate the IPv6-LL address.
Tested on Harma:
```
root@harma:~# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 10:70:FD:E4:3F:63
inet addr:10.10.12.110 Bcast:10.10.255.255 Mask:255.255.0.0
inet6 addr: fe80::1270:fdff:fee4:3f63/64 Scope:Link
inet6 addr: 2018:5::e52e/128 Scope:Global
inet6 addr: 2019:7::1270:fdff:fee4:3f63/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:97642 errors:0 dropped:539 overruns:0 frame:0
TX packets:1625 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:15804387 (15.0 MiB) TX bytes:140035 (136.7 KiB)
Interrupt:42
root@harma:~# systemctl status network-wait-ipv6-ll@eth0.service
* network-wait-ipv6-ll@eth0.service - Wait IPv6 link-local initialization
Loaded: loaded (/usr/lib/systemd/system/network-wait-ipv6-ll@.service; static)
Active: active (exited) since Tue 2024-01-09 03:33:43 PST; 38s ago
Process: 271 ExecStart=/usr/libexec/check-ipv6-ll eth0 (code=exited, status=0/SUCCESS)
Main PID: 271 (code=exited, status=0/SUCCESS)
CPU: 148ms
Jan 09 03:33:41 harma systemd[1]: Starting Wait IPv6 link-local initialization...
Jan 09 03:33:41 harma check-ipv6-ll[271]: non-global mac address, start fix eth0 ipv6-ll
Jan 09 03:33:43 harma check-ipv6-ll[271]: eth0 mac: 10:70:fd:e4:3f:63
Jan 09 03:33:43 harma check-ipv6-ll[271]: expected ipv6-ll: fe80::1270:fdff:fee4:3f63
Jan 09 03:33:43 harma systemd[1]: Finished Wait IPv6 link-local initialization.
```
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Id3c40beda9f290d36565f0e8e146be772c9a9983
diff --git a/meta-facebook/recipes-phosphor/images/fb-phosphor-image.inc b/meta-facebook/recipes-phosphor/images/fb-phosphor-image.inc
index 1c2281e..7172028 100644
--- a/meta-facebook/recipes-phosphor/images/fb-phosphor-image.inc
+++ b/meta-facebook/recipes-phosphor/images/fb-phosphor-image.inc
@@ -25,6 +25,9 @@
mmc-utils \
util-linux-blkdiscard \
"
+OBMC_IMAGE_EXTRA_INSTALL:append:mf-fb-ncsi-nic = " \
+ network-wait-ipv6-ll \
+ "
IMAGE_LINGUAS="en-us"