summaryrefslogtreecommitdiff
path: root/meta-google
AgeCommit message (Collapse)AuthorFilesLines
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>
2023-08-16meta-google: Ignore configuring meta-tpm layerVlad Sytchenko1-0/+3
Follow advice described in meta-tpm README to avoid warnings on each bitbake invocation saying that the layer is not configured. Change-Id: Ic7578ce4fe558bcae5204bb42b30f2247eff1c54 Signed-off-by: Vlad Sytchenko <vsytch@google.com>
2023-08-11meta-google: hoth: Remove SRCREV overrideWilly Tu1-1/+0
The SRCREV now matches https://github.com/openbmc/openbmc/blob/b3415dd342accf1b4b75d2aa5b041d24cc0c7783/meta-security/meta-tpm/recipes-tpm1/hoth/libhoth_git.bb#L4 and the override is not needed anymore. Change-Id: I785497b05c5c224c6b224fb1e6180a0bfdea50fa Signed-off-by: Willy Tu <wltu@google.com>
2023-08-02meta-google: networking: Prevent redundant dhcp reconfig during installationYuxiao Zhang1-0/+1
We have seen that smartnic workaround is running after dhcp done. If we see dhcp-done service running, no need to restart dhcp. Change-Id: I83ad8bc376f6727ec98a4ce4b2e545d00a2b9c82 Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
2023-07-31meta-google: kdump-ramoops: moving to private repoYuxiao Zhang2-12/+1
Move gbmc ramoops collector into private repo. This is to reduce the customized systemd script in public openbmc. Change-Id: I9e8861fc2261852eb86b9b222749cb340ac66dad Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
2023-07-29meta-google: Add /var/log/state to whitelistWilly Tu1-0/+1
Allow the state file for rsyslog as configured by the default rsyslog.conf. This prevent us from reading the the whole logs again (if the logs persists across reboots). Reference: - https://gerrit.openbmc.org/c/openbmc/openbmc/+/64418 Change-Id: Ia3650627a26e2dbdcc62f1c464e389e4e668e3a8 Signed-off-by: Willy Tu <wltu@google.com>
2023-07-27phosphor-ipmi-ethstats: srcrev bump 4cf2befc14..48d6b06ea5Andrew Geissler1-1/+1
Switch to meson. Patrick Williams (3): build: add basic meson config build: add meson for unit-tests build: remove autotools support William A. Kennington III (1): build: Some minor refactoring Change-Id: I3697ef580954f5423af0620df5c25e496de7e1c2 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2023-07-26meta-google: ramoops: specify dmesg file nameYuxiao Zhang1-1/+1
Pmsg type will generate pmsg-, which will be used by kdump, this is to let this service not processing the core file. Change-Id: Ida4f8038a07ccea4be659cd734acc1a7d5c86e59 Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
2023-07-26meta-google: busybox: enable cpio outputYuxiao Zhang1-0/+1
Kdump preprocessing needs to read, modify, and repack a initfs, this is to enable cpio -O option. Change-Id: I3f59da1ad0094bbf4a0ef58094a26dfac3423f1d Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
2023-07-23google-misc: srcrev bump cc45be7c90..f8bb477927Andrew Geissler1-1/+1
William A. Kennington III (1): ncsid: Fix build issue Change-Id: I564484dc83c986b9ef6a92fb631f1dabca53dd67 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-07-22mstpd: update to ${sbindir} because of usrmergeHarvey Wu1-3/+3
Signed-off-by: Harvey Wu <Harvey.Wu@quantatw.com> Change-Id: I2dffda1e08e8c536a7f9b27a936dcebb4674deb7
2023-07-21meta-google: Remove python3-core from nftablesWilly Tu1-0/+3
python3-core is taking a lot of space causing the image to be too large in some systems. Remove the python package config to remove the dependencies. This is not done in bbappend because it didn't work when testing it out. Tested: Built with gbs and it doesn't have python3-core when tested with ``` INHERIT += "buildhistory" BUILDHISTORY_COMMIT = "1" ``` to get the package sizes. Change-Id: I5040cfb46ad618d622855891a462d53a887433fd Signed-off-by: Willy Tu <wltu@google.com>
2023-07-20meta-google: gbmc-bridge: support fd1x public addressYuxiao Zhang1-1/+1
We have platforms using fd1x instead of fd00, this will make sure we pick the correct ip address. Change-Id: I9c385a43adb539cfbfdd80651c59b0c0eba05082 Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
2023-07-20google-ipmi-sys: srcrev bump 4baf41c8d2..15d4d21c09Andrew Geissler1-1/+2
Hao Zhou (1): File System: Dependency Injection and Mock John Wedig (1): Add IPMI OEM command LinuxBootDone Patrick Williams (1): build: upgrade to C++23 Change-Id: I2d203a8ca9c5e0947b2d70f9d3aec3831c31fa64 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com> Signed-off-by: John Wedig <johnwedig@google.com>
2023-07-20google-misc: srcrev bump 3212f5df6f..cc45be7c90Andrew Geissler1-1/+1
John Wedig (1): espi-control: Add program to disable eSPI Change-Id: I1eaaf766531cad5a0855a92f87805336cb0eeb77 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-07-18google-misc: srcrev bump adb8ffe475..3212f5df6fAndrew Geissler1-1/+1
Willy Tu (1): Add dhcp-done to base meson.build Change-Id: Ic42ce388597835a95efb48eb604e94bc143245f2 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-07-18google-misc: srcrev bump bb53161d64..adb8ffe475Andrew Geissler1-1/+1
Willy Tu (1): iwyu: Cleanup include headers Change-Id: Ia2fefc046a550df78ad043ec56dc263d66c16cdb Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-07-17google-misc: srcrev bump 1dfe24ea5b..bb53161d64Andrew Geissler1-1/+1
Willy Tu (1): cleanup fmt::format for std::format Change-Id: Ic422c068fc99a96267f9f17cd4a3fc0a81cc1c7a Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-07-15meta-google: Enable imjournal for gBMCWilly Tu1-0/+2
The default rsyslog.conf uses `imjournal`, so we should enable it by default to make sure that the config is valid. Change-Id: Idba361d3a374a88207e7825216f393522647d11d Signed-off-by: Willy Tu <wltu@google.com>
2023-07-13google-misc: srcrev bump 580abaffe1..1dfe24ea5bAndrew Geissler1-1/+1
Patrick Williams (1): build: upgrade to C++23 Change-Id: I687dcbb1ff35a4e767770e40bc2c9f65f5e905d8 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-07-12meta-google: gbmc-update: Multi file netboot tarballWilliam A. Kennington III1-17/+25
This supports extending what is unpacked from the tarball and allows arbitrary hooks to execute on the unpacked files. Tested: Added some code to one of our platforms that consumes the tarball with multiple data files and correctly processes different subsets of the files. Change-Id: Id48a5c9327bafa367efd231b3907c305fe6994fe Signed-off-by: William A. Kennington III <wak@google.com>
2023-07-11google-ipmi-sys: srcrev bump dd04017914..4baf41c8d2Andrew Geissler1-1/+1
Hao Zhou (1): Add flags for bmc modes transitions Change-Id: I23170671607f45e9e90d168051ee3afe2e56dfff Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-07-07google-misc: srcrev bump 2be45238f1..580abaffe1Andrew Geissler1-1/+1
Willy Tu (1): build: Fix build warnings Change-Id: Ifa7f7075b8c6c2cdc6fe1b8f19118daff085edac Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-07-06meta-google: systemd: fix unwanted waitings in network-wait-onlineYuxiao Zhang1-0/+3
networkd wait-online services will wait for all ethernet interfaces to be up by default. Some interface will never be ready because it is unused Currently only rsyslog is waiting for this service so it should be fine to just remove this service. Change-Id: I21b8b2e00b75fedcc2497ca40a405ed598371b53 Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
2023-06-27meta-google: fix timesync timeoutWilly Tu1-3/+3
The systemd config path is wrong. Tested: ``` $ cat /lib/systemd/system/systemd-time-wait-sync.service.d/10-gbmc.conf [Service] TimeoutStartSec=1min $ systemctl status systemd-time-wait-sync.service x systemd-time-wait-sync.service - Wait Until Kernel Time Synchronized Loaded: loaded (/lib/systemd/system/systemd-time-wait-sync.service; disabled; preset: disabled) Drop-In: /lib/systemd/system/systemd-time-wait-sync.service.d `-10-gbmc.conf Active: failed (Result: timeout) since Thu 2023-01-26 02:00:19 PST; 72ms ago Docs: man:systemd-time-wait-sync.service(8) Process: 5542 ExecStart=/lib/systemd/systemd-time-wait-sync (code=exited, status=0/SUCCESS) Main PID: 5542 (code=exited, status=0/SUCCESS) CPU: 20ms Jan 26 01:59:19 gbmc systemd[1]: Starting Wait Until Kernel Time Synchronized... Jan 26 01:59:19 gbmc systemd-time-wait-sync[5542]: adjtime state 5 status 40 time Thu 2023-01-26 09:59:19.662116 UTC Jan 26 02:00:19 gbmc systemd[1]: systemd-time-wait-sync.service: start operation timed out. Terminating. Jan 26 02:00:19 gbmc systemd-time-wait-sync[5542]: Exit without adjtimex synchronized. Jan 26 02:00:19 gbmc systemd[1]: systemd-time-wait-sync.service: Failed with result 'timeout'. ``` Change-Id: I5b3cfd0b098a376eed162c509f5876bb2025cd77 Signed-off-by: Willy Tu <wltu@google.com>
2023-06-26meta-google: Add default rsyslog config for gBMCWilly Tu2-0/+17
Enable common config for imjournal to use across all gBMC, so that we don't have to manage it seperately. Change-Id: I96057e3ee8246afdd0030fb2b90bcf01f9709137 Signed-off-by: Willy Tu <wltu@google.com>
2023-06-22google-ipmi-sys: srcrev bump 444b5ea484..dd04017914Andrew Geissler1-1/+1
Brandon Kim (1): bmc_mode: Add #pragma once Change-Id: I81254d11b3717982a0e916225616c2fabfeaff73 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-06-22meta-google: gbmc-bridge: Fix nftable rule setYuxiao Zhang2-7/+2
Seems that nftable cannot jump to a chain that doesn't in its own file. Change-Id: I4d8c0cd804afddaae7ae5e94b5db1266b149fb55 Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
2023-06-06meta-google: google-usb-network: Fix shellcheckWilliam A. Kennington III2-85/+80
Change-Id: I214ce709f1ddfd62a0a94f2f974c103e3edc2c58 Signed-off-by: William A. Kennington III <wak@google.com>
2023-06-06meta-google: inplace-gbmc-update: Fix shellcheck issuesWilliam A. Kennington III1-1/+0
Change-Id: Ie8f8623b00f5eb1d830fc93d79b43406078db2f6 Signed-off-by: William A. Kennington III <wak@google.com>
2023-06-06meta-google: authorized-keys-comp: Fix shellcheck issuesWilliam A. Kennington III1-7/+7
Change-Id: I31aa8a608e404e50325569fdd97617033d4f3edf Signed-off-by: William A. Kennington III <wak@google.com>
2023-06-06meta-google: goolge-key: Fix shellcheck issuesWilliam A. Kennington III1-1/+2
Change-Id: I4ce1830f53932ed674ddacf2f71c66a89c3d19a1 Signed-off-by: William A. Kennington III <wak@google.com>
2023-06-06meta-google: nftables: Fix shellcheck issuesWilliam A. Kennington III1-1/+1
Change-Id: Ib9a7cad110dac5852584330e6b30fd070d6866d5 Signed-off-by: William A. Kennington III <wak@google.com>
2023-06-06meta-google: gbmc-bridge: Fix shellcheck issuesWilliam A. Kennington III4-48/+59
Change-Id: Ib19746fffaad5f62293fc3479dee7d557a226734 Signed-off-by: William A. Kennington III <wak@google.com>
2023-06-06meta-google: gbmc-mac-config: Fix shellcheck issuesWilliam A. Kennington III1-4/+6
Change-Id: I09d6d093c03aa0e6bf2a4a089769503947a77ddd Signed-off-by: William A. Kennington III <wak@google.com>
2023-06-06meta-google: gbmc-ip-monitor: Fix shellcheck issuesWilliam A. Kennington III2-12/+18
Change-Id: I3bcdbb94553a8d3f181ccb109a99bf2e2a4dfe2b Signed-off-by: William A. Kennington III <wak@google.com>
2023-06-06meta-google: ncsi: Fix shellcheck issuesWilliam A. Kennington III1-5/+7
Change-Id: I89d2cdf8e7f31fc137b9db99c843e89f88c0c5b7 Signed-off-by: William A. Kennington III <wak@google.com>
2023-06-06meta-google: test-sh: Fix shellcheck issuesWilliam A. Kennington III1-0/+2
Change-Id: If6e61b4337d9fb53860c436efc7637d595f3bf63 Signed-off-by: William A. Kennington III <wak@google.com>
2023-06-06meta-google: network-sh: Fix shellcheck issuesWilliam A. Kennington III2-10/+19
Change-Id: I796cbc8794af790d09ba967b7ec07ceb2d0431c7 Signed-off-by: William A. Kennington III <wak@google.com>
2023-06-06meta-google: ipmi-fru-sh: Fix shellcheck issuesWilliam A. Kennington III1-12/+29
Change-Id: I0e05959420f3683c6e2fc9d5e2145272f4cb2e46 Signed-off-by: William A. Kennington III <wak@google.com>
2023-06-06meta-google: host-power-control: Fix shellcheck issuesWilliam A. Kennington III6-0/+12
Change-Id: I9f67bc4aab9603188779c4488aef4eba6936f595 Signed-off-by: William A. Kennington III <wak@google.com>
2023-06-06meta-google: gpio-ctrl: Fix shellcheck issuesWilliam A. Kennington III1-3/+5
Change-Id: I5cae02d263204d3e9122fee41040ba735f6305d6 Signed-off-by: William A. Kennington III <wak@google.com>
2023-06-05meta-google: treewide: Remove source / exec protectionWilliam A. Kennington III6-18/+0
shellcheck doesn't like these protections and it makes fixes convoluted. We never had an issue with users misusing these scripts and so they add no benefit. Change-Id: I326d6046e2e42f8446e23d6bf891aafa2595ca90 Signed-off-by: William A. Kennington III <wak@google.com>