summaryrefslogtreecommitdiff
path: root/meta-google
AgeCommit message (Collapse)AuthorFilesLines
2022-04-29meta-google: hoth: add support for NPCM8XXJason Ling1-8/+3
Make Hoth offsets apply identically across all architectures Signed-off-by: Jason Ling <jasonling@google.com> Change-Id: I0ac76cadc906c0a79eec3f143643b3f256710aa5
2022-04-26google-usb-network: Fix quotesWilliam A. Kennington III1-1/+1
The name in d.getVar() should have been quoted. Change-Id: I95468473268e24fcd97a681ac7baff9de2212278 Signed-off-by: William A. Kennington III <wak@google.com>
2022-04-26google-usb-network: Allow unspecific productWilliam A. Kennington III1-6/+9
This will allow us to trivially configure dynamic USB network information with providing any hardcoded config. Change-Id: I1e5a46e9c7eeaffcf66170c047bd18114cac98f6 Signed-off-by: William A. Kennington III <wak@google.com>
2022-04-26google-misc: srcrev bump a7af2e087e..3d7cd15710Andrew Geissler1-1/+1
Michael Shen (1): metrics-ipmi-blobs: Fix memory leak with readMem Change-Id: I714a0a40b94bfa361a6bae3bf2a35b1860e1bbd7 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-04-23gbmc-bridge: Fix USB IdWilliam A. Kennington III1-1/+1
0x232 was incorrect and it was supposed to be 0x22b. Change-Id: I45a8786ec1623b5d877eb5cfb1c7d330ac75a127 Signed-off-by: William A. Kennington III <wak@google.com>
2022-04-22google-usb-network: Recipe cleanupWilliam A. Kennington III1-4/+4
Just some minor changes to make it easier to extend. Change-Id: Ib368da9173983aa02759b9e8bce1c34231cdf391 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-18google-ipmi-sys: srcrev bump 0e22d32a85..c98db20388Andrew Geissler1-1/+1
William A. Kennington III (2): systemd: Stop targets when unneeded systemd: Save random seed during powercycle Change-Id: I039745e49d72aa08d712aaa0e4cee46c8356ed16 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
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-16google-ipmi-sys: srcrev bump 4f0d1de67e..0e22d32a85Andrew Geissler1-1/+3
William A. Kennington III (1): systemd: Handle PSU delay globally Change-Id: Ia80f0c4f230cc08e4344c2b53acdb6ffb1d2dbef Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
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: google-usb-network: Remove unused IP optionWilliam A. Kennington III3-27/+11
None of our configurations use the IPv4 address for the BMC, so we can remove all of the configuration. Change-Id: Ib7fd08afc48c189d5e79ceaf64deedacdf6ff6a4 Signed-off-by: William A. Kennington III <wak@google.com>
2022-04-06meta-google: google-usb-network: Fix shutdownWilliam A. Kennington III1-1/+3
We need to specify parameters to shut down the device cleanly. Change-Id: I4f6d3a5cd6aaebf9fb01a86ed78fc1f4737e41eb Signed-off-by: William A. Kennington III <wak@google.com>
2022-04-06meta-google: google-usb-network: Allow specifying interface nameWilliam A. Kennington III2-1/+3
Change-Id: Icdf1b12993b96d13008ddae93a54aa5bd6b35173 Signed-off-by: William A. Kennington III <wak@google.com>
2022-04-06meta-google: google-usb-network: Require fieldsWilliam A. Kennington III2-2/+18
The interface, product ID and bind device are required in order to set up the interface. Change-Id: I9e47c8e9dfa86ae33cb01cedee8471c863e2f066 Signed-off-by: William A. Kennington III <wak@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-05meta-google: google-usb-network: Name gadget after interfaceWilliam A. Kennington III1-2/+6
We generally have a single interface per gadget, so name it after the interface by default. Change-Id: Iac4ebc50fa8586ec3493111ffa85d8c3a7aa8125 Signed-off-by: William A. Kennington III <wak@google.com>
2022-04-05meta-google: google-usb-network: Bring link up after renameWilliam A. Kennington III1-0/+1
Otherwise it will remain down in some instances. Change-Id: I1878ff533eceed950799f513789f3b801a478c52 Signed-off-by: William A. Kennington III <wak@google.com>
2022-04-05meta-google: google-usb-network: Only rename link if requiredWilliam A. Kennington III1-3/+7
Otherwise it will remain down since the first command sets it administratively down. Change-Id: I203d145ffe9815426c2803b11a4313544d812cf5 Signed-off-by: William A. Kennington III <wak@google.com>
2022-04-05meta-google: google-usb-network: Handle errors consistentlyWilliam A. Kennington III1-19/+21
The previous script was not handling any errors while creating the gadget and could leave the system partially configured. Change-Id: I52ac726129ece1bb82412c5b42027ae8c98e067f 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-04-01meta-google: google-usb-network: Fix cleanup routineWilliam A. Kennington III1-5/+5
The sysfs directories are not a real filesystem and do not behave correctly if you use `rm -r`. You need to directly remove the relevant files and directories individually. Currently the script cannot successfully cleanup the interface. Change-Id: Ic7eb104fa6491347d24681ac45b4c0433ea07b23 Signed-off-by: William A. Kennington III <wak@google.com>
2022-04-01meta-google: google-usb-network: Set ifname correctlyWilliam A. Kennington III1-0/+2
We want the interface name on the system to reflect the name given as an argument to the script Change-Id: I00b2d28096aa3e6ef1332ef325a72f3c0f5283e8 Signed-off-by: William A. Kennington III <wak@google.com>
2022-04-01meta-google: google-usb-network: Cleanup gadget if setup failsWilliam A. Kennington III1-1/+4
If setup fails for any reason, we want to cleanup any of the gadget functions that were created. Change-Id: I61be13a66cba2916fe7685b021fe0f7fa225e4f6 Signed-off-by: William A. Kennington III <wak@google.com>
2022-04-01meta-google: remove zstd bbappendAndrew Geissler1-2/+0
This is no longer needed, the latest upstream version of the recipe has added both of these by default: https://gerrit.openbmc-project.xyz/c/openbmc/openbmc/+/52492/4/poky/meta/recipes-extended/zstd/zstd_1.5.2.bb Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I01e4404ba1694c1f8f7436e4ccf52fae4b5eb156
2022-03-31meta-google: libconfig-perl: fix LIC_FILES_CHKSUMPatrick Williams1-1/+1
Change Ifb47c08571e6297f643db5daf135349bc0fbf888 adjusted the LICENSE but missed a corresponding update to the LIC_FILES_CHKSUM. Make them match. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I0170a4b79cc593dd819c8eb5bc1bb3304ccb3e73
2022-03-30meta-google: libconfig-perl: update licensePatrick Williams1-1/+1
Per [1], upstream removed the generic "BSD" license. The libconfig-perl package doesn't have an explicit LICENSE or COPYING file but instead has a single line in the readme that states the license is "bsd". Considering the OE commit says that the license-formally-just-BSD is more formally BSD-3-Clause, update this recipe as such. 1. https://git.openembedded.org/openembedded-core/commit/?id=14d4c007c49652d836d325a12bdbcd3bfa42e6d5 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ifb47c08571e6297f643db5daf135349bc0fbf888
2022-03-29google-ipmi-sys: srcrev bump 40fe522255..4f0d1de67eAndrew Geissler1-1/+1
Steve Foreman (1): Add IPMI interface for CustomAccel service Willy Tu (1): google-ipmi-sys: Remove venture from reviewer Change-Id: I2f5ad610c15a1ca3f853edfafd5c53881b265410 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-03-29meta-google: gbmc-bridge: Terminate DHCP after reachableWilliam A. Kennington III4-0/+53
We don't want to continue running DHCP after a machine is ready to serve traffic. We will only run the DHCP process for a short amount of time if we can determine that the BMC can reach network services because it was already correctly configured. Change-Id: Ie79e0582718af88a4a170b2a77beebfbadd5d0af Signed-off-by: William A. Kennington III <wak@google.com>
2022-03-29meta-google: Enable patch fuzz to be error instead of warningWilly Tu1-0/+3
Change-Id: I71d6114928ae63c7a98deb723a25bb7e82e1bf13 Signed-off-by: Willy Tu <wltu@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-03-28google-ipmi-i2c: srcrev bump 87a8b11075..6c84db51eaAndrew Geissler1-1/+1
Willy Tu (1): google-ipmi-i2c: Fix Deserialize request step header bytes variable Change-Id: I9a13fa195573056605a873f1b6c9f71bc2c7bd4b Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-03-17meta-google: rng-tools: Only use jitter entropy if requiredWilliam A. Kennington III1-0/+16
rngd will exit with a failure code if none of the provided entropy schemes are present. This enables us to start a fallback service if the hwrng is not present. Tested: ``` $ cat /lib/systemd/system/rngd-nojitter.service [Unit] OnFailure=rngd.service Conflicts=rngd.service Description=Hardware RNG Entropy Gatherer Daemon DefaultDependencies=no After=systemd-udev-settle.service Before=sysinit.target shutdown.target Wants=systemd-udev-settle.service Conflicts=shutdown.target [Service] EnvironmentFile=-/etc/default/rng-tools ExecStart=/usr/sbin/rngd -f -x jitter $EXTRA_ARGS CapabilityBoundingSet=CAP_SYS_ADMIN IPAddressDeny=any LockPersonality=yes MemoryDenyWriteExecute=yes NoNewPrivileges=yes PrivateTmp=yes ProtectControlGroups=yes ProtectHome=yes ProtectHostname=yes ProtectKernelModules=yes ProtectKernelLogs=yes ProtectSystem=strict RestrictAddressFamilies=AF_UNIX RestrictNamespaces=yes RestrictRealtime=yes RestrictSUIDSGID=yes SystemCallArchitectures=native SystemCallErrorNumber=EPERM SystemCallFilter=@system-service [Install] WantedBy=sysinit.target $ cat /lib/systemd/system/rngd.service [Unit] Description=Hardware RNG Entropy Gatherer Daemon DefaultDependencies=no After=systemd-udev-settle.service Before=sysinit.target shutdown.target Wants=systemd-udev-settle.service Conflicts=shutdown.target [Service] EnvironmentFile=-/etc/default/rng-tools ExecStart=/usr/sbin/rngd -f $EXTRA_ARGS CapabilityBoundingSet=CAP_SYS_ADMIN IPAddressDeny=any LockPersonality=yes MemoryDenyWriteExecute=yes NoNewPrivileges=yes PrivateTmp=yes ProtectControlGroups=yes ProtectHome=yes ProtectHostname=yes ProtectKernelModules=yes ProtectKernelLogs=yes ProtectSystem=strict RestrictAddressFamilies=AF_UNIX RestrictNamespaces=yes RestrictRealtime=yes RestrictSUIDSGID=yes SystemCallArchitectures=native SystemCallErrorNumber=EPERM SystemCallFilter=@system-service [Install] ``` Change-Id: I0ccc4ca88818b1944fe3c7914671550654980791 Signed-off-by: William A. Kennington III <wak@google.com>
2022-03-17meta-google: Add bbapend for rng-toolsWilly Tu2-0/+4
Set jitter to use only single thread. gBMC systems will always at least 2 CPU, so it won't take up everything. Change-Id: I43215a4ebca680d3d340062cc9f99a33ab36a60f Signed-off-by: Willy Tu <wltu@google.com>
2022-03-16google-ipmi-i2c: srcrev bump fb28f5e4a3..87a8b11075Andrew Geissler1-8/+5
Willy Tu (3): build: Add meson build for google-ipmi-i2c build: Remove autotools google-ipmi-i2c: Refactor to use new version of OEM IPMI Handler Change-Id: I37a1b3f7fb9814ae9ca7f5533c35cfd6d59d3f99 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-03-10meta-google: watchdog: Increase timeout to 120sWilly Tu1-1/+1
The timeout of 60s is causing tests with Qemu to fail for gBMC. This is not an issue with real machines. Increase the timeout to avoid the issue. Change-Id: Ie1c206349dc21eecbfb5fd7350b4f643b08d9708 Signed-off-by: Willy Tu <wltu@google.com>
2022-03-08meta-google: distro: Enable google dbus schemasWilliam A. Kennington III1-0/+2
Change-Id: Ic59f61a4bc3562e7f9bb0204f701e13d3c1a203f Signed-off-by: William A. Kennington III <wak@google.com>
2022-03-08meta-google: gbmc-mac-config: Fix for single quotesWilliam A. Kennington III1-1/+1
Change-Id: Idc9f3be1f11612f093b12df79365c7c66667eb04 Signed-off-by: William A. Kennington III <wak@google.com>
2022-03-07meta-google: gbmc-ncsi-config: Restrict accepted hostnamesWilliam A. Kennington III1-1/+1
We only want to allow valid prod hostnames such as `jtyl0` or `fgh10` and not hostnames like `ovss`. Change-Id: I0acf9405ff331a06526a52fe1b410458b122893a Signed-off-by: William A. Kennington III <wak@google.com>
2022-03-07meta-google: gbmc-mac-config: Support same MAC assignmentWilliam A. Kennington III2-7/+6
Make it possible to configure two interfaces with identical mac addresses. This can be configured with a line similar to `GBMC_MAC_IF_MAP = "[0]='gbmcbr eth1'"` to assign the same offset 0 mac to gbmcbr and eth1. Change-Id: I33e3edac4c59c5b2338fd3fd58ac655df47ef812 Signed-off-by: William A. Kennington III <wak@google.com>
2022-03-05meta-google: google-usb-network: Allow picking device typeWilliam A. Kennington III3-4/+14
This makes it possible to choose something other than EEM. Change-Id: Id3bd080efa63eddd1d413df19bc373eef96ac359 Signed-off-by: William A. Kennington III <wak@google.com>
2022-02-26treewide: support yocto kirkstone releasePatrick Williams1-1/+1
* Deprecate N-1 release (hardknott). * Enable N+1 release (kirkstone). Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I39e027e02dab64b4390b46ffbd9c299c858f403e
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-24meta-google: gbmc-bridge: Only target bridge USB devicesWilliam A. Kennington III2-1/+18
This will allow us to have non-bridge USB devices on the system. Change-Id: I5102fa8e1039013d9629b889350d46c6acf5cde3 Signed-off-by: William A. Kennington III <wak@google.com>
2022-02-23meta-google: gbmc-ncsi-config: Add stateless IPWilliam A. Kennington III1-0/+7
We want to respond to neighbor solicits over NCSI for all public IPs on the bridge. Change-Id: I9179ca6cb82d956a6b1db82c075e803248d7248d Signed-off-by: William A. Kennington III <wak@google.com>
2022-02-23meta-google: google-usb-network: Don't wait for phosphor-ipmi-hostWilliam A. Kennington III1-1/+0
This is not needed for runtime service to work correctly as the bridges on both sides come up before the USB device is present anyway. Change-Id: I27b6ad5b265ff18f78f41388d26b02ced39749ae Signed-off-by: William A. Kennington III <wak@google.com>
2022-02-23meta-google: google-usb-network: Use EEM instead of ECMWilliam A. Kennington III4-34/+34
This about doubles the performance of the network interface over USB2 Change-Id: Id8f79435b9cb7f02fa9094bf50e90023dfe188a8 Signed-off-by: William A. Kennington III <wak@google.com>