summaryrefslogtreecommitdiff
path: root/meta-openpower/recipes-phosphor/network
AgeCommit message (Collapse)AuthorFilesLines
2023-04-20meta-openpower: fix shellcheck issuesPatrick Williams2-24/+24
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I35a9ffed937919467dec62a1fbff729f4a51366c
2021-08-11meta-openpower: prep for new override syntaxAdriana Kobylak2-4/+4
Change-Id: I5ca16c6fa7bc616bfa9bc41c4f86d32fd92b0287 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
2019-10-21first-boot-set-*: Use ConditionPathExistsAlexander Filippov4-2/+7
Replaces the calls of `systemctl disable` with `ConditionPathExists=' in the systemd units files. It will allow us to distinguish an admin created state and a runtime created state. (From meta-openpower rev: 4b5603b4426442973f29392ee4d0955f48680fac) Change-Id: I1d187662576dea93550d21cf7031fbc663610fe7 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-10-10Do not reload systemd when removing servicesAndrew Geissler2-2/+2
Testing has shown that reloading the systemd daemon during the execution of the multi-user.target can cause intermittent failures. systemctl itself has special code to handle the situation when it sends the Reload command to the systemd daemon. It doubles the D-bus timeout and it also expects a disconnect, not a reply to it's sd_bus_call(). There is no need to have systemd do a daemon-reload with these services. The goal is to just prevent them from running during the next reboot of the BMC in which case systemd will be reloading the services anyway. (From meta-openpower rev: dc61895cbd6b269ed925fdb6266973a98f8a1d8e) Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: Ic9741234c9b0a4f7b1c020492a611da21f956d4f Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-09-17meta-openpower: Remove references to OPENPOWERBASEBrad Bishop2-2/+2
OPENPOWERBASE is only used for pointing at licenses...point at the licenses in oe-core in meta/files/common-licenses instead. to match the defacto convention used in other oe layers like meta-openembedded. (From meta-openpower rev: 2e899dc36982e5420f136da967669544e49c0c0e) Change-Id: Ia201bc5e60a9e4cd2392bb3735c99596d1fee006 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-09-12Add two MAC addresses support for Mihawk's 2 NICsAlvin Wang1-1/+22
(From meta-openpower rev: 94da1d8dee685dbfb062f457597265289d369295) Change-Id: I0df0ad8b66d8dfc7774bf3af73a08eed26a6d497 Signed-off-by: Alvin Wang <alvinwang@msn.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-08-28meta-openpower: avahi: Append MAC address to the hostnameasmithakarun1-11/+45
The idea of this commit is to handle situations where the serial number is not written into bmc-vpd. In such cases, the MAC address will be appended with the hostname to make the hostname unique. Tested By: 1. When BMC Serial Number is present: Output: root@witherspoon-YL10UF78A0H4:~# hostname witherspoon-YL10UF78A0H4 2. In the absence of BMC Serial Number, MAC Address is appended: Output: root@witherspoon:/# hostname witherspoon After enabling first-boot-set-hostname.service and reboot, root@witherspoon-70e284143365:/# hostname witherspoon-70e284143365 3. When Inventory interface is not found: Output: Exits with error: "No Ethernet interface found in the Inventory. Unique hostname not set!" Hostname will not be set. It remains the same. (From meta-openpower rev: d9e4700f7a09894fdd17b2fe97e51cf88135c585) Signed-off-by: asmithakarun <asmithkr@in.ibm.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Change-Id: Ia753e9797ee1627bf3ddd2edbb7ceed81fccad12 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-08-09meta-openpower: first-boot-set-hostname: use BPNAdriana Kobylak1-4/+4
Avoid a new QA warning: SRC_URI uses PN not BPN [src-uri-bad] (From meta-openpower rev: b46a23a26760830e18f4813cbec8e143b9effd0c) Change-Id: Ie14704b132d684c4f8733b99ce2c44a0f4fab9f5 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-08-06Avahi: Removing Inventory svc dependency from unique hostnameasmithakarun1-2/+0
xyz-openbmc-project-inventory.service dependency is removed from first-boot-set-hostname service. Unique hostname service may depend only on the VPD parser service, which has dependency on the Inventory service. (From meta-openpower rev: 3c830d7d08a729935e1ed9eece82a2a64ca693cc) Signed-off-by: asmithakarun <asmithkr@in.ibm.com> Change-Id: Ib4445d418ce5f64676b1758ba3d7b216f54d7964 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-06-26Avahi: Adding Asset interface in the script to generate unique hostnameasmithakarun1-1/+2
xyz.openbmc_project.Inventory.Item.Bmc is a null interface where the SerialNumber is not present. xyz.openbmc_project.Inventory.Decorator.Asset interface contains the SerialNumber and is replaced in place of the former interface. Tested by: 1. Finding SerialNumber in Inventory interface - busctl introspect xyz.openbmc_project.Inventory.Manager /xyz/openbmc_project/inventory/system/chassis/motherboard/boxelder/bmc output: [[0;1;39mxyz.openbmc_project.Inventory.Decorator.Asset [[0m interface - - - .BuildDate property s "" emits-change writable .Manufacturer property s "IPS " emits-change writable .Model property s "" emits-change writable .PartNumber property s "01DH137 " emits-change writable .SerialNumber property s "YL10UF76W015 " emits-change writable 2. Finding hostname - hostname output: witherspoon (From meta-openpower rev: cb0591457e1af5e79e8ac63770897ec1f25a1d51) Signed-off-by: asmithakarun <asmithkr@in.ibm.com> Change-Id: Ia7234471503562cfcbe14630e2e1352a3a84062e Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-06-26meta-openpower: first-boot-set-mac: use BPNBrad Bishop1-3/+3
Avoid a new QA warning: SRC_URI uses PN not BPN [src-uri-bad] (From meta-openpower rev: 3ba5cd5ddaa2536ed583ee5ad47732d82577623f) Change-Id: I328253a3d1348bfde764a8a4b2485f09c62249cf Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-06-19meta-openpower: startup order in first-boot-set-*Alexander Filippov2-0/+4
Adds missing dependency to unit files for first-boot-set-mac and first-boot-set-hostname services. (From meta-openpower rev: 1c2db54d25f5cdf23cc8bf491c8e21195ff554a7) Change-Id: I0e2c6c3597dff9dee290dc10b8ff994c35a8375d Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-06-19meta-openpower: fix logging in first-boot-set-*Alexander Filippov2-6/+13
Makes the showing of the warnings in the first-boot-set-mac.sh and first-boot-set-hostname.sh are same If the script runs manually the warning messages are shown on STDERR. If the script runs as a systemd unit the warning messages are shown in a system journal. (From meta-openpower rev: f80fbdb15330f694e4f80992470605d46b998efd) Change-Id: I44bdc5ff3ad6bee3bcae2d2a0e574cac3353cdde Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-06-04meta-openpower: Set unique BMC hostnameAlexander Filippov3-0/+81
To prevent hostnames conflicts this service appends to the default hostname a Serial Number retrieved from Inventory Manager. This operation is executed only at the first boot or after a factory reset. This will be skipped if hostname is manually configured to a non default value. (From meta-openpower rev: 55281dffb43c4c59a5fce24727627fa3de1498fe) Change-Id: I9c3aa7c19cf595a599baab71b2af49defb4b8c76 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-04-22meta-openpower: Sync BMC MAC address to ethernetAlexander Filippov3-0/+91
On first BMC boot copy the MAC address set at manufacturing time into the network DBus object. On some OpenPOWER systems the MAC address is set by the manufacturer in an EEPROM somewhere. If openpower-vpd-parser has forwarded the information in that eeprom onto phosphor-inventory manager, this script can further forward that on to the network stack of OpenBMC. This is only done on genesis boot (or after a factory reset) so that a manually configured address from the end user is not overridden. (From meta-openpower rev: 6f08b5190e0e7d83d1ddc08771dd31be7d0561ca) Change-Id: Ia15ce9217ad024a827e94c1dfd986ce19af7124d Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>