summaryrefslogtreecommitdiff
path: root/meta-google
AgeCommit message (Collapse)AuthorFilesLines
2024-02-14meta-google: ncsid: remove fmt dependencyPatrick Williams1-1/+0
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I003338298242f5f1405bfa0f2ae0ee477036784d
2024-02-12meta-google: nanopb: Update from 0.4.5 -> 0.4.8William A. Kennington III5-24/+61
This is intended to fix some build issues with the old 0.4.5 package and splits the generator bits out from the runtime bits. The change was taken from meta-openembedded@341c47848d04a2114b8c794ef6e01b03c80c801a and these files will eventually be deleted. Change-Id: If9e5886ff584305da9057a9de79e15fe288843fb Signed-off-by: William A. Kennington III <wak@google.com>
2024-02-10meta-google: gbmc-bridge: Remove STP supportWilliam A. Kennington III2-3/+0
We no longer have any projects or planned projects that require this support. We only have single path ethernet as a guarantee now. This configuration has been causing us some issues on some of our systems and it will be more stable to just ignore dynamic link configurations and the software burden of an RSTP stack. Change-Id: Ia6e113f41d2ad61a79d46a0bf15dd7e4230239db Signed-off-by: William A. Kennington III <wak@google.com>
2024-02-05google-ipmi-sys: srcrev bump d455bfd6e0..8ef497162fAndrew Geissler1-1/+1
Willy Tu (1): Reserve boot-time-monitor cmd on 18-20 Change-Id: Iaa9ff9c5c2e3125648fa799c33232143309ef7d7 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2024-02-03google-ipmi-sys: srcrev bump 1302e83cd8..d455bfd6e0Andrew Geissler1-1/+1
Gaurav Gandhi (1): Add new oem command to set accel power mode Change-Id: I546da6a66ffd6a99c74b7dead3059a9e01066944 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2024-01-30meta-google: ncsid: changing mask dirYuxiao Zhang1-2/+3
"lib" systemd directory conflicts with ncsid, this CL changes the masked service file to "etc". Change-Id: I8b1fe615ac3298db0e30c88070a1559cbc172a89 Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
2024-01-26meta-google: add recipe to disable/enable host consoleYuxiao Zhang3-0/+64
Add a service that will trigger by gbmc-bare-metal-active target, upon start/stop it will disable/re-enable obmc host console. Tested: manually tested with stopping/starting the target Change-Id: Ia57c825708bfe16f8f7967f6636d90327d28b5c0 Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
2024-01-26meta-google: add recipe to disable ipmi kcsYuxiao Zhang2-0/+49
Change-Id: I1954f9ac5361137ef42faed0ff271bdebd11e77d Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
2024-01-23meta-google: gbmc-bridge: keep dhcp running longerYuxiao Zhang1-2/+2
This is to make sure that dhcp runs for a while after nic is fully functional. Change-Id: I32c0e516bdb6a5aa33728266e8a58b9555d3e0ce Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
2024-01-16meta-google: Update GBMC_NCSI_IPMI_CHANNEL for npcm8xxTom Tung1-0/+1
Tested: ``` ~: MACHINE=npcm8xx_platform bitbake -e phosphor-ipmi-config | grep \ GBMC_NCSI_IPMI_CHANNEL= GBMC_NCSI_IPMI_CHANNEL="2" ~: MACHINE=other_platform bitbake -e phosphor-ipmi-config | grep \ GBMC_NCSI_IPMI_CHANNEL= GBMC_NCSI_IPMI_CHANNEL="1" ``` Change-Id: Iea0f8fc7ff2f2438b26e1b4addc40ea1ec6ff1a3 Signed-off-by: Tom Tung <shes050117@gmail.com>
2024-01-10google-misc: srcrev bump dca92e47d7..8800984ddeAndrew Geissler1-1/+1
John Wedig (1): Bare-metal: post complete GPIO monitor Yuxiao Zhang (1): bare-metal-host-monitor: capture state and action Change-Id: I488c8083b65f0fff851250bfa648bfe8a80d66e3 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2024-01-02google-misc: srcrev bump 47a0ada2a7..dca92e47d7Andrew Geissler1-1/+1
Willy Tu (2): build: Remove dependencies on fmtlib update libcr51sign to support MAUV Change-Id: Id6830e707faae772771fde9234baa169ddaf3906 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-12-15meta-google: add host-gpio-monitor recipeYuxiao Zhang1-0/+21
Change-Id: Ibe6172ceb44024d7229b9dfda7b9df2a8f98a8d6 Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
2023-12-15meta-google: google-ipmi-sys: rely on bare metal active recipesYuxiao Zhang1-2/+5
gbmc-bare-metal-active target is separated out from google-ipmi-sys, this will pull the target from the new recipe. google-ipmi-sys: SRCREV bump f3fe8df305..1302e83cd8 Yuxiao Zhang (1): google-sys-ipmi: Remove gbmc-bare-metal-active target Change-Id: Idc4cdf045255d335e0583fc40fe3628df134c7d8 Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
2023-12-15meta-google: Service to enable/disable eSPIJohn Wedig2-0/+42
Change-Id: I2ff0e6284e952e55f81e2c76fedb49c81f4855b2 Signed-off-by: John Wedig <johnwedig@google.com>
2023-12-15meta-google: ipmi: add target for disabling ipmi in bare metalYuxiao Zhang2-0/+25
Change-Id: Icb932ef7505f7177ff5b2b9bfeb2fd31352523eb Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
2023-12-15meta-google: Recipe for espi-control executableJohn Wedig1-0/+11
Change-Id: I7f761b96659bb0339e2bb570a4c1e47136d783c5 Signed-off-by: John Wedig <johnwedig@google.com>
2023-12-14meta-google: rsyslog: Increase syslog burst sizeYuxiao Zhang1-2/+2
During bootup all journal from startup will be uploaded in one shot when network is available. We need to increase burst size to make sure it can hold all messages in a regular boot up. Also increased the time span so rate-limit per-second doesn't change too much. Change-Id: I229ae176b24cb1c9b48710680309d286f10d82fa Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
2023-12-12meta-google: gbmc-ncsi-config: DHCP impersonation disableWilliam A. Kennington III1-0/+6
We have platforms that should never impersonate the host DHCP as it would override perfectly valid IP address configuration on the BMC. These are newer platforms that guarantee the BMC has a unique address. Change-Id: I6040f6602cb582793c932878078e3669cba04305 Signed-off-by: William A. Kennington III <wak@google.com>
2023-12-08google-ipmi-sys: srcrev bump 40b2a0cc10..f3fe8df305Andrew Geissler1-1/+1
Patrick Williams (1): meson: adjust nlohmann-json dependency Change-Id: I54fa4da69e43d64eba89be9ef58cb601b2261f12 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-12-06meta-google: Remove ssh config for obmc-consoleWilly Tu1-0/+3
Google BMC does not use the ssh remote console feature. Disabling for security purpose. Change-Id: I130877be02303b5eeabd7496075f2fefc56bd91e Signed-off-by: Willy Tu <wltu@google.com>
2023-12-06google-misc: srcrev bump 6084957f91..47a0ada2a7Andrew Geissler1-1/+1
Patrick Williams (1): build: use allowed over enabled Change-Id: I09d8806a747eeb1bbcd1d2ee2f56a7eb2f7f6075 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-11-25treewide: add scarthgap to LAYERSERIES_COMPAT2.16.0-devPatrick Williams1-1/+1
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I28ee50fa55ae47dd7fd8c99f8f6db8f5f6dfa53d
2023-11-24treewide: add nanbield to LAYERSERIES_COMPATPatrick Williams1-1/+1
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I85272779478b66452acd11be93f5fea99e4c3a34
2023-11-09meta-google: gbmc-ncsi-config: Fix interface nameWilliam A. Kennington III1-1/+1
The old name is incorrect, it should be gbmcncsidhcp Change-Id: I28fb55e3587fcfbeda4cfa333317cd0b62883d9c Signed-off-by: William A. Kennington III <wak@google.com>
2023-11-09meta-google: gbmc-ncsi-config: Remove dhcp-relay from small imagesWilliam A. Kennington III2-31/+42
We provide a new variable called `GBMC_NCSI_DHCP_RELAY` to indicate whether or not our image should support DHCP relaying. By default as a heuristic, we use the FLASH_SIZE for the value as only 64MB and bigger images will need it in practice. In the future it will be tuned per-platform to be enabled only where needed and eventually disabled by default. Change-Id: I08bc07074cada79fcf7b18522d1219ffcc14d1be Signed-off-by: William A. Kennington III <wak@google.com>
2023-11-09meta-google: Purge all avahi supportWilliam A. Kennington III5-33/+1
We never used this and we never intend to pick it back up. Change-Id: Iaa23d6b9d87129eca8e76d67b8173941342ea2e9 Signed-off-by: William A. Kennington III <wak@google.com>
2023-11-03google-ipmi-sys: srcrev bump 8d6185322d..40b2a0cc10Andrew Geissler1-1/+1
Willy Tu (2): fmt: Remove fmtlib dependencies Add wrapper script to setup delay powercycle Change-Id: I0830a9788a3b7fb6405de707963719b52dc2d62d Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-10-27meta-google: phosphor-ipmi-config: Arbitrary channel mappingWilliam A. Kennington III1-0/+12
This allows us to easily map in other NICs from a machine config. Change-Id: Ib1aede5af75bfda30d11fd5f310b3ff096af86bb Signed-off-by: William A. Kennington III <wak@google.com>
2023-10-27meta-google: treewide: Parameterize NCSI channelWilliam A. Kennington III2-2/+5
Most platforms want to use 1 as has been the implicit standard. However, this is not required and might be changed for some machines. This makes it easy to change via a machine configuration variable. Change-Id: I5dff5dfb1c97bab531042fd364114f320d3ebe42 Signed-off-by: William A. Kennington III <wak@google.com>
2023-10-27meta-google: phosphor-ipmi-config: Update NCSI interface nameWilliam A. Kennington III1-0/+3
Our configuration assumes the NCSI interface in slot 1 is eth0, let's update it to rewrite the interface name appropriately. Change-Id: Iecaaeac2e0a2ebc33b3b19d456de85f4e9ec48de Signed-off-by: William A. Kennington III <wak@google.com>
2023-10-27meta-google: phosphor-ipmi-config: Refactor NIC mapping logicWilliam A. Kennington III3-11/+19
We want to be able to enable any slot for potentially multiple NICs. Follow on changes will reuse this logic. We can now enable arbitrary ethernet channels by calling and the relevant ipmi json mappings will be established. The resulting file looks something like ``` { "0": { "name": "IPMB", "is_valid": true, "active_sessions": 0, "channel_info": { "medium_type": "ipmb", "protocol_type": "ipmb-1.0", "session_supported": "session-less", "is_ipmi": true } }, "1": { "name": "ncsi", "is_valid": true, "active_sessions": 0, "channel_info": { "medium_type": "lan-802.3", "protocol_type": "ipmb-1.0", "session_supported": "multi-session", "is_ipmi": true } }, "2": { "name": "front", "is_valid": true, "active_sessions": 0, "channel_info": { "medium_type": "lan-802.3", "protocol_type": "ipmb-1.0", "session_supported": "multi-session", "is_ipmi": true } }, "3": { "name": "RESERVED", "is_valid": false, "active_sessions": 0, "channel_info": { "medium_type": "reserved", "protocol_type": "na", "session_supported": "session-less", "is_ipmi": true } }, "4": { "name": "RESERVED", "is_valid": false, "active_sessions": 0, "channel_info": { "medium_type": "reserved", "protocol_type": "na", "session_supported": "session-less", "is_ipmi": true } }, "5": { "name": "RESERVED", "is_valid": false, "active_sessions": 0, "channel_info": { "medium_type": "reserved", "protocol_type": "na", "session_supported": "session-less", "is_ipmi": true } }, "6": { "name": "RESERVED", "is_valid": false, "active_sessions": 0, "channel_info": { "medium_type": "reserved", "protocol_type": "na", "session_supported": "session-less", "is_ipmi": true } }, "7": { "name": "RESERVED", "is_valid": false, "active_sessions": 0, "channel_info": { "medium_type": "reserved", "protocol_type": "na", "session_supported": "session-less", "is_ipmi": true } }, "8": { "name": "INTRABMC", "is_valid": true, "active_sessions": 0, "channel_info": { "medium_type": "oem", "protocol_type": "oem", "session_supported": "session-less", "is_ipmi": true } }, "9": { "name": "RESERVED", "is_valid": false, "active_sessions": 0, "channel_info": { "medium_type": "reserved", "protocol_type": "na", "session_supported": "session-less", "is_ipmi": true } }, "10": { "name": "RESERVED", "is_valid": false, "active_sessions": 0, "channel_info": { "medium_type": "reserved", "protocol_type": "na", "session_supported": "session-less", "is_ipmi": true } }, "11": { "name": "gbmcbr", "is_valid": true, "active_sessions": 0, "channel_info": { "medium_type": "lan-802.3", "protocol_type": "ipmb-1.0", "session_supported": "multi-session", "is_ipmi": true } }, "12": { "name": "RESERVED", "is_valid": false, "active_sessions": 0, "channel_info": { "medium_type": "reserved", "protocol_type": "na", "session_supported": "session-less", "is_ipmi": true } }, "13": { "name": "RESERVED", "is_valid": false, "active_sessions": 0, "channel_info": { "medium_type": "reserved", "protocol_type": "na", "session_supported": "session-less", "is_ipmi": true } }, "14": { "name": "SELF", "is_valid": false, "active_sessions": 0, "channel_info": { "medium_type": "ipmb", "protocol_type": "ipmb-1.0", "session_supported": "session-less", "is_ipmi": true } }, "15": { "name": "ipmi_kcs3", "is_valid": true, "active_sessions": 0, "channel_info": { "medium_type": "system-interface", "protocol_type": "kcs", "session_supported": "session-less", "is_ipmi": true } } } ``` Change-Id: I361edd658491ea85b79b60d3107fab6dd5e192e2 Signed-off-by: William A. Kennington III <wak@google.com>
2023-10-27meta-google: gbmc-ncsi-config: Optionally purge stale networkd configsWilliam A. Kennington III2-0/+18
On many machines it's safe to purge all configurations that do not match the NCSI interface, to keep a tidy config directory and purge potentially problematic configs. Change-Id: I5f714516eb3718544f0787ac38eb69d485086b42 Signed-off-by: William A. Kennington III <wak@google.com>
2023-10-27meta-google: gbmc-ncsi-config: Support migrating old configsWilliam A. Kennington III2-0/+19
Sometimes we have machines that switch between interface names when upgrading versions, we want to keep the configs to the best of our ability when migrating forward. Change-Id: I58fb962b19431114dc342a3252ce2f834c160194 Signed-off-by: William A. Kennington III <wak@google.com>
2023-10-26google-ipmi-sys: srcrev bump bc24cd034e..8d6185322dAndrew Geissler1-1/+1
Michael Shen (1): all: Use stdplus::print over std::fprintf Change-Id: I71977d404fd66eeadf131137fa7e22d02efc4ae1 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-10-21google-misc: srcrev bump a9a982585c..6084957f91Andrew Geissler1-1/+1
Patrick Williams (1): clang-format: copy latest and re-format Change-Id: I436ff65bf944d90f79481ce939e036ed7756e0fd Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-10-20google-ipmi-sys: srcrev bump dde0c02978..bc24cd034eAndrew Geissler1-1/+1
Patrick Williams (1): clang-format: copy latest and re-format Change-Id: Idaa34228786fcc5e0b4ad098ba83d93c80eb121e Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-10-12meta-google: remove rng-tools configurationPatrick Williams2-20/+0
With rng-tools being removed by default, it should not be present in any meta-google machine. Remove the configuration for it which would be unused. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I47b849b55b65f0fb5c8963a7e2d6319ebc44b35f
2023-10-12meta-google: gbmc-mac-config: Allow rollover MAC assignmentsWilliam A. Kennington III1-2/+6
This allows for MAC assignments like `0c:c4:13:4d:d4:ff` of `2`, where the second address requires a rollover to `0c:c4:13:4d:d5:00` Change-Id: Ief1489e4f99b27c9af7d4b5f1826dccf36863e0f Signed-off-by: William A. Kennington III <wak@google.com>
2023-10-11meta-google: gbmc: remove useless redfish flag checkPatrick Williams1-3/+0
The packagegroup-obmc-apps bbappend attempts to remove `bmcweb` from a package group that it isn't even part of, meaning the code has no affect. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I94216b012993b96e433f2f8a5349d7ac840a6bee
2023-10-11meta-google: opt out of webuiPatrick Williams1-0/+1
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I515d5f732b02038b20a8ae45afc8b8d93d5d278d
2023-09-19google-misc: srcrev bump f8bb477927..a9a982585cAndrew Geissler1-1/+1
Willy Tu (1): ncsid: Fix if_packet warnings Change-Id: I4eaa632f786d12869cd06ea7d6d0aaddece50725 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-09-06meta-google: ipmi-fru-sh: Correct checksum calculationVlad Sytchenko1-1/+1
Blocks reads, whos values are greated than 128, will be formated as negative integers, causing cascading errors in the checksum calculation. Format using unsigned specifier instead to prevent this. Tested: Before: ``` dd if=/sys/bus/i2c/devices/13-0050/eeprom bs=1 count=8 skip=8 | \ hexdump -v -e '1/1 "%d "' 1 1 32 36 -107 47 -115 -121 ``` After: ``` dd if=/sys/bus/i2c/devices/13-0050/eeprom bs=1 count=8 skip=8 | \ hexdump -v -e '1/1 "%u "' 1 1 32 36 149 47 141 135 ``` Change-Id: I187f0918a25005310bb900022047e03fe68483d4 Signed-off-by: Vlad Sytchenko <vsytch@google.com>
2023-09-02meta-google: Add smbios-remote-host to allowlistJosh Lehan1-1/+1
Instead of individual filenames, adding the containing directory itself. Adding the directory used by the gRPC receiver of SMBIOS blobs from remote hosts, so they can stick around after the smbios-mdr service is restarted, without requiring hosts to send them again. As for the gRPC receiver itself, see this patch stack: https://gerrit.openbmc.org/c/openbmc/smbios-mdr/+/65048 Change-Id: Ic73ab81e3a9761a101b6040a445a5cf042cbb4b0 Signed-off-by: Josh Lehan <krellan@google.com>
2023-08-29meta-google: gbmc-bridge: Fix bashismWilliam A. Kennington III1-1/+1
The previous change introduced a bashism, but yocto expects that all shell scripting is POSIX compatible. Fixes: bf4e27c3408955c214000108001e92c308c1861f Change-Id: Ifc3cce4d625a876b224853b3b04b1b84b95327b2 Signed-off-by: William A. Kennington III <wak@google.com>
2023-08-28meta-google: gbmc-bridge: Deprecate hardcoded addressesWilliam A. Kennington III2-2/+3
These addresses should not be used by default for traffic on the interface, as we may have multiple BMCs using the same hardcoded address WRT legacy applications. We want multiple BMCs of the same type to be able to coexist if they have unique addresses and right now they are not correctly preferring these addresses. Change-Id: I0d02cbf63b54f2464ae889ea773e032da0e9b650 Signed-off-by: William A. Kennington III <wak@google.com>
2023-08-25meta-google: glome: remove from layerLuke Granger-Brown4-77/+1
glome is now in the meta-security layer and shouldn't(*) be included here. glome-config is also removed; downstreams should bbappend glome to overwrite /etc/glome/config. (*) https://lore.kernel.org/all/Ys6zBXR+8AP3wjYG@heinlein.stwcx.org.github.beta.tailscale.net/ Tested: Added meta-security layer to a build and tested downstream BMC build. Link: https://gerrit.openbmc.org/id/I8e96a5c15a277c343ca38c32ad5b987944642008 Change-Id: I8e96a5c15a277c343ca38c32ad5b987944642008 Signed-off-by: Luke Granger-Brown <lukegb@google.com>
2023-08-23meta-google: gbmc-bridge: return error when dhcp-done is runningYuxiao Zhang1-0/+6
If dhcp-done is running already we want a fresh start, so return error to trigger a powercycle. Change-Id: I146054adacb0ea62de54ec525915cecd27d3e85b Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
2023-08-18meta-google: rsyslog: Disable ForwardToSyslogWilly Tu2-0/+14
In rsyslog, the logs are read via the journal files like with `journalctl`. The socket used by ForwardToSyslog is not used at all (`run/systemd/journal/syslog`), so we will disable the forwarding to avoid unnecessary work. With the logs spamming the CPU usage of systemd-journald went down after this change. Before: Always top 1 or two in CPU usage, ``` PID USER PRI NI VIRT RES SHR S CPU%-MEM% TIME+ Command 30892 root 20 0 23520 10108 9720 R 84.3 1.0 0:37.72 /usr/lib/systemd/systemd-journald ``` After: Less CPU usage overall. ``` PID USER PRI NI VIRT RES SHR S CPU%-MEM% TIME+ Command 30976 root 20 0 23520 7608 7216 R 40.8 0.8 2:32.36 /usr/lib/systemd/systemd-journald ``` Reference: - https://www.freedesktop.org/software/systemd/man/journald.conf.html#Forwarding%20to%20traditional%20syslog%20daemons Change-Id: I50cf868d63697fc9b72529863bb83d249f3275c7 Signed-off-by: Willy Tu <wltu@google.com>
2023-08-16google-ipmi-sys: srcrev bump 15d4d21c09..dde0c02978Andrew Geissler1-1/+1
George Liu (1): meson_options.txt: Support for reading options from meson.options Change-Id: I1a69373c9b6eaa2089cb8371fc3c72f4025a301d Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>