summaryrefslogtreecommitdiff
path: root/meta-yadro/meta-nicole
AgeCommit message (Collapse)AuthorFilesLines
2020-05-29meta-nicole: Enable field modeAlexander Filippov3-0/+29
Enables the field mode by default. This marks the BMC as production version and activates some production specific functionalities. For example, this makes the software manager to discard unverified firmware images. Tested: - The output of `fw_printenv` contains `fieldmode=true`. - `busctl get-property xyz.openbmc_project.Software.BMC.Updater \ /xyz/openbmc_project/software \ xyz.openbmc_project.Control.FieldMode FieldModeEnabled` returns `true` (From meta-yadro rev: ca760a233b348efaf860e0691ea4b3f1c0db1ec1) Change-Id: I9c6fbead319f3c990efba669c923dccb97110e16 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-05-29meta-nicole: Add image signature verificationAlexander Filippov3-1/+6
Adds a firmware image signature verification. This brings: - The key is stored in `/etc/activationdata` folder. - The software item activation now begins with signature verification. The verification failure stops the activation only when the `fieldMode` is set to true. See https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/xyz/openbmc_project/Control/FieldMode.interface.yaml (From meta-yadro rev: f9e0ad9f1bb2a2520651f771e2b873bef384423a) Change-Id: I91cf92d15d29737a9cd05120b194189eb767636e Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-05-28meta-nicole: build obmc-yadro-lssensorsAlexander Filippov1-0/+1
Adds obmc-yadro-lssensors to nicole firmware. (From meta-yadro rev: 6ad79177812c3b3af1c962c31b65c76eb76b51dc) Change-Id: Ife48ab428e402b2291047f585e3b089ef7ed4c77 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-05-27nicole: esel-parser: srcrev bump c35879f..8d25ae3Artem Senichev1-1/+1
Artem Senichev (1): Fix build with GCC 10 (From meta-yadro rev: af4fcfc9196dec6b4a3aac60f5a211ddc689917a) Signed-off-by: Artem Senichev <a.senichev@yadro.com> Change-Id: I9ea6dc5fb97870b8b0ecda9633a16e5e764f06ae Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-05-13meta-nicole: Add default account for administratorArtem Senichev2-0/+39
Creates default administrative account for managing the OpenBMC. (From meta-yadro rev: 7eef85ee0d2e6f8100c06c0f9a9cb52c941ecd50) Signed-off-by: Artem Senichev <a.senichev@yadro.com> Change-Id: If4aa85ace08c9628e98252f00c508fbf28385c9b Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-05-13meta-nicole: Add CLI for end usersArtem Senichev2-4/+38
Command Line Interface (CLI) is a Bash-based shell that is used by non-system users to manage the OpenBMC system. (From meta-yadro rev: cd42b3483a43c1b80aaff8464d9f9c5c3d46979b) Signed-off-by: Artem Senichev <a.senichev@yadro.com> Change-Id: If63b3eb4bdec59d966422d114d1a960c4a67ce2f Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-30meta-nicole: Add default FRU propertiesArtem Senichev2-0/+3
Set default properties for some types of FRU. This fixes the problem with Presence flag, which must be set to "true" for such FRU as "motherboard" or "opfw". File with extra properties was created long time ago but it was not added to build. (From meta-yadro rev: c6c78ffba8e184220b6e9205f4ddd9336589fc1a) Signed-off-by: Artem Senichev <a.senichev@yadro.com> Change-Id: I8c2b610a1683148fac75bb5567929d6dc2e1c563 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-30nicole: libomc-intf: fix gpio definitonsAlexander Filippov1-5/+5
- Removes the unused GPIO definitions. - Adds the ID_BTN definition. (From meta-yadro rev: 542879edd5894c93b75ff17569c867808336c146) Change-Id: I720e1fec9fccb7f3192cc922b7b7192e0cd19702 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-30nicole: led-manager: rename ledsAlexander Filippov1-4/+14
The LEDs were renamed in the DTS to correspond https://github.com/openbmc/docs/blob/master/designs/device-tree-gpio-naming.md The labels were also added. All of these changes led to change the names of the LEDs in sysfs. This commit makes the corresponding changes in the phosphor-led-manager config. (From meta-yadro rev: 683b49512a70c98599277ce719caf695ebd3da8d) Change-Id: I1a7e00136d25c1f379737b64a313e9d322a1f958 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-30nicole: Add iio-hwmon-battery configAlexander Filippov2-0/+12
Nicole has RTC battery monitored by aspeed adc. This commit adds the config for hwmon to create /xyz/openbmc_project/sensors/voltage/vbat dbus object. (From meta-yadro rev: 00a58de373844c2819c88993242a6bbda6235e8a) Change-Id: Ib9eacb8884d793b3895f6dd4749512517c9d8988 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-30nicole: Update DTSAlexander Filippov1-32/+74
Prepares the Nicole DTS to push it to the linux mainline. - Removes unused i2c buses. - Adds a comment for empty i2c definitions. - Adds a missed iio-hwmon-battery node. - Adds the GPIOs names. - Adds the leds labels. (From meta-yadro rev: ae1aea75fe6b5369183b86a05729d56abec77565) Change-Id: I149c8d98984c7d8e515b338006c43d0cca5a60a2 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-29meta-yadro: add dunfell compatibilityAlexander Filippov1-1/+1
OE-core is switching over to dunfell. This adds dunfell compatibility for meta-yadro, meta-vesnin and meta-ncole layers. (From meta-yadro rev: 5149d928b3be14a819e8424f2df4502f0b9afc14) Change-Id: I73ca9cdeb7aca395eb9c7323faa0d46941f3ea4b Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-21meta-nicole: Remove references to vcs-workaroundJoel Stanley2-3/+0
This was a P9 DD1 workaround. These systems are no longer supported and are not found in the wild, so the workaround has been retired. All of the p9 systems in the tree exclude the package so this change should be a noop. (From meta-yadro rev: 0abffd09e40f85cf9b69a6d217d6a9b76a90800a) Change-Id: Ie5b2116291e31635bde5c41a0e5644e611defa4a Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-21nicole: Apply pwr restore policy on cold boot onlyAlexander Filippov2-0/+7
Makes the phosphor-discover-system-state running only on cold BMC boot. As a result, on the warm BMC reboot the host's power restore policy will not be applied. Tested: - on the warm BMC reboot the host power state is not changed. - on the cold BMC boot (power cycle) the host power state depends on the power restore policy. (From meta-yadro rev: ff3f2e23697817d4e14891ce6753509b5fb22e6b) Change-Id: I9265011d078e732d840eaa2572bf5220fc6951d5 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-21meta-nicole: build obmc-yadro-fwupdateAlexander Filippov1-1/+5
Adds obmc-yadro-fwupdate to nicole firmware. (From meta-yadro rev: c9660b9e69cdb968527ce555857abd5dc3b42337) Change-Id: Iffafccab4d4cf8d676637c0015cd84ac5bd33c37 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-21nicole: u-boot: Add system reset state supportAlexander Filippov2-0/+191
This is a backport of the patch file from intel-bmc/openbmc repository. It makes the u-boot to add the system reset status to the bootargs. tested: the /proc/cmdline must contain: - resetreason=power after cold bmc boot - resetreason=watchdog after warm bmc reboot (From meta-yadro rev: 3851142232368d6db77b674e79541d677d68aa41) Change-Id: Ic46b3e497e1c8df4e5bd6d2cf2706e1daba80965 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-03-17nicole: Fix OCC hwmon paths for the 5.3+ kernelAlexander Filippov3-2/+2
The 5.3 kernel adds an 'fsi-master' directory in front of the fsi0 and fsi1 directories in the OCC device tree paths. Update the OCC hwmon file paths accordingly as those are based on that path. Signed-off-by: Alexander Filippov <a.filippov@yadro.com> (From meta-yadro rev: 54b7c9b1ab1bf5b91b293c76335de887f7ff8311) Change-Id: Ie506f88c4e7b2b20f4b589c655982d42dcc3a3f1 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-02-28nicole: Add LED supportArtem Senichev4-1/+146
Changed to be consistent with the schematics. (From meta-yadro rev: 19d9cb67b24396fabbe7160a3f04a71d775c166c) Signed-off-by: Artem Senichev <a.senichev@yadro.com> Change-Id: I46a3f1dde090bd247ddbf72a3a0c1310d6fafdd2 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2020-02-28nicole: Fix GPIO setup for power buttonArtem Senichev1-26/+1
Changed to be consistent with the schematics. (From meta-yadro rev: c3bb02e54cbccb89c5ba7c308ae36c7655922f2d) Signed-off-by: Artem Senichev <a.senichev@yadro.com> Change-Id: I7610fb0ed0f28c8cfccc98799100df96a57b4722 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2020-02-21nicole: Add VPD supportArtem Senichev10-1/+100
VPD contains general description of the BMC card and MAC address for the Ethernet controller. Physically, VPD is stored in the EEPROM AT24C256C, which is connected to the Aspeed SoC via I2C and can be read or written through the special device file /sys/bus/i2c/devices/0-0050/eeprom. (From meta-yadro rev: 95f98dc7d5ccf2b221d2a5aea51bf411201f351c) Signed-off-by: Artem Senichev <a.senichev@yadro.com> Change-Id: I21624f154cfa1e92eddbc1739a4e053d00889b5a Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2020-02-20nicole: NCSI channel selectorArtem Senichev3-0/+138
NCSI channel number is selected depending on GPIO state of a pin described in the device tree (gpio/nsci_cfg node). Currently, this pin is controlled via MCU, and its state represents Nicole's physical position inside a fabric. Channel selector scheme: * GPIO pin is LOW: channel 0; * GPIO pin is HIGH: channel 1; * invalid configuration or error: channel 0. After changing pin's state it is necessary to reboot the BMC to apply new channel number. (From meta-yadro rev: 2661355417e52d968e9845298c37cae8ff1dfe6b) Signed-off-by: Artem Senichev <a.senichev@yadro.com> Change-Id: I8eeac34f71197fc110e41d186dd1fd4d2f1ef064 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2020-01-10nicole: dts: Add RCLK to MAC clocksAlexander Filippov1-1/+1
Fixes build with kernel 5.4.4+ This is a copy of the change which was done in the linux repo for Romulus and other AST2500 based HW Original commit is 06a318f9 Andrew Jeffery <andrew@aj.id.au> ARM: dts: aspeed: Add RCLK to MAC clocks for RMII interfaces We need to ungate RCLK on AST2500- and AST2600-based platforms for RMII to function. RMII interfaces are commonly used for NCSI. (From meta-yadro rev: d971ee2180f448f125fb4e9e471cd10a61bf5ff8) Change-Id: If92e32f144b0c79b937def0136cbf86b4a8aeb73 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-12-18nicole: esel-parser: srcrev bump 1ed2c38..c35879fArtem Senichev1-1/+1
Artem Senichev (4): Allow using fsp-trace from current directory Fix parsing "Creator subsystem" field Add source file name to fsp-trace output hostboot: bump version 3920d160..0921b80a (From meta-yadro rev: 1e65c1adfc33232d89e9deb50e436c2356317f6a) Signed-off-by: Artem Senichev <a.senichev@yadro.com> Change-Id: If56a76133bb9fff94638fafe5428969797b257a8 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-11-12nicole: DTS: Add RCLK to MAC clocksAlexander Filippov1-0/+3
This is the same changes which ones were done in the linux repo for all AST2500 based DTS. Original commit is ed7120aa Andrew Jeffery <andrew@aj.id.au> "ARM: dts: aspeed: Add RCLK to MAC clocks for RMII interfaces" We need to ungate RCLK on AST2500- and AST2600-based platforms for RMII to function. RMII interfaces are commonly used for NCSI. (From meta-yadro rev: f66aaa5cea8ee9a6423cb2d7dcf7f5e75bf95f96) Change-Id: Ieb908db2fb5ef0f0e4ff53dd1563b50e14fc2334 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-10-21meta-yadro: layer.conf: add zeus compatibilityAlexander Filippov1-1/+1
OE-core master will be dropping warrior soon; zeus is the next release. (From meta-yadro rev: 27e7dd3d6c82478ab61973e9a6470fba6f2b4502) Change-Id: Id4a5cb6bff0f2f64df99c6ae602bbbfb55e4cfd0 Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-10-04meta-nicole: Add recipe for building eSEL parserArtem Senichev2-1/+24
(From meta-yadro rev: 25631eaa5a8c6b4542555aff48a8fc3865956d43) Signed-off-by: Artem Senichev <a.senichev@yadro.com> Change-Id: I5003c0f741333d4c0301fa0707dd83d2edf8c127 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-09-17meta-yadro: Remove references to YADROBASEBrad Bishop3-3/+3
YADROBASE 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-yadro rev: 55fa5d541e0cb4291c46213132b479e6d16e8360) Change-Id: I8388c5e60837f7ae0d81be4b6cab82db71d43709 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-09-04nicole: Add phosphor-hostlogger to BMC imageArtem Senichev1-0/+1
(From meta-yadro rev: ab139e076ccf28f19d61728d1bd9f6c6a6e75523) Signed-off-by: Artem Senichev <a.senichev@yadro.com> Change-Id: Iba51aa5fc183a406e2e0cea65c90e344f131b197 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-08-26meta-nicole: Add initial setup for OCC and FRUArtem Senichev14-0/+1838
Ported from IBM Romulus layer. (From meta-yadro rev: b64a2eeade9e2ba61ad4103cef8efe300cffd4c0) Signed-off-by: Artem Senichev <a.senichev@yadro.com> Change-Id: I717c8fda8e61ed0c824252ac85f68d58076e9246 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-07-26meta-nicole: Initial versionAlexander Filippov19-0/+693
NICOLE is a new storage controller for TATLIN server. It based on IBM Romulus reference design (POWER9) and uses an AST2500 BMC SoC. (From meta-yadro rev: 13af90da095c5eb6874ce6f89a8b66a7932e6c50) Change-Id: I4685be88448e1de8a1a716ad3f59ef09e168a1df Signed-off-by: Alexander Soldatov <a.soldatov@yadro.com> Signed-off-by: Alexander Filippov <a.filippov@yadro.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>