summaryrefslogtreecommitdiff
path: root/meta-quanta/meta-gsj/recipes-phosphor/ipmi
AgeCommit message (Collapse)AuthorFilesLines
2021-09-02meta-phosphor: change systemd.bbclass to match upstream override syntaxPatrick Williams1-2/+2
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-08-17meta-quanta: Fix incorrect change in Yocto syntax updateDavid Wang1-2/+2
'SYSTEMD_ENVIRONMENT_FILE', 'SYSTEMD_LINK', 'SYSTEMD_OVERRIDE' should stay underscore Signed-off-by: David Wang <davidwang@quantatw.com> Change-Id: Ia30f306857d1552b19ff5ed06664c8bd5360cb4c
2021-08-13meta-quanta: Cleanup for Yocto override syntax changeDavid Wang1-2/+2
- 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-11meta-quanta: meta-gsj: Cleanup for Yocto override syntax changeWilly Tu5-10/+10
Cleanup with ``` convert-overrides.py meta-quanta/meta-gsj git grep "_[a-z0-9_/-]*[ :]" -- meta-quanta/meta-gsj git grep -l _gsj -- meta-quanta/meta-gsj \ | xargs sed -i 's/_gsj/:gsj/' ``` Note: Need to revert the change to BBFILE_PATTERN and LAYERSERIES_COMPAT. After cleanup ``` $ git grep "_[a-z0-9_/-]*[ :]" -- meta-quanta/meta-gsj/ | grep '.bb' meta-quanta/meta-gsj/recipes-bsp/u-boot/u-boot-fw-utils-nuvoton_%.bbappend:do_install:append:gsj () { meta-quanta/meta-gsj/recipes-google/ipmi/google-ipmi-sys_%.bbappend:do_install:append:gsj() { meta-quanta/meta-gsj/recipes-gsj/detect-fan-fail/detect-fan-fail.bb:do_install:append:gsj() { meta-quanta/meta-gsj/recipes-gsj/quanta-nvme-powerctrl/quanta-nvme-powerctrl.bb:do_install () { meta-quanta/meta-gsj/recipes-phosphor/fans/phosphor-pid-control_%.bbappend:do_install:append:gsj() { meta-quanta/meta-gsj/recipes-quanta/network/mac-address_%.bbappend:do_install:append:gsj() { ``` Change-Id: I058371ed32214d665aaaf616a650c2efeaf5be66 Signed-off-by: Willy Tu <wltu@google.com>
2021-04-27gsj: ipmi-fru-properties: Add presence valuesWilly Tu2-0/+26
The ipmi command checks the FRU device's Present property upon a FRU device info reading request. The fru eeprom devices is availabe in dbus, but cannot be accessed by ipmi. ``` $ ipmitool fru FRU Device Description : Builtin FRU Device (ID 0) Device not present (Requested sensor, data, or record not found) FRU Device Description : hsbp (ID 1) Device not present (Requested sensor, data, or record not found) ``` Google-Bug-Id: 186454762 Change-Id: I173c8b3a43dc117f026908d035a00cf49a4e90f5 Signed-off-by: Willy Tu <wltu@google.com>
2020-11-12Remove 'scale' parameter from the sensor interface in IPMI sensors YAML filesKonstantin Aladyshev1-24/+0
Support for the Scale property on the sensor Value interface was dropped in the phosphor-hwmon commit ecac0ae208cfc437 ("Fixes for when sensor value is a double"). (From meta-quanta rev: 8158024f02f58e04bae6677a5703d4e69d990877) Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: Ic21f54a1f21529d4e36d5111fb4562f2581b4c82 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-11-12Use correct type for Dbus sensor interface in IPMI sensors YAML filesKonstantin Aladyshev1-32/+32
Dbus sensor interface 'xyz.openbmc_project.Sensor.Value' migrated from int to double. Therefore all old 'int64_t' types in "*-ipmi-sensor*.yaml" files for this interface should be changed to 'double'. (From meta-quanta rev: e48a99450e7c33ddca74cf9aeab4258e38ed1cab) Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: I42da4df4e06d22fdd68dae4ab1ab9213908feac8 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-10meta-quanta: gsj: Configure ipmi-net over usb0Vivekanand Veeracholan4-0/+38
gsj uses usb0 for RMCPP. Add necessary channel config and access settings. (From meta-quanta rev: 96620f6b11f72fd94c39a5472f7a97b81d66e541) Signed-off-by: Vivekanand Veeracholan <vveerach@google.com> Change-Id: I303b781572f0ef107839bc4f0ab435b781702b74 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-02-06meta-quanta: gsj: configure phosphor-ipmi-flashBenjamin Fair1-0/+1
Enable the network backend for data transfer, "reboot" BMC update type, and support for static BMC images. (From meta-quanta rev: 8e79132f200101445a08b38b6e066bdc98f3c3b8) Change-Id: Id0102c97aaeafc6f59ee59de13306d6250cac40b Signed-off-by: Benjamin Fair <benjaminfair@google.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-10-03meta-quanta: gsj: modify whitelist and enable whitelist by defaultP.K.Lee1-13/+27
- Modify gsj-ipmid-whitelist.conf for the gsj project. - Enable whitelist by default. (From meta-quanta rev: 7f62bc2c5a71b9275b8b636dd6daad000288b2f4) Change-Id: I52363809de53fabb0c6609e0bc564bdcd69c2e75 Signed-off-by: P.K.Lee <p.k.lee@quantatw.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-09-14meta-quanta: Remove references to QUANTABASEBrad Bishop3-3/+3
QUANTABASE is only used for pointing at licenses...point at the licenses in oe-core in meta/files/common-licenses instead. to match the defacto convention used in other oe layers like meta-openembedded. (From meta-quanta rev: 170929b6044497d12e65a6a2c5e7025262c9d783) Change-Id: I12defd008e095db3227e5cd39261f942abd1406c Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-05-23meta-quanta: gsj: modify fru parser configurationDuke Du2-11/+7
Change fru id test on gsj board pass. (From meta-quanta rev: 13a9b58e3709db4fa9f449931934d5d457e0b079) Signed-off-by: Duke Du <Duke.Du@quantatw.com> Change-Id: Iccdc73fa39cdd22167ab82351c91887b340f6f24 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-05-22meta-quanta: gsj: Update the gsj-ipmi-sensor-mapTony Lee1-16/+160
- Modify M value of fan - Change label P12V_BRIC_Current to P12V_BRIC_Curr - Add led fault sensors (From meta-quanta rev: d8ab351499b60975da4057f8c53dbaa2c9457461) Signed-off-by: Tony Lee <tony.lee@quantatw.com> Change-Id: I68f42c48a0c19b935b0d281d3dce017315354068 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-05-15meta-quanta: gsj: update FRU formatBenjamin Fair1-16/+0
Remove the product info area fields as these aren't used in the new FRU format. Tested: Read HSBP FRU over ipmitool and the contents were as expected (From meta-quanta rev: 55ef60d4021d3c76ebca8fc000542efc2685d89f) Change-Id: I389df7d422e738827689415d7dcc0c714a96c045 Signed-off-by: Benjamin Fair <benjaminfair@google.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-04-25meta-quanta: gsj: Update the gsj-ipmi-sensor-mapPKLee-Quanta1-17/+322
1) Locate LEDs of SSD can be controlled by using IPMI. Usage: Read the state of locate LED (e.g. the sensor number is 0x40): $ ipmitool -H <bmc_ip> -U root -P <password> -I lanplus raw 0x04 0x2D 0x40 Assert the specific locate LED (e.g. the sensor number is 0x40): $ ipmitool -H <bmc_ip> -U root -P <password> -I lanplus raw 0x04 0x30 0x40 0x00 0x00 0x02 Deassert the specific locate LED (e.g. the sensor number is 0x40): $ ipmitool -H <bmc_ip> -U root -P <password> -I lanplus raw 0x04 0x30 0x40 0x00 0x00 0x00 0x00 0x02 2) Add sensor information of ucd90160 in sensor map 3) Correct paths of nvme and BmcECC (From meta-quanta rev: ca52cc570fdfb9b7ca85159103393724cfcec3dd) Change-Id: I06d0ba957b4659da2eb59af04200b937ce89da79 Signed-off-by: P.K.Lee <p.k.lee@quantatw.com> Signed-off-by: Tony Lee <tony.lee@quantatw.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-04-23meta-quanta: gsj: add IPMI PWM sensorsBenjamin Fair1-1/+26
Add a sensor for each fan PWM channel to the IPMI sensor map. (From meta-quanta rev: 9daae7df1f77542bce03096cd523febe97555402) Change-Id: I1e142ad3a1596a378e749aa326e6082b4cb84c21 Signed-off-by: Benjamin Fair <benjaminfair@google.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-04-16meta-quanta: gsj: Modify and correct the configurationtony lee1-11/+11
- Modify path of nvme to base 0 - Correct assert paths of BmcECC (From meta-quanta rev: d944c1a2c7ea86802171bae2f6312c910311a6e1) Signed-off-by: tony lee <tony.lee@quantatw.com> Change-Id: Ib701c577cf85ba22dc5eae9be313585771cd2f88 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-04-16meta-quanta: gsj: add machine suffix to phosphor-ipmi-hostPatrick Venture1-3/+3
Add gsj machine suffix to phosphor-ipmi-host recipe append such that it won't impact non-gsj machines built in a mixed-machine environment. (From meta-quanta rev: 6cf4e7ea3a777256232f62212bce040c13423135) Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I36c8e8753c4b5048870044d419f40af79718c0fe Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-04-16meta-quanta: gsj: move phosphor-ipmi-host under ipmiPatrick Venture2-0/+54
Move the phosphor-ipmi-host modifications under the ipmi folder to mirror the meta-phosphor layout. (From meta-quanta rev: f10e2e0bd89eb10638afd92bde04dc4fca216f9c) Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I13826bdf82c0a05d8a6b22de098bc9dabf724bed Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-04-06update upstream subtreesBrad Bishop3-1/+547
A number of corequisites exist so squashing these all into one patch. meta-ingrasys - refresh master bc513127f4..67bcaf389f meta-hxt - refresh master 86a4df514f..8fe0d38bbb meta-phosphor - refresh master 06c09d7cce..df6ddae3d2 meta-quanta - refresh master 4f126361a1..53f3025271 Change-Id: I3daeef2a0467d8ea4f1fd1c617e526f8b11258af Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-03-28meta-quanta: gsj: drop obsolete channel configPatrick Venture2-21/+0
Drop the ipmi channel config. It is unused by phosphor-host-ipmid. Now, a platform can override phosphor-ipmi-config with a channel configuration file to enable this. (From meta-quanta rev: ea17a157dbf31a8869e3d406306888f1f09e9ec4) Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I8036c1939dcf936b3a0ea5948830c4104ee04dd7 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-03-27Quanta: configure fru parserDuke Du8-0/+155
Update fru information of project gsj and test on gsj board pass. (From meta-quanta rev: 4726abcab724b6e8a5abb5dca1603857a294ea97) Change-Id: I3efbc10722f956c7375e1513bb71a39186c12cdd Signed-off-by: Duke Du <Duke.Du@quantatw.com> Signed-off-by: FranHsu <Fran.Hsu@quantatw.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>