summaryrefslogtreecommitdiff
path: root/meta-amd
AgeCommit message (Collapse)AuthorFilesLines
2021-12-02Remove BBLAYERS_NON_REMOVABLE variableAlexander Filippov1-12/+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-04Partially revert "treewide: remove obmc-system-mgmt feature"Patrick Williams2-0/+3
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 Williams2-3/+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-26treewide: clean up use of OBMC_MACHINE_FEATURESPatrick Williams1-1/+1
Modify the machine meta-layer configs to remove the use of the OBMC_MACHINE_FEATURES indirection and favor the Yocto MACHINE_FEATURES variable instead. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ifafb79e4e4c010e9476b9547cd4982f5b645060e
2021-09-16treewide: fix comments for rpm/ipkPatrick Williams1-1/+1
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ia05891430c6c97a89b7bc8ba4558ae496866bf7d
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-10meta-amd: fix compilation errors with latest YoctoKonstantin Aladyshev19-43/+43
Make the following changes to fix compilation errors: - add honister to the LAYERSERIES_COMPAT variable, - increase CONF_VERSION to 2, - use new bitbake override syntax Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: I971f0f0f7110e0350994ced151ca429444885056
2021-09-10meta-ethanolx: Add driver for the FRU EEPROMKonstantin Aladyshev1-0/+1
AMD EthanolX CRB uses 24LC128 EEPROM as a device that is supposed to store FRU information. Add necessary Linux driver that adds support for this chip. Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: Iaf54bfd5bfbc3266d2a18861ee47339df78c777b
2021-08-30meta-ethanolx: Fix CPU fan names in IPMI YAML fileKonstantin Aladyshev1-2/+2
The BMC on the AMD Ethanol CRB uses entity-manager for sensor configuration. Therefore IPMI configuration YAML file should use DBus paths to sensors based on the names from the entity-manager JSON files. Currently 'ethanolx-chassis.json' exports CPU fans on a DBus as "P0_Fan"/"P1_Fan". Use these names to correctly populate CPU fans to the IPMI. Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: I0425e42771e1bfb36ad067dfcad5a23e5f180d67
2021-08-30meta-ethanolx: Add support for Legacy/EFI selectorKonstantin Aladyshev1-0/+1
AMD EthanolX CRB is a board with x86-64 CPU, which means it can support both EFI and Legacy boot. Add 'boot_type' PACKAGECONFIG option for the phosphor-settings-manager package to support EFI/Legacy selector in the BMC boot override feature. This setting is designed for the possibility of setting boot override as: - "PC compatible" boot (legacy) - Extensible Firmware Interface Boot (EFI) Change-Id: I173c5b439b929e80f3a106f5e7775862f889ee16 Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
2021-08-30meta-ethanolx: Support AST2500 internal ADC sensorKonstantin Aladyshev3-0/+214
Populate ADC sensor data to the system. This change make ADC data accessible over DBus, IPMI, Redfish and webui-vue. The threshold values were calculated as 10% from the target values. The "PowerState: On" entity-manager parameter on the "*_RUN" channels is used to make thresholds active only when the board is powered on. Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: I5322e83fdbfa0815bed454ea81b83725a2221d2c
2021-08-30meta-ethanolx: Support voltage regulatorsKonstantin Aladyshev3-0/+1733
Populate voltage regulator sensors to the system. This change make voltage regulator data accessible over DBus, IPMI, Redfish and webui-vue. AMD EthanolX CRB has 4 voltage regulators per each of its CPUs (P0/P1): -ISL69147 - Px VDD core regulator -ISL69144 - Px VDD SoC regulator -ISL68127 - Px VDD Mem / VPP ABCD regulator -ISL68127 - Px VDD Mem / VPP EFGH regulator All of these voltage regulators are 1st generation multiphase devices. They can be covered with a ISL68137 Linux driver initialized with a "isl68137" parameter, which would bring the necessary "raa_dmpvr1_2rail" initialization. The threshold values were spoofed from the original voltage regulators configuration in the AMD EthanolX CRB. The "PowerState: On" entity-manager parameter is used to make thresholds active only when the board is powered on. Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: I123db2e356f525e0d269aef780d34d218209592a
2021-08-30meta-ethanolx: Support SB-TSI sensorsKonstantin Aladyshev2-0/+106
Populate SB-TSI CPU sensors to the system. This change make SB-TSI CPU sensors accessible over DBus, IPMI, Redfish and webui-vue. The entity-manager configuration make use of "PowerState: On" parameter as SB-TSI sensors are active only with a powered on CPU. Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: I80390bb0baa291e7a9d5b49b2e9542cef719da69
2021-08-30meta-ethanolx: Enable only necessary dbus-sensors appsKonstantin Aladyshev1-0/+5
On the AMD EthanolX CRB only few of the dbus-sensors apps are relevant. The rest of them aren't needed and will only waste cpu time and produce ambiguous fail messages at the initilization stage. Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: I9ce01d93d79b40386a59757244e8b9b8a6008289
2021-08-25meta-ethanolx: Add blacklist file for the 'fru-device' appKonstantin Aladyshev1-0/+3
Some I2C addresses can't be probed for a FRU. For example, device at this address can be already connected to a driver or the I2C bus is not scannable like the APML bus. In this case 'fru-device' app will be producing messages like this: 'fru-device[XXX]: device at bus X address XX busy' To avoid these unnecessary log messages add I2C bus blacklist json file for the 'fru-device' app. Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: I0618943c9362117d9931defa1e17bcd999621197
2021-08-24treewide: remove gategarth from layer-supportPatrick Williams2-2/+2
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-07-30meta-amd: phosphor-sel-logger: Use packageconfigWilliam A. Kennington III1-3/+1
This makes it possible for us to change out build specific settings. Change-Id: Idf3643556f7cf134841043d955a5ee057906fba6 Signed-off-by: William A. Kennington III <wak@google.com>
2021-06-30meta-amd: Switch web UI app to 'webui-vue'Konstantin Aladyshev1-1/+1
'phosphor-webui' is no longer developed. It was built on AngularJS and AngularJS goes End of Life June 30, 2021. 'webui-vue' is a modern replacement for the web UI app. Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: I2b907784a06feeaa48c1336c9eab72828706d9ea
2021-06-07treewide: Remove obsolete image-mklibs classWilliam A. Kennington III1-2/+1
This is apparently not actually working anymore and is removed in the next poky update. Change-Id: Ia1c6a258d124a4a30a14fc42e8e0bba95e64faeb Signed-off-by: William A. Kennington III <wak@google.com>
2021-05-06meta-ethanolx: Add support for system fansKonstantin Aladyshev3-0/+366
Add system fans to entity manager configuration files and to IPMI YAML configuration files. Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: Ib86a09553073b6ecf112232ca939758ecc5516c9
2021-05-06meta-ethanolx: Remove 'phosphor-hwmon' app and its configuration filesKonstantin Aladyshev11-107/+1
As now 'entity-manager' and 'dbus-sensors' apps are used for the sensor monitoring, 'phosphor-hwmon' app and its configuration files are no longer needed. Moreover if 'phosphor-hwmon' app is present alongside with the 'dbus-sensors' app, it would produce duplicate sensors on Redfish. Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: I251663a05a8447ad84e13855c02284930ba8d8f4
2021-05-05meta-amd: Fix trailing slash warning in 'amd-fpga' recipeKonstantin Aladyshev1-1/+1
The current 'amd-fpga' recipe leads to constant warning messages in a bitbake build: """ WARNING: Recipe amd-fpga sets S variable with trailing slash, remove it. WARNING: Recipe amd-fpga sets B variable with trailing slash, remove it. """ Remove the trailing slash from the recipe to get rid of the messages. Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: Icb262d38f21cd0a08ddc1af01db7db01ddbc97e4
2021-04-22build phosphor-hwmon with mesonMatt Spinler1-1/+1
The repository supports it, so switch it over in bitbake. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I8d96c79b395ee2614ddd869091569f245426c5c7
2021-04-21meta-amd: FPGA Register Dump Utility ScriptKonstantin Aladyshev4-0/+430
Usage: fpgardu.sh Uses i2c bus 2 to access FPGA registers and display the data Signed-off-by: Paul Erb <paul.erb@amd.com> Signed-off-by: Supreeth Venkatesh <supreeth.venkatesh@amd.com> Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: I2608eb48fa4cb3ef2d8837bc22a8efe3dc339d37
2021-04-21meta-amd: Add side band temperature sensor interface driverKonstantin Aladyshev1-0/+1
Configures the kernel configuration to include support for SB-TSI driver. Signed-off-by: Supreeth Venkatesh <supreeth.venkatesh@amd.com> Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: I718375d70550edf90c407ac8595f00347061e9a4
2021-04-21meta-amd: Add entity-manager configurations for AMD EthanolXKonstantin Aladyshev3-0/+367
Add entity-manager baseboard and chassis json configurations for AMD EthanolX. bb append entity-manager recipe to include above files. Sigened-off-by: Supreeth Venkatesh <supreeth.venkatesh@amd.com> Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: I766be9587149fe54034ff8e01aa1013797f873a9
2021-04-21meta-amd: Enable dbus-sensors applicationKonstantin Aladyshev1-0/+1
Enable dbus-sensors application. It will be used in conjunction with the Entity-manager application to provide all the necessary sensor monitoring services. Signed-off-by: Supreeth Venkatesh <supreeth.venkatesh@amd.com> Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: Ia358e630cd4518ca6ec1722fa383b6786b835e82
2021-04-06hardknott: yocto releaseAndrew Geissler2-2/+2
Latest upstream yocto has moved on to the 3.3 hardknott release Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: Ieae36798d66d21c2c642931f06407d3bb2acf163
2021-03-22openbmc: add meta-security layerAnton D. Kachalov1-0/+2
This layer provides libseccomp. Signed-off-by: Anton D. Kachalov <gmouse@google.com> Change-Id: I84513d56f2ed75fab49043196b98ef8b858e394f
2021-01-27meta-ethanolx: Remove devicetree patch as all changes were merged upstreamKonstantin Aladyshev2-66/+1
Devicetree patch is no longer needed as all the changes are now merged upstream and will be by default in the next kernel release. As to the current OpenBMC kernel release, all the changes were backported and therefore the devicetree patch is no needed here too. (From meta-amd rev: a6dd837fee1cd0ff765d9f84150baea32b4ab35d) Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: I81b5a8bd139dcf1da32da6b5005b3e9e015d2fd7 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2021-01-15Add Owners Plugin to meta-amdEd Tanous1-0/+2
Please see https://gerrit.openbmc-project.xyz/c/openbmc/openbmc/+/39379 for details about why this is necessary. (From meta-amd rev: 0674e6ad3c53aa12cf56962b3d5627bc541356bd) Signed-off-by: Ed Tanous <ed@tanous.net> Change-Id: Ie48ce1f7af59b2413565d3b9e66875596486a179 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-11-21meta-amd: update Yocto compat for gatesgarthPatrick Williams1-1/+1
The next release of Yocto is soon and most of the upstream layers have switched support strings for it. Support layer compat for gatesgarth (current) and dunsfell (previous). (From meta-amd rev: 053aaa505b711929800bffdcc1f748ddb89e50e7) Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I98a0b761a51db8813ac50fb89ba3923b89a39259 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-11-20meta-ethanolx: Add 'channel_config.json' fileKonstantin Aladyshev1-0/+178
Add 'channel_config.json' file with configuration settings for the AMD EthanolX Customer Reference Board (From meta-amd rev: 6ea0bb93cc31d9caeb876411849229c8c49c1a2a) Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: I42bbb4f3593e51f845a28e2d7b6c2e040c299819 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-11-17meta-amd: Add MAINTAINERS fileSupreeth Venkatesh1-0/+45
Adds MAINTAINERS file which lists the initial maintainer for the meta-amd repository. (From meta-amd rev: bf95777b8150cef8772d825124b9d72c5a727e9e) Signed-off-by: Supreeth Venkatesh <supreeth.venkatesh@amd.com> Change-Id: I498ecb9403c2c4cbfea3a0b4a2e1113fdf244d64 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-11-17meta-amd: Update chassis control applicationSupreeth Venkatesh2-92/+262
Updates chassis power control app based off of x86-power-control recipe with modifications needed to support EthanolX customer reference board. (From meta-amd rev: c375601d165c33c3f31019336dfae6ff04e3b9b2) Signed-off-by: Supreeth Venkatesh <supreeth.venkatesh@amd.com> Change-Id: Ib4de4a919a2f5ad5f2b40692a46d4b28b15a2fa9 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-11-13meta-amd: update Yocto compat for gatesgarthPatrick Williams1-1/+1
The next release of Yocto is soon and most of the upstream layers have switched support strings for it. Support layer compat for gatesgarth (current) and dunsfell (previous). (From meta-amd rev: 10e0f894f2bce5d131ecc4befce524bf432448c0) Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ic852613d8ed9b8255228cc787b365dd66e30e3c4 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-11-03Use correct coefficients for IPMI sensorsKonstantin Aladyshev1-11/+11
Temperature values are presented as floats on Dbus and therefore don't need any 'scale' coefficients. Fan sensors on the other side have great values (0-10000) and therefore need M=40 (40*256=10240). (From meta-amd rev: c1fb9be8aa6168838eebc2da6fe6f22a0d56daf9) Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: I76cf4f098df06b8cb0a6b6440364795b9c830e2a Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-11-03Use correct type for Dbus sensor interface in IPMI sensors YAML filesKonstantin Aladyshev1-10/+10
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-amd rev: 5f837d4db1ec886e7616ad3f457d260aa39135a5) Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com> Change-Id: I19cb7daf287a9ff77c571c0a82ff7ae7a83fe50f Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-09-09meta-amd: subtree update:0ec4f9ff17..496d83825eBrad Bishop38-0/+2433
Supreeth Venkatesh (22): meta-amd: Add recipe for power control. meta-amd: Override watchdog recipe. meta-amd: Override fans and sel-logger recipes. meta-amd: Define OpenBMC AMD package group applications. meta-amd: Add Linux kernel recipe for EthanolX. meta-amd: EthanolX platform configuration meta-amd: Enable bmcweb and phosphor-webui meta-amd: Enable LED Group Management for Ethanolx meta-amd: Enable OOB BMC firmware update meta-amd: Enable SOL host console meta-amd: Modify device tree to enable thermal sensors for EthanolX meta-amd: Enable hwmon to monitor thermal sensors and fan meta-amd: Enable ipmi fru and sensor configuration meta-amd: Add ipmi config, host and fru .bbappend files meta-amd: Add entity-manager and ipmitool modules meta-amd:linux: Added I2c0 and I2c1 which cater to AMD's APML Interface meta-amd: Remove device tree patch meta-amd: Add device tree patch meta-amd: Add chassis control application meta-amd: Add phosphor host logger application meta-amd: Add fan tach sensor for fan 0 and fan 1 meta-amd: Remove bmcweb bbappend file Change-Id: I53d6f4be203eefce1475d588b55fdf785b2b2024 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2020-09-09meta: Add meta-amd layer.Supreeth Venkatesh5-0/+235
This patch adds meta-amd layer to support AMD's customer reference platforms. Change-Id: Id807619e207f007c81690f6ef75368ef36858df9 Signed-off-by: Supreeth Venkatesh <supreeth.venkatesh@amd.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>