summaryrefslogtreecommitdiff
path: root/meta-google/recipes-phosphor
AgeCommit message (Collapse)AuthorFilesLines
2022-05-02meta-google: gbmc-update: Only extract firmware for our machineWilliam A. Kennington III1-1/+6
Some machines will have multiple firmware packages assigned that could brick the BMC. Only extract the firmware for a machine that matches the expected machine. Change-Id: Ibfdbe4614ee471a9f208c3d1a31d65a9fef06747 Signed-off-by: William A. Kennington III <wak@google.com>
2022-04-20meta-phosphor: disable phosphor-dbus-monitor by defaultPatrick Williams1-1/+0
phosphor-dbus-monitor still uses autoconf and has a hard dependency on phosphor-snmp, causing phosphor-snmp to be brought in on systems that have no interest in using SNMP. The vast majority of systems do not supply any config for phosphor-dbus-monitor, so the usage of it does not seem wide enough to enable the IMAGE_FEATURE by default. - Remove 'obmc-dbus-monitor' from IMAGE_FEATURE by default. - Clean up all systems that manually remove the dbus-monitor feature or package. - Explicitly add the 'obmc-dbus-monitor' to the following systems: - meta-ibm: all - meta-inspur: fp5280g2 - meta-quanta: s6q Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Iad6c4104466e21d1b9843dac964a634019eb6935
2022-04-16meta-google: phosphor-ipmi-config: ensure gbmcbr access availableTom Tung3-8/+28
Ensure channel_access for gbmcbr is set as well. Tested: Checked the channel access for gbmcbr and it's always available. ``` $ ipmitool channel info 11 Channel 0xb info: Channel Medium Type : 802.3 LAN Channel Protocol Type : IPMB-1.0 Session Support : multi-session Active Session Count : 0 Protocol Vendor ID : 7154 Volatile(active) Settings Alerting : enabled Per-message Auth : enabled User Level Auth : enabled Access Mode : always available Non-Volatile Settings Alerting : enabled Per-message Auth : enabled User Level Auth : enabled Access Mode : always available ``` Signed-off-by: Tom Tung <shes050117@gmail.com> Change-Id: If385b63fe15f35cc72b6863fea5f3172ef08bc8a
2022-04-13meta-google: console: Allow host console redirectionBrandon Kim5-0/+127
Originally written by William, upstreaming it from our downstream repo. Signed-off-by: William A. Kennington III <wak@google.com> Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: If23d97cb2505f45af089571d77a70a32a37d1ce8
2022-04-11meta-google: ipmi-config: Add option to remove default entity configWilly Tu1-1/+5
Currently it fources all gBMC to have `[]` as the entity-mapping config and will cause an issue to gBMC systems that uses the default mapping. Add a way to remove the default isntead of having all gBMC automatically remove it. ENTITY_MAPPING="default" ``` $ cat ./tmp/work/all-openbmc-linux/phosphor-ipmi-config/1.0-r1/package/usr/share/ipmi-providers/entity-map.json [ { "id": 0, "containerEntityId": 30, "containerEntityInstance": 0, "isList": false, "isLinked": false, "entities": [ { "id": 11, "instance": 3 }, { "id": 11, ... ``` ENTITY_MAPPING="no" ``` $ cat ./tmp/work/all-openbmc-linux/phosphor-ipmi-config/1.0-r1/package/usr/share/ipmi-providers/entity-map.json [] ``` Change-Id: I9adccc2685055bad8ac27207305083ba40327ce2 Signed-off-by: Willy Tu <wltu@google.com>
2022-04-06meta-google: gbmc-update: Only find a single sigWilliam A. Kennington III1-1/+1
We sometimes have provided tarballs with multiple image or sig files present. We need to limit find to just try the first one. Change-Id: If942c122e95a70ee5d84af702760ff4bc1cb2edb Signed-off-by: William A. Kennington III <wak@google.com>
2022-04-06meta-google: gbmc-update: Fix version outputWilliam A. Kennington III1-0/+4
If we ever have a directory with a VERSION file and version directory, it will write both versions. This is incorrect behavior. Change-Id: Ic6737836ab4c59c32dd3d9c78b76f222558d92a4 Signed-off-by: William A. Kennington III <wak@google.com>
2022-04-06meta-google: gbmc-update: Fixup rmWilliam A. Kennington III1-2/+1
This is a minor nit to remove some extraneous failed logs. It prevents rm from trying to remove `.` and `..`. Tested: Failing and retrying now longer prints out failed `rm` messages Change-Id: Ida92f7d90b989e0875d6a63f4216127cd7151c53 Signed-off-by: William A. Kennington III <wak@google.com>
2022-04-02meta-google: gbmc-update: Retry wget in case networking isn't readyWilliam A. Kennington III1-1/+9
Otherwise the netboot process will fail early and never complete properly. Change-Id: I90dfbaa53d914df1f9515e2a1feaf17797f741b8 Signed-off-by: William A. Kennington III <wak@google.com>
2022-03-29meta-google: Set entiy-map to `[]` by default for gBMCWilly Tu1-0/+4
The entity map is now used for ipmid/dbus-sdr and will cause ipmi failures after https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-host-ipmid/+/46882 Remove the default json and only allow system that require it to override it. Tested: ``` $ cat ./tmp/work/all-openbmc-linux/phosphor-ipmi-config/1.0-r1/package/usr/share/ipmi-providers/entity-map.json [] ``` Change-Id: I0ef8248a0d7d99fa0c9e3199c4eceb664bc624cf Signed-off-by: Willy Tu <wltu@google.com>
2022-02-24meta-google: inplace-gbmc-update: Exit while updatingWilliam A. Kennington III1-0/+3
We don't want to accidentally notify or continue on with the DHCP netboot process until after the updated image is installed. Change-Id: I05504632950566694e9dd60b25bd85c99b588f90 Signed-off-by: William A. Kennington III <wak@google.com>
2022-02-04meta-google: obmc-phosphor-image: Add tcpdump for dev buildsWilliam A. Kennington III1-0/+1
A number of machines need network debugging and it's useful to have this available in our dev builds. Change-Id: I37c0a7317295fb6d75c2fcf2cc913b63dd9b20a7 Signed-off-by: William A. Kennington III <wak@google.com>
2022-01-28meta-google: gbmc-update: Fix image fetchingWilliam A. Kennington III1-3/+4
The logic was not usable in our current environment. This makes some tweaks to download the image correctly. Change-Id: I86741e6029c2937d0a8106ac22a1738fa0e77cad Signed-off-by: William A. Kennington III <wak@google.com>
2021-12-20meta-google: Remove mostly unused iotoolsWilliam A. Kennington III1-1/+0
There are generally other ways to poke at the IO space of the BMC and there isn't any evidence these are being used anymore. Change-Id: I9d0e7187f2be8bbbf349e8cdf63c32013876260c Signed-off-by: William A. Kennington III <wak@google.com>
2021-12-20meta-google: phosphor-ipmi-host: Remove unused RDEPENDSWilliam A. Kennington III1-0/+3
Change-Id: I01bfbd4022584641d8df6ee694b62eadc3cb657c Signed-off-by: William A. Kennington III <wak@google.com>
2021-12-07meta-google: inplace-gbmc-update: Add dhcp hookWilliam A. Kennington III4-2/+134
This makes it possible for the BMC to fetch an upgraded image during DHCP time and perform an inplace update to the new version. Change-Id: I6d32af306180dd52d4235ba4edbb80c3e49756d7 Signed-off-by: William A. Kennington III <wak@google.com>
2021-12-03meta-google: hwmon: Enable update-functional-on-fail for gbmcWilly Tu1-0/+4
Enabled `update-functional-on-fail` by default for gBMC. Change-Id: I54b4fbaceb65c09b7b9cb72d7b7dcb7d048c7eba Signed-off-by: Willy Tu <wltu@google.com>
2021-11-04meta-google: update obmc-phosphor-initfs whitelistJie Yang1-0/+1
Add SMBIOS data sent by LinuxBoot to the initfs whitelist Signed-off-by: Jie Yang <jjy@google.com> Change-Id: I70e8cedabc8c7a2dc0df581b38695709e047bf96
2021-10-03certificate-manager: supply configs from the repoAnton D. Kachalov1-1/+1
This change is a part of the privilege seperation work which is tracked in: https://github.com/openbmc/openbmc/issues/3383 This change should be merged after individual repo change: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-certificate-manager/+/41166 Signed-off-by: Anton D. Kachalov <gmouse@google.com> Change-Id: I72e4842e7aa6de2ae4bcbdbf00953b7a79a0f414
2021-09-29meta-google: glome: Bump b7084b5c..02f7d272William A. Kennington III1-26/+0
Copybara-Service (1): Merge pull request #96 from l9i:go-presubmit Piotr Lewandowski (3): Print the ouptut of `gofmt -d` (if any) Print the output of `gofmt -d` (if any) Merge branch 'go-presubmit' of github.com:l9i/glome into go-presubmit William A. Kennington III (1): login/login: Remove glib url escap Change-Id: Ief099a8ebec5d78ce256e32dacb5cf90173bcfc9 Signed-off-by: William A. Kennington III <wak@google.com>
2021-09-09meta-google: google-key: Don't bring in all of gnupgWilliam A. Kennington III1-1/+1
This has a measurable effect on the size of the image, removing nearly 10MB of binaries from the uncompressed size. Change-Id: I4da1cca0ac036ef3eded48e5c64ab4ca12196264 Signed-off-by: William A. Kennington III <wak@google.com>
2021-08-19meta-google: Fix inplace-gbmc-version.shVivekanand Veeracholan1-1/+1
The script has a "#!/bin/bash" at the end of its command causing failure. Signed-off-by: Vivekanand Veeracholan <vveerach@google.com> Change-Id: I9b9e8fe9ee8a4374637e8fa95c0fa17b44e7ebb9
2021-08-19meta-google: Fix inplace-gbmc-verify.shVivekanand Veeracholan1-1/+1
The script has a "#!/bin/bash" at the end of mv command causing failure. Signed-off-by: Vivekanand Veeracholan <vveerach@google.com> Change-Id: I328a1ef61d0ad60f0d0b36cd36d081ba88ccb359
2021-08-11meta-google: Delete lines removing rsyslogVivekanand Veeracholan1-6/+0
rsyslog package is being removed for the entire gbmc distro. But bmcweb and dbus-sdr mode of phosphor-ipmi-host needs rsyslog package. Deleting these lines from the packagegroup-obmc-apps.bbappend. The removal of this package can be controlled at the machine level by adding the following line to machine conf. IMAGE_FEATURES_remove = "obmc-remote-logging-mgmt" Signed-off-by: Vivekanand Veeracholan <vveerach@google.com> Change-Id: I226d69adc08c886293bed273ac6ea023f58a6dd4
2021-08-11meta-google: minor fixup for override syntaxPatrick Williams1-1/+1
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I8bf8cb4f7e370d8ab0ba40fb325c9df28733f324
2021-08-07meta-google: packagegroups: Add obmc-apps bbappendZhenfei Tai1-0/+17
Signed-off-by: Zhenfei Tai <ztai@google.com> Change-Id: I10ca13b80eaa9259a72c1d1957bebe2fb2eb2978
2021-08-07meta-google: Add glome serial console login recipeJie Yang1-0/+26
Signed-off-by: Jie Yang <jjy@google.com> Change-Id: I98f40cbbb412028330201d174e9624410529d1f6
2021-08-07meta-google: Cleanup for Yocto override syntax changeWilly Tu11-46/+46
``` convert-overrides.py meta-google git grep "_[a-z0-9_/-]*[ :]" -- meta-google | grep ".bb" git grep -l _gbmc -- meta-google | grep ".bb" \ | xargs sed -i 's/_gbmc/:gbmc/' git grep -l _prod -- meta-google | grep ".bb" \ | xargs sed -i 's/_prod/:prod/' git grep -l _dev -- meta-google | grep ".bb" \ | xargs sed -i 's/_dev/:dev/' git grep -l _hoth -- meta-google | grep ".bb" \ | xargs sed -i 's/_hoth/:hoth/' git grep -l _bandaid -- meta-google | grep ".bb" \ | xargs sed -i 's/_bandaid/:bandaid/' ``` Some small fix includes ``` platforms_gbmc_bringup platforms_gbmc_secure ``` Tested: ``` $ git grep "_[a-z0-9_/-]*[ :]" -- meta-google | grep ".bb" meta-google/recipes-connectivity/avahi/avahi_%.bbappend:do_install:append:gbmc() { meta-google/recipes-core/dropbear/dropbear_%.bbappend:do_install:append:gbmc:dev() { meta-google/recipes-core/dropbear/dropbear_%.bbappend: echo ' chain gbmc_br_pub_input {' >>"$rules" meta-google/recipes-extended/libconfig/conf2struct-native_git.bb: oe_runmake checker meta-google/recipes-extended/libconfig/conf2struct-native_git.bb: oe_runmake install meta-google/recipes-extended/networking/mstpd_git.bb:do_install:append() { meta-google/recipes-extended/networking/sslh_git.bb: oe_runmake distclean meta-google/recipes-extended/networking/sslh_git.bb: oe_runmake sslh-conf.h meta-google/recipes-extended/networking/sslh_git.bb: oe_runmake install meta-google/recipes-google/ipmi/ipmi-fru-sh.bb:do_install:append() { meta-google/recipes-google/ncsi/gbmc-ncsi-config.bb:do_install:append() { meta-google/recipes-google/networking/gbmc-bridge.bb:do_rm_work:prepend() { meta-google/recipes-google/networking/gbmc-bridge.bb: # HACK: Work around broken do_rm_work not properly calling rm with `--` meta-google/recipes-google/networking/gbmc-ip-monitor.bb:do_install:append() { meta-google/recipes-google/networking/gbmc-iperf3.bb:do_install:append:dev() { meta-google/recipes-google/networking/gbmc-iperf3.bb: echo ' chain gbmc_br_pub_input {' >>"$rules" meta-google/recipes-google/networking/gbmc-mac-config.bb:do_install:append() { meta-google/recipes-google/networking/network-sh.bb:do_install:append() { meta-google/recipes-google/ssh/authorized-keys-comp.bb:SUMMARY = "Compiles a set of authorized_keys files into a single file" meta-google/recipes-google/ssh/authorized-keys-comp.bb:do_install:append() { meta-google/recipes-google/systemd/gbmc-systemd-config.bb:do_install:append:dev() { meta-google/recipes-google/test/test-sh.bb:do_install:append() { meta-google/recipes-phosphor/flash/inplace-gbmc-update.bb:do_install:prepend:dev() { meta-google/recipes-phosphor/host/phosphor-host-postd_%.bbappend:do_install:append:gbmc:dev() { meta-google/recipes-phosphor/initrdscripts/obmc-phosphor-initfs.bbappend:do_install:append:gbmc:dev() { meta-google/recipes-phosphor/initrdscripts/obmc-phosphor-initfs.bbappend:do_install:append:gbmc:prod() { meta-google/recipes-phosphor/ipmi/phosphor-ipmi-config.bbappend:do_install:append:gbmc() { meta-google/recipes-phosphor/ipmi/phosphor-ipmi-config.bbappend: overlapping="$(jq '."${GBMCBR_IPMI_CHANNEL}" | .is_valid and .name != "gbmcbr"' $chjson)" ``` Change-Id: I9d610c664bd44e8bd81fb8f7e76249a0b43b9ffd Signed-off-by: Willy Tu <wltu@google.com>
2021-08-02meta-google: images: Add inplace-gbmc-updateBrandon Kim1-0/+1
For gbmc override, add inplace-gbmc-update and set it as the PREFERRED_PROVIDER for virtual/bmc-update. Google-Bug-Id: 179618452 Google-Bug-Id: 179618500 Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: If8b7a3640b66fd323ee5c1a98619a09463933898
2021-08-02meta-google: images: Add dummy-gbmc-updateBrandon Kim1-0/+3
For gbmc override, add dummy-gbmc-update Google-Bug-Id: 179618452 Google-Bug-Id: 179618500 Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I09925bb262f7a535ff569689a37640a028a09137
2021-08-02meta-google: images: Add utilities to gbmc overrideBrandon Kim1-0/+6
Utilities such as ipmitool, iotools, lrzsz should be added to gbmc. Google-Bug-Id: 179618452 Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: Id092157e8868648d1a97ef90928dac2cfa1307ae
2021-08-02meta-google: flash: Import inplace-gbmc-updateBrandon Kim6-0/+165
Google BMC inplace update script and bitbake recipe. Google-Bug-Id: 179618162 Upstream: 22e2c3dd5f610777dee173a09d8e82dc2509a975 Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: Ia1beded107382dacb9f2f7e3cb9bbd86ae99d8c1
2021-08-02meta-google: flash: Import google-key from gBMCBrandon Kim4-0/+89
Google key installation script and bitbake recipe. Google-Bug-Id: 179618162 Upstream: 22e2c3dd5f610777dee173a09d8e82dc2509a975 Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I21c88b6c2810c4ab3f6089f79143e59b6ce935db
2021-08-02meta-google: flash: Import dummy-gbmc-updateBrandon Kim3-0/+48
Dummy image uploader for sending debug binaries. Google-Bug-Id: 179618162 Upstream: 22e2c3dd5f610777dee173a09d8e82dc2509a975 Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I53c0defeefffa007d71d68ceeb2602d83c22f523
2021-07-28meta-google: settings: Add copyright header to ymlBrandon Kim1-0/+14
Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I0725732aea9daa16c7cb4bf8f553d7ecfabf3628
2021-07-16meta-google: phosphor-ipmi-config: Add gbmc-bridge interfaceWilliam A. Kennington III2-0/+33
Change-Id: Ic13e677f12f09279df19a32d5f381b2f94d8e4b8 Signed-off-by: William A. Kennington III <wak@google.com>
2021-07-07Revert "meta-google: gbmc-kcs-config: Add package"William A. Kennington III1-2/+0
This reverts commit f93003dd8cf24bd689a7cf24407273b54b9994d4. Change-Id: Ia5ccc39e09d56b0ea083666eb8df3d858f1ac2f5 Signed-off-by: William A. Kennington III <wak@google.com>
2021-07-01meta-google: phosphor-networkd: Remove u-boot env for hothWilliam A. Kennington III1-0/+3
We can't safely store this data, so we don't. Change-Id: I9e0f99423485cf41ff4f9e3b333f4833572f6b73 Signed-off-by: William A. Kennington III <wak@google.com>
2021-06-16meta-google: recipes-phosphor: host: Import from gBMCBrandon Kim1-0/+7
Initial recipes-phosphor/host code from gBMC. Google-Bug-Id: 179618560 Upstream: 1182879e906e67ca171b21c1eaa4027f9d162e49 Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I9a9baa0528ce4dfc33437a1e9ae908ce22dc6d16
2021-06-16meta-google: recipes-phosphor: initrdscripts: Import from gBMCBrandon Kim4-0/+56
Initial recipes-phosphor/initrdscripts code from gBMC. Google-Bug-Id: 179618491 Upstream: 1182879e906e67ca171b21c1eaa4027f9d162e49 Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I810f3a80d635d2c3a38fcb1db7ee4c396ae2d7bb
2021-05-26phosphor-settings: Change setting for time managerHao Jiang2-0/+11
Change the default time settings for all google servers to Host/Manual so that timedate can be set via IPMI commands. Signed-off-by: Hao Jiang <jianghao@google.com> Change-Id: I94fec8a9c8eefb7dfaa327452ca453e132c0c140
2021-04-17meta-google: gbmc-dev-ssh-key: Add packageWilliam A. Kennington III1-0/+1
We want a key we can freely distribute to anyone who is building gBMC for use with SSH on development images. Change-Id: Iafedbbc6ebe2e62bce966bb368dd53831e29bd00 Signed-off-by: William A. Kennington III <wak@google.com>
2021-04-17meta-google: authorized-keys-comp: Add packageWilliam A. Kennington III1-0/+1
This adds a startup routine that compiles an authorized_keys file from multiple locations in the filesystem, allowing for multiple providers without clashing. Change-Id: Ib26e04af42f29d42410154fdd809aa3a525fc9d5 Signed-off-by: William A. Kennington III <wak@google.com>
2021-03-31meta-google: phosphor-dbus-interfaces-mapper-config: Allow gbmcWilliam A. Kennington III1-0/+2
We want to allow the mapper to discover interfaces and services that are published in the gBMC domain. Change-Id: Id107532d6a1ab52892ad310e516807accd6552f9 Signed-off-by: William A. Kennington III <wak@google.com>
2021-03-25meta-google: gbmc-kcs-config: Add packageWilliam A. Kennington III1-0/+2
Change-Id: I0e68a7520191554680c94d8e3b8bc98f368ac71b Signed-off-by: William A. Kennington III <wak@google.com>
2021-03-09meta-google: Use iproute2 instead of busyboxWilliam A. Kennington III1-0/+1
iproute2 provides a more complete set of utilies that are better behaved than the busybox variants with more complex network configurations. Change-Id: Ic638fac3deda68e2e509d733994b7b24cd2d38f1 Signed-off-by: William A. Kennington III <wak@google.com>
2021-03-09meta-google: gbmc-mac-config: Add packageWilliam A. Kennington III1-0/+2
This package allows a system to specify an IPMI FRU that contains MAC Address information used to populated MAC addresses for specified interfaces. Change-Id: I457d41509da0e63db4410937b84140d4ba410b41 Signed-off-by: William A. Kennington III <wak@google.com>
2021-02-18meta-google: obmc-phosphor-image: Add NCSI when specifiedWilliam A. Kennington III1-0/+2
Change-Id: Id15f7bb08f08da3cfdef24c0c38a42caffdb70c0 Signed-off-by: William A. Kennington III <wak@google.com>
2021-02-17meta-google: obmc-phosphor-image: Add iperf3William A. Kennington III1-0/+1
Change-Id: I56abfee5270d63e8077314f548effa86596a148d Signed-off-by: William A. Kennington III <wak@google.com>
2021-02-17meta-google: obmc-phosphor-image: Add systemd-configWilliam A. Kennington III1-0/+2
Change-Id: I37c82c2e7d494e7ae5581ee93ea34ac2908bedfb Signed-off-by: William A. Kennington III <wak@google.com>