diff options
author | Peter Yin <peter.yin@quantatw.com> | 2023-12-20 20:45:24 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2024-01-04 16:37:17 +0300 |
commit | 5b659899f60c7ea4e6c3df1143e60e432190d3e5 (patch) | |
tree | 94e73a7f30edd2d7911be648ab3cd83093215476 | |
parent | 331473560270bfb11b03cd8162b7213c3de01cad (diff) | |
download | openbmc-5b659899f60c7ea4e6c3df1143e60e432190d3e5.tar.xz |
meta-facebook: harma: usb-net
Setting the USB network address for SITV.
Change-Id: Ice43dfbb230ec5a97f73449dc1460e75e2d8d9dc
Signed-off-by: Peter Yin <peter.yin@quantatw.com>
3 files changed, 29 insertions, 0 deletions
diff --git a/meta-facebook/meta-harma/recipes-phosphor/images/fb-harma-phosphor-image.inc b/meta-facebook/meta-harma/recipes-phosphor/images/fb-harma-phosphor-image.inc index 882f20e9d6..b602a3d2c4 100644 --- a/meta-facebook/meta-harma/recipes-phosphor/images/fb-harma-phosphor-image.inc +++ b/meta-facebook/meta-harma/recipes-phosphor/images/fb-harma-phosphor-image.inc @@ -9,3 +9,8 @@ OBMC_IMAGE_EXTRA_INSTALL:append = " \ OBMC_IMAGE_EXTRA_INSTALL:append = " \ usbutils \ " + +# Allow scripted access to SITV BMC +OBMC_IMAGE_EXTRA_INSTALL:append = " \ + sshpass \ +" diff --git a/meta-facebook/meta-harma/recipes-phosphor/network/phosphor-network/00-bmc-usb0.network b/meta-facebook/meta-harma/recipes-phosphor/network/phosphor-network/00-bmc-usb0.network new file mode 100644 index 0000000000..fcb03222d4 --- /dev/null +++ b/meta-facebook/meta-harma/recipes-phosphor/network/phosphor-network/00-bmc-usb0.network @@ -0,0 +1,13 @@ +[Match] +Driver=cdc_ncm + +[Link] +Name=usb0 + +[Network] +DHCP=false +LinkLocalAddressing=no +IPv6AcceptRA=false + +[Address] +Address=192.168.20.101/24 diff --git a/meta-facebook/meta-harma/recipes-phosphor/network/phosphor-network_%.bbappend b/meta-facebook/meta-harma/recipes-phosphor/network/phosphor-network_%.bbappend new file mode 100644 index 0000000000..9d7e7787f6 --- /dev/null +++ b/meta-facebook/meta-harma/recipes-phosphor/network/phosphor-network_%.bbappend @@ -0,0 +1,11 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" + +SRC_URI:append:harma = " file://00-bmc-usb0.network" + +FILES:${PN}:append:harma = " ${sysconfdir_native}/systemd/network/00-bmc-usb0.network" + +do_install:append() { + install -d ${D}${sysconfdir_native}/systemd/network/ + install -m 0644 ${WORKDIR}/00-bmc-usb0.network \ + ${D}${sysconfdir_native}/systemd/network +} |