summaryrefslogtreecommitdiff
path: root/meta-quanta/meta-gbs
AgeCommit message (Collapse)AuthorFilesLines
2021-12-02Remove BBLAYERS_NON_REMOVABLE variableAlexander Filippov1-13/+0
`BBLAYERS_NON_REMOVABLE` is obsolete and no longer required. As it said by Yocto documentation it can be used by `Hob` https://www.yoctoproject.org/docs/1.5.2/ref-manual/ref-manual.html#var-BBLAYERS_NON_REMOVABLE that already removed since Yocto-2.1 https://www.yoctoproject.org/tools-resources/projects/hob Change-Id: Ibc2d8268a9d837a81e9cf6b0131dba8d0a030a3f Signed-off-by: Alexander Filippov <a.filippov@yadro.com>
2021-11-30meta-quanta: gbs: Change the BIOS main flash label to bios-primaryGeorgeHuang1-4/+4
Change the BIOS main flash label to 'bios-primary' from 'pnor' for the bios-update.sh ref: https://github.com/openbmc/linux/commit/2eea476 Signed-off-by: GeorgeHuang <george.hung@quantatw.com> Change-Id: I208a24cd5f7956cc3461986eb0aed0348c186ebf
2021-11-18meta-quanta: gbs: Add explicit layer dependenciesWilliam A. Kennington III1-0/+1
We want the machine layer to be guaranteed to override our top-level layers. Change-Id: Ib071dad5b43c112d729bf7f85f36a9f6bd571b31 Signed-off-by: William A. Kennington III <wak@google.com>
2021-11-04Partially revert "treewide: remove obmc-system-mgmt feature"Patrick Williams1-0/+1
The obmc-system-mgmt feature is currently used in the image to trigger inclusion of a virtual-provider which provides a number of packages many systems need. Partially revert the removal of this feature so that the outcome is: 1. The empty obmc-phosphor-sysd package is still removed. 2. By default the 'obmc-system-mgmt' feature is included, unless specifically exempted. 3. All EVB platforms remove the 'obmc-system-mgmt' feature since they have no system they are managing. This partially reverts commit 060ad3ff7fcc30aff78a9e504efee9d8fa0d4526. Tested: * Built `bletchley` and confirmed `packagegroup-fb-apps-system` and `entity-manager` are present. ``` entity-manager armv7ahf-vfpv4d16 0.1+git0+6bf41588ab-r0 packagegroup-fb-apps-system all 1.0-r1 ``` * Built `witherspoon` and confirmed `packagegroup-op-apps-system` and `pdbg` are present. ``` packagegroup-op-apps-system noarch 1.0 pdbg arm1176jzs 3.3 ``` * Ran `bitbake -p` on `evb-ast2600` to confirm the undefined `virtual-obmc-system-mgmt` is not being included in the image. Change-Id: I8b7804d5101cc84a2c57473b3f85672bf7767c67 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2021-10-26treewide: remove obmc-system-mgmt featurePatrick Williams1-1/+0
Every machine layer treats 'system-management' as either part of a package-group or removes the feature. The sample implementation in meta-phosphor is a do-nothing shell script (and up until recently was a Python script). There appears to be no useful purpose to this feature as a stand-alone concept, so remove it. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I20ca1fa8ff3cb01cac2d07d4ded84e0769e4514b
2021-10-05meta-quanta: gbs: enable hash api for systemdJunLin Chen1-0/+5
Kernel crypto/hash API CONFIG_CRYPTO_HMAC CONFIG_CRYPTO_SHA256 CONFIG_CRYPTO_USER_API_HASH The requirement can be found at https://github.com/systemd/systemd/blob/master/README This API is necessary for the UUID feature that you can find the implementation in the bmcweb. https://github.com/openbmc/bmcweb/blob/master/redfish-core/include/utils/systemd_utils.hpp Refer https://gerrit.openbmc-project.xyz/c/openbmc/openbmc/+/31523 but these were removed in https://gerrit.openbmc-project.xyz/c/openbmc/openbmc/+/41257 Signed-off-by: JunLin Chen <Jun-Lin.Chen@quantatw.com> Change-Id: If2dcc552198da05837659a560871db9084e3da37
2021-10-03certificate-manager: supply configs from the repoAnton D. Kachalov1-2/+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-24meta-quanta: gbs: Update power-config-host0.jsonBrandon Kim1-6/+12
With a recent x86-power-control update, the json file to be parsed is expected to have a "Polarity" field. Add the same "Polarity" values for the existing fields. Reference: https://github.com/openbmc/x86-power-control/commit/50937e7339db744f765efdc3cc58f3d0c5976601 Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: Ia60a87de0d9e3e97dbb03b1f8fb4e9fba32f87a6
2021-09-16bitbake: Use IPK packaging for rootfs assemblyAndrew Jeffery1-1/+1
bitbake offers a choice of DEB, RPM or IPK packaging. To a degree the choice is functionally arbitrary for image generation but control over the package format becomes important if we want to: 1. Include runtime package management functionality in the firmware image 2. Mess about with the packages on the build system With respect to 1 the IPK format and opkg (an ipk package manager) are designed for embedded systems[1] - by contrast to RPMs have heavier dependencies and a greater impact on the size and complexity of the firmware image. Regarding 2, the embedded nature and the need for opkg to work without much fuss leads to a lower configuration barrier by comparison to RPMs. With ipk it becomes possible to reuse the packages built during image preparation for core analysis without needing to generate an SDK: ``` $ export LD_LIBRARY_PATH=./tmp/work/x86_64-linux/opkg-native/*/recipe-sysroot-native/usr/lib $ MY_DEBUG_ROOT=tmp/rootfs-debug $ ./tmp/sysroots-components/x86_64/opkg-native/usr/bin/opkg \ -f ./tmp/work/p10bmc-openbmc-linux-gnueabi/obmc-phosphor-image/*/opkg.conf \ -o $MY_DEBUG_ROOT \ update $ fakeroot ./tmp/sysroots-components/x86_64/opkg-native/usr/bin/opkg \ -f ./tmp/work/p10bmc-openbmc-linux-gnueabi/obmc-phosphor-image/1.0-r0/opkg.conf \ -o $MY_DEBUG_ROOT \ install dbus-sensors dbus-sensors-dbg $ gdb-multiarch (gdb) set solib-absolute-prefix .../tmp/rootfs-debug (gdb) add-auto-load-safe-path .../tmp/rootfs-debug (gdb) file tmp/rootfs-debug/usr/bin/nvmesensor (gdb) core-file obmcdump_17_9597/core.nvmesensor.0.aae91b519d0e4e0e8bbe746e3f6cd25f.2779.9594000000 Core was generated by `/usr/bin/nvmesensor'. Program terminated with signal SIGABRT, Aborted. pthread_kill.c:45 45 pthread_kill.c: No such file or directory. (gdb) bt pthread_kill.c:45 ../sysdeps/posix/raise.c:26 /home/andrew/src/openbmc/openbmc/build/p10bmc/tmp/rootfs-debug/usr/lib/libstdc++.so.6 /home/andrew/src/openbmc/openbmc/build/p10bmc/tmp/rootfs-debug/usr/lib/libstdc++.so.6 /home/andrew/src/openbmc/openbmc/build/p10bmc/tmp/rootfs-debug/usr/lib/libstdc++.so.6 /home/andrew/src/openbmc/openbmc/build/p10bmc/tmp/rootfs-debug/usr/lib/libstdc++.so.6 "xyz.openbmc_project.NVMeSensor", this=0x488f04) at /usr/include/sdbusplus/bus.hpp:234 ../../../../../../workspace/sources/dbus-sensors/src/NVMeSensorMain.cpp:159 (gdb) ``` This approach documented in the Poky Reference Manual: https://www.yoctoproject.org/docs/1.0/poky-ref-manual/poky-ref-manual.html#platdev-gdb-remotedebug-launch-gdb-inferiorbins Switch all machines to IPK to align the debugging experience with upstream's documentation and to facilitate efficient use of packaged software at runtime. [1] https://openwrt.org/docs/guide-user/additional-software/opkg Change-Id: I8ef526add2d7a6790de1b3eb3fb85cd39b864f23 Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2021-09-07meta-quanta: gbs: Enable CONFIG_IPMI_KCS_BMC_CDEV_IPMIBrandon Kim1-9/+12
CONFIG_IPMI_KCS_BMC_CDEV_IPMI=y needs to be added to ensure that KCS works with the newer KCS driver in OpenBMC kernel. Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I12e97559562916acfd64adafbd9e61fe8fb5e672
2021-09-02meta-phosphor: change systemd.bbclass to match upstream override syntaxPatrick Williams4-22/+22
Upstream bbclasses changed to typically use the `:${PN}` override syntax, including the SYSTEMD_ variables. Change our systemd.bbclass to do the same for consistency and perform a tree-wide variable replacement. Spot checked by building bletchley and witherspoon and checking some of the SYSTEMD_LINK directives on installed packages under qemu. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I20a9dd809bff8af8759488734f80486c7228c6eb
2021-09-01meta-quanta: gbs: install obmc-mapper.targetGeorge Hung1-0/+2
Some services need obmc-mapper.target to start in correct order, such as phosphor-virtual-sensors. ref: https://gerrit.openbmc-project.xyz/43952 https://gerrit.openbmc-project.xyz/43535 Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ia463c9f189d715336626ce9e46cad0a370e9b8dd
2021-08-24treewide: remove gategarth from layer-supportPatrick Williams1-1/+1
We've typically kept these LAYERSERIES_COMPAT to 2 releases: the current and the upcoming. Remove 'gatesgarth' is it is now 2 releases back. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I5e812a94fed1738898af75c0fdee81996a5bbf20
2021-08-19Revert "meta-quanta: gbs: update the related states D-bus service name"George Hung6-10/+10
This reverts commit 97466ae307a67c30d592c9d97a1e9d6e458e0e5b. Reason for revert: x86-power-control supports DBUS service name numbering for single and multi hosts now. ref: https://gerrit.openbmc-project.xyz/45004 Change-Id: Id1fb9e61a10a457158c52990fe6c196d6fc44708 Signed-off-by: George Hung <george.hung@quantatw.com>
2021-08-17meta-quanta: Fix incorrect change in Yocto syntax updateDavid Wang4-22/+22
'SYSTEMD_ENVIRONMENT_FILE', 'SYSTEMD_LINK', 'SYSTEMD_OVERRIDE' should stay underscore Signed-off-by: David Wang <davidwang@quantatw.com> Change-Id: Ia30f306857d1552b19ff5ed06664c8bd5360cb4c
2021-08-16meta-quanta: gbs: Enable phosphor-sel-logger log-watchdogBrandon Kim1-1/+1
This is dependent on https://gerrit.openbmc-project.xyz/45865 Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: Ia78c0a9f4bf4b2f97685e187acfeed90d1e0d126
2021-08-16Revert "Revert "meta-quanta: gbs: enable fallback watchdog""Brandon Kim2-1/+5
This reverts commit cf7bc62babb57ea27e7a00cd6271ca53579281fe. Reason for revert: Enable fallback watchdog since it is possible that host fails to boot before enabling the watchdog timer at all. It was thought that DC cycle may be needed for fallback watchdog but it is not required. Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I8b0f2677f078a091b626536a7ca474afa6ce77d9
2021-08-13meta-quanta: Cleanup for Yocto override syntax changeDavid Wang4-22/+22
- Cleanup subtree meta-f0b, meta-olympus-nuvoton, meta-q71l with convert-overrides.py meta-quanta/meta-f0b convert-overrides.py meta-quanta/meta-olympus-nuvoton convert-overrides.py meta-quanta/meta-q71l git grep "_[a-z0-9_/-]*[ :]" -- meta-quanta/meta-f0b git grep "_[a-z0-9_/-]*[ :]" -- meta-quanta/meta-olympus-nuvoton git grep "_[a-z0-9_/-]*[ :]" -- meta-quanta/meta-q71l git grep -l _f0b -- meta-quanta/meta-f0b | xargs sed -i 's/_f0b/:f0b/' git grep -l _olympus-nuvoton -- meta-quanta/meta-olympus-nuvoton | xargs sed -i 's/_olympus-nuvoton/:olympus-nuvoton/' git grep -l _quanta-q71l -- meta-quanta/meta-q71l | xargs sed -i 's/_quanta-q71l/:quanta-q71l/' - Fix up a few by hand - Revert 'BBFILE_PATTERN' and 'LAYERSERIES_COMPAT' - Add honister to 'LAYERSERIES_COMPAT' - Update 'CONF_VERSION' - Fix up 'SYSTEMD_ENVIRONMENT_FILE', 'SYSTEMD_LINK' and 'SYSTEMD_OVERRIDE' in all subtree Signed-off-by: David Wang <davidwang@quantatw.com> Change-Id: Ic431624d09dc5899b1d84439559bea9efca08ad8
2021-08-13meta-quanta: gbs: cleanup for flash offset override syntaxGeorge Hung1-3/+3
flash offset override also need new syntax change Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I589a4df8bf0a2a142bfc39504b72fad0026f4498
2021-08-11meta-quanta: {gbs,gsj}: increment CONF_VERSIONPatrick Williams1-1/+1
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I569f08159a5da3d148f63a5b1ed29b5cd52181db
2021-08-11meta-quanta: meta-gbs: Cleanup for Yocto override syntax changeBrandon Kim41-213/+213
Cleanup with ``` convert-overrides.py meta-quanta/meta-gbs git grep "_[a-z0-9_/-]*[ :]" -- meta-quanta/meta-gbs git grep -l _gbs -- meta-quanta/meta-gbs \ | xargs sed -i 's/_gbs/:gbs/' ``` After cleanup ``` $ git grep "_[a-z0-9_/-]*[ :]" -- meta-quanta/meta-gbs/ | grep '.bb' meta-quanta/meta-gbs/recipes-bsp/images/npcm7xx-igps-native_%.bbappend:addtask do_gbs_prepare_xmls after do_patch before do_install meta-quanta/meta-gbs/recipes-gbs/gbs-sysinit/gbs-sysinit.bb:do_install () { meta-quanta/meta-gbs/recipes-google/acpi-power-state/acpi-power-state-daemon_%.bbappend:do_install:append:gbs() { meta-quanta/meta-gbs/recipes-phosphor/fans/phosphor-pid-control_%.bbappend:do_install:append:gbs() { meta-quanta/meta-gbs/recipes-phosphor/gpio/phosphor-gpio-monitor_%.bbappend:do_install:append:gbs() { meta-quanta/meta-gbs/recipes-phosphor/interfaces/bmcweb_%.bbappend:do_install:append:gbs(){ meta-quanta/meta-gbs/recipes-phosphor/inventory/phosphor-inventory-manager_%.bbappend:do_install:append:gbs() { meta-quanta/meta-gbs/recipes-phosphor/ipmi/phosphor-ipmi-blobs-binarystore_%.bbappend:do_install:append:gbs() { meta-quanta/meta-gbs/recipes-phosphor/leds/phosphor-led-manager_%.bbappend:do_install:append:gbs() { meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-nvme_%.bbappend:do_install:append:gbs() { meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-virtual-sensor_%.bbappend:do_install:append:gbs() { meta-quanta/meta-gbs/recipes-quanta/network/usb-network.bbappend:do_install:append:gbs() { meta-quanta/meta-gbs/recipes-x86/chassis/x86-power-control_%.bbappend:do_install:append:gbs() { ``` Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: If640ddd3c6f6084bb0a1d82e2d18fa2640d9d83e
2021-08-06meta-quanta: gbs: modify i2cool_1 sensor UCT to 75CGeorge Hung1-1/+1
Modify i2cool_1 sensor UCT to 75C according to thermal requirement Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I48fb5cada8e893688e450207985fe8466119bb3b
2021-08-02meta-quanta: gbs: Move gbs-bmc-update to virtual providerBrandon Kim3-3/+4
This is to avoid conflicts with inplace-gbmc-update that's defualt on gBMC overrides. Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I8ccab5760dd8d4b0b5eb8de5cd270e756d5fa2aa
2021-07-30meta-quanta: gbs: phosphor-sel-logger: Use packageconfigWilliam A. Kennington III1-4/+1
This makes it possible for us to change out build specific settings. Change-Id: Ib9ba56a832a035b7ded1bf1aed838db1d91df6bf Signed-off-by: William A. Kennington III <wak@google.com>
2021-07-30meta-quanta: gbs: expose pwrgd_p12v_all_slots as an IPMI sensorGeorge Hung5-3/+37
- monitor pwrgd_p12v_all_slots GPIO signal - add pwrgd_p12v_all_slots as IPMI sensor with pwrgd_p12v_slots sensor name Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I70ce89ad2a065cdc9ee59ace73085fea7036da0d
2021-07-28meta-quanta: gbs: update the related states D-bus service nameGeorge Hung6-10/+10
Since x86-power-control add multi-node support, the all related states D-bus service name add the node instance additionally Thus, update the Chassis/Host/RestartCause D-bus service name for all related scripts/services Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: If6ba080ff8757e01e230ee7d636e293922cdc127
2021-07-28meta-quanta: gbs: remove manual replace action for led.yamlGeorge Hung1-4/+0
The led.yaml not be passed issue is fixed, so remove the manual replace action ref: https://gerrit.openbmc-project.xyz/43927 Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Iaaf891f4d88527806b3f52694b17815e3b7fca17
2021-07-26meta-quanta: gbs: update x86-power-control json configGeorge Hung1-8/+32
https://gerrit.openbmc-project.xyz/36528 brought in a new change in the json, so update to the latest format for power-config-host0.json Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I2fa800eda63adda765b032c2d5d02186654349cb
2021-07-20treewide: inventory: switch ChassisType to future enum valuePatrick Williams1-1/+1
Change Ie1a7c389edb6b7a048836a49283ceb62de51bba5 will be transitioning the 'Type' property in Inventory.Item.Chassis to an enumeration. In order to avoid crashing in PIM we need these default values in the starting YAML to be fully-qualified enumeration names that will match the values which will start in Ie1a7c. This code is safe to merge as is without any PDI or PIM changes. Prior to the PDI change, we must make a change to PIM that allows conversion automatic from string->enum, leveraging library interfaces available in sdbusplus. These will be submitted independently. I checked the codebase for usage of this string. It appears that the value is currently, effectively, write-only. There is code in bmcweb that fills in the equivalent Redfish value but currently just hard-codes the string 'RackMount'. Tested: Booted Witherspoon in a QEMU model with this change and proposed changes to sdbusplus + PIM. PIM no longer coredumps with the PDI change and yields an expected persistence file: ``` $ pwd /var/lib/phosphor-inventory-manager/xyz/openbmc_project/inventory/system/chassis $ cat xyz.openbmc_project.Inventory.Item.Chassis { "value0": { "cereal_class_version": 2, "Type": 3 } } ``` Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Icaf9447f31ccdd945cdf74b3e017682e4aed686f
2021-07-08meta-quanta: gbs: install phosphor-ipmi-kcs to imageGeorge Hung1-0/+2
Revert back to install phosphor-ipm-kcs to image Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Iad151c27c1f67fb8c6b8e422dde6a870ff32867f
2021-07-08meta-quanta: gbs: Improve gbs-sysinit.shBrandon Kim1-7/+4
Remove using external command in gbs-sysinit.sh Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I9fab3e275c822a0c87f5935cf912b258b923e33e
2021-07-08meta-quanta: gbs: update the default threshold for rewrite scriptGeorge Hung1-2/+2
Also need to update the UCT and UNCT to 72 degree as default for nvme rewrite script Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I7c744a1b21b4cfe6eb7204464ff77e3c3abb7ff5
2021-07-07Revert "meta-quanta: gbs: Use gBMC KCS daemon"William A. Kennington III2-2/+2
This reverts commit 3f2570e74ef929c7449911df18c1a8b9a59f02f1. Change-Id: Ie9ccec722df88d857bcdc3b2661adb55490fc13a Signed-off-by: William A. Kennington III <wak@google.com>
2021-07-05meta-quanta: gbs: fix flash layout offset for 64MiBGeorge Hung1-2/+3
Since the addition override for 64MiB, add the flash size suffix to fix flash layout offset ref: https://gerrit.openbmc-project.xyz/43876 Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I1a766fb90d79c55d1487e298e9eb16c8c1091165
2021-07-02meta-quanta: gbs: enable health monitoring serviceGeorge Hung1-0/+1
Enable phosphor-health-monitor for CPU/Memory/Storage_RW utilization ref: https://gerrit.openbmc-project.xyz/43387 Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: If76a2d60ebe3db1bd6c1486d039677f35e7e8c5d
2021-07-02meta-quanta: gbs: add CPU/Memory/Storage_RW usages for RedfishGeorge Hung1-1/+5
Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I23757a6df671ed98f67d1e4280abfcc4ae22d233
2021-07-02meta-quanta: gbs: update the default threshold for NVMeGeorge Hung1-3/+3
update the UCT and UNCT to 72 degree as default Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I1baad8f3b621c7a704d5e4872d634653ea75c197
2021-07-02meta-quanta: gbs: install some missing useful packagesGeorge Hung1-0/+3
ipmitool: - debug/manufacturing purpose phosphor-user-manager: - basic authenication for Refish phosphor-nslcd-authority-cert-config: - be able to install your owned CA certificate for Redfish Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I8697fe674d58268dbe348c9374f7de32037041c1
2021-07-01meta-quanta: gbs: remove packagegroup-obmc/gbs-apps settingsGeorge Hung4-57/+47
remove packagegroup-obmc-apps-extras/packagegroup-gbs-apps and add all the needed binaries to obmc-phosphor-image.bbappend Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ic56cb146987881e5b6312057ca412427f1d1ba29
2021-07-01meta-quanta: gbs: update some changes to gbs-sysinit scriptGeorge Hung1-10/+24
- remove unnecessary reset PHY action - check the FIU node for different kernel version - rebind the module for the I2C switch on I2C bus 11 as it only can work with the normal power Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I9b4390d146902484c75bdce20ef6eead2833fc14
2021-07-01meta-quanta: gbs: remove patches for phosphor-ipmi-hostGeorge Hung5-571/+1
remove patches: - Update IPMI Chassis Control command transition requests - Add Chassis State Transition interface - Update Host State Transition function - Fix issues and support signed sensor values Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I8f9f7d576ef7f7672bedf803ee73f331f96768ff
2021-07-01meta-quanta: gbs: remove gbs-nvme-pwr-ctrl/mac-address packagesGeorge Hung4-39/+0
remove packages and recipe files: - mac-address - gbs-nvme-pwr-ctrl Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ic9d6a48d16ec058d1f444badc2f3e69628f77859
2021-07-01meta-quanta: gbs: remove the patch for phosphor-pid-controlGeorge Hung2-118/+0
remove patch: - Add the ability to dynamically set the failSafe percent Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I3fdb60d288fb2fcf83928ba712a546f823849652
2021-06-30meta-quanta: gbs: Fix x86-power-control power-config-host0.jsonBrandon Kim1-6/+8
https://gerrit.openbmc-project.xyz/42539 brought in a change in the json, now requiring "gpio_configs". Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I0361d6c4ed6fa440ae2e32a4ce9c364ee91d8380
2021-06-28meta-quanta: gbs: add system event sensor to handle non-IPMI-SELGeorge Hung1-0/+6
Since the phosphor-logging still has other event types other than IPMI SEL and also put them in the "/var/lib/phosphor-logging/errors" directory. It would make "ipmitool sel list" result in the unspecified error Thus, map these logs to the system event sensor as "Undetermined system hardware failure" Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I00d557fba529d9b762746f8e582df336a16e630f
2021-06-23meta-quanta: gbs: remove the patch for phosphor-hwmonGeorge Hung2-272/+0
remove patch: - Add power on monitor mechanism patch Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I932828d69948c3e0daa8fd428d620a75325e0ac9
2021-06-23meta-quanta: gbs: remove kernel patchesGeorge Hung5-619/+0
removed patches: - AMD CPU temperature hwmon driver - seven segment display drivers - adm1275 temperature sensors enable patch Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ic3f566ee4d39d954fc2cbcc12e4b5b970f645733
2021-06-22meta-quanta: gbs: update the service and remove unused scriptGeorge Hung2-15/+2
- Add always restart to the service file ref: https://gerrit.openbmc-project.xyz/42451 - Add retry 10 times when the service failed - remove unused script Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ia3b027077d8cc9fae65013d38bf1ea730dbbbe42
2021-06-18meta-quanta: gbs: Modified pid sensor type from margin to tempGeorge Hung5-530/+646
- Remove read-margin-temp files and codes - Modified sensor type in pid json to temp setpoint set to target temp Kp set to Kp * scalar Ki set to Ki * scalar - Pre-detect nvme present status in fan-table-init.sh, and delete settings if nvme present is false. Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Iba4ac164a7a39ca1be109301402911d432294997
2021-06-17meta-quanta: gbs: avoid to set LED config to D-bus failedGeorge Hung1-0/+5
Use mapper get-service to check if each LED D-bus is ready and also make LED group service restart not too fast when the serive start failed Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Idd002e4f42d2664bc2f573a8dcc1afcfa593178a