summaryrefslogtreecommitdiff
path: root/meta-facebook
AgeCommit message (Collapse)AuthorFilesLines
2021-12-30meta-facebook: enable allow-root-loginPatrick Williams1-0/+1
root is only added to a number of required groups if either `debug-tweaks` or `allow-root-login` is on (see phosphor-rootfs-postcommands.bbclass). For internal builds we turn off `debug-tweaks`, so add `allow-root-login` to our IMAGE_FEATURES since we need it on everywhere. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ic65dce4fd5374a6a9c8389c67693b980a2b5509c
2021-12-29meta-bletchley: Add services to control step motorAllen.Wang9-1/+537
For Bletchley platform, we can only power on system by step motor to press power key. Add tools and service to initialize step motor and control system power by motor. Signed-off-by: Allen.Wang <Allen_Wang@quantatw.com> Change-Id: Ic75352a037566d701b2e362743c527c370b0c2e5 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2021-12-29meta-facebook: add fb-phosphor-image.incPatrick Williams3-9/+14
Builds done using facebook/openbmc do not use the 'obmc-phosphor-image' image name, but instead use 'MACHINE-image'. This means that bbappend files have no effect and we need a different method to get consistent sets of include files. Introduce 'fb-phosphor-image.inc' and 'fb-MACHINE-phosphor-image.inc' as the replacements for the obmc-phosphor-image.bbappend. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I166342c1744d1cd0237f8c75d90d87153fb19b35
2021-12-29meta-bletchley: phosphor-network: use += style for appendPatrick Williams1-1/+3
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I19d92019649ba990dcc33ac1bc25c4ebadc933b6
2021-12-27meta-bletchley: read fru from eeprom and store to inventory areaPotin Lai5-0/+94
1. create configuration layer for fru yaml config 2. add fru eeprom path and id config 3. add FRU_YAML_GEN in phosphor-ipmi-host bbappend Test: root@bletchley:~# busctl introspect xyz.openbmc_project.Inventory.Manager /xyz/openbmc_project/inventory/system/chassis/bmc NAME TYPE SIGNATURE RESULT/VALUE FLAGS org.freedesktop.DBus.Introspectable interface - - - .Introspect method - s - org.freedesktop.DBus.Peer interface - - - .GetMachineId method - s - .Ping method - - - org.freedesktop.DBus.Properties interface - - - .Get method ss v - .GetAll method s a{sv} - .Set method ssv - - .PropertiesChanged signal sa{sv}as - - xyz.openbmc_project.Inventory.Decorator.Asset interface - - - .BuildDate property s "2021-12-21 - 07:56:00" emits-change writable .Manufacturer property s "Quanta" emits-change writable .Model property s "" emits-change writable .PartNumber property s "3RL19MA0000" emits-change writable .SerialNumber property s "1234567890123" emits-change writable .SparePartNumber property s "" emits-change writable .SubModel property s "" emits-change writable xyz.openbmc_project.Inventory.Decorator.Revision interface - - - .Version property s "FRU Ver 0.01" emits-change writable xyz.openbmc_project.Inventory.Item interface - - - .Present property b false emits-change writable .PrettyName property s "Bletchley -Class 1" emits-change writable xyz.openbmc_project.Inventory.Item.Bmc interface - - - xyz.openbmc_project.Inventory.Item.Board interface - - - root@bletchley:~# busctl introspect xyz.openbmc_project.Inventory.Manager /xyz/openbmc_project/inventory/system/chassis/bmc/ethernet NAME TYPE SIGNATURE RESULT/VALUE FLAGS org.freedesktop.DBus.Introspectable interface - - - .Introspect method - s - org.freedesktop.DBus.Peer interface - - - .GetMachineId method - s - .Ping method - - - org.freedesktop.DBus.Properties interface - - - .Get method ss v - .GetAll method s a{sv} - .Set method ssv - - .PropertiesChanged signal sa{sv}as - - xyz.openbmc_project.Inventory.Item.Ethernet interface - - - xyz.openbmc_project.Inventory.Item.NetworkInterface interface - - - .MACAddress property s "3AD664F68D3F" emits-change writable Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I70d624885abaa13639a0617b356554aa6c88af57
2021-12-24meta-bletchley: phosphor-network: enable sync-macPotin Lai2-0/+13
1. Enable sync-mac 2. add inventory mapping config Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I441c00c22d7f1c0e3d0c9f83b9cc149007acd781
2021-12-23sync bmc time from ipmb hostNaveen Moses3-0/+147
This script runs at startup as systemd service. It checks if the bmc time is in sync from NTP server. otherwise it reads the host time via ipmb interface and updates as bmc time. This change was tested and verified in yosemitev2 and tiogapass platforms. Signed-off-by: Naveen Moses <naveen.mosess@hcl.com> Change-Id: I8c937c16415b2dd05d05155facadc0bed797db07
2021-12-22meta-bletchley: Add init service to setup systemHoward Chiu4-1/+122
To setup GPIOs and set fan speed to 70% Signed-off-by: Howard Chiu <howard.chiu@quantatw.com> Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I7a64e19b6e34bcab7013b382d19d7be6156bf87a
2021-12-22meta-bletchley: enable bletchley dtsPotin Lai1-3/+2
select aspeed-bmc-facebook-bletchley.dts for build Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I85503d876b959a2f220ad84b6a9ddba047e89c80
2021-12-22meta-bletchley: kernel: enable SPI_GPIO configPotin Lai1-0/+3
enable SPI_GPIO feature Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I24bb13acfbddcff14c5f15fbd9262ba1b019d9f7
2021-12-21meta-facebook: add packagegroup-security-tpm2 when tpm2 is enabledPotin Lai1-1/+1
Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I3e576e5f9f831a4f73cf9d048859f37d471f3ed7 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2021-12-20meta-yosemitev2: fixing the build warnings.Logananth Sundararaj1-8/+8
while applying the patch facing some build warnings. Tested : Tested in Yosemitev2. Signed-off-by: Logananth Sundararaj <logananth.s@hcl.com> Change-Id: I1544059d205413823e148eff1a56b994ca2b05c1
2021-12-20meta-bletchley: add led managerPotin Lai3-0/+109
add support of phosphor-led-manager for Bletchley Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I4c27fb1a7658b89ff20f8f2ee4c38ae5bd17ffc0
2021-12-17meta-facebook: fb-ipmi-oem: add pkgconfigPatrick Williams1-1/+1
This is required by newer versions of Yocto. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I7011bb03b3a384903f44154d2ea2a8f283afd237
2021-12-15meta-bletchley: Enable kernel configs for platform-specific devicesHoward Chiu2-0/+29
1. AST26xx ADC driver 2. AST26xx PWM v14 driver 3. AST26xx Tach driver from Aspeed-linux 4. Enable driver for PHY fixed link 5. HDC1080 humidity sensor driver 6. PCF85363 RTC driver 7. FUSB302 USB-PD PHY driver 8. MP5023 HSC driver 9. DEVMEM driver for early debug purpose Signed-off-by: Howard Chiu <howard.chiu@quantatw.com> Change-Id: Ib87de12cabd5aef4ef8bd25ac3451a1df56d3fc1
2021-12-15meta-bletchley: add phosphor-nvmeHoward Chiu3-0/+45
Use phosphor-nvme to monitor the temperature of NVMe SSD on each sled Signed-off-by: Howard Chiu <howard.chiu@quantatw.com> Change-Id: Ib61dca1742f66b93cab7bee86b27b33cc7dce969
2021-12-10meta-yosemitev2: Fixing the u-boot console debugging.Logananth Sundararaj2-70/+48
Removed the debug uboot console prints. Initialized the baudrate to 57600. Signed-off-by: Logananth Sundararaj <logananth.s@hcl.com> Change-Id: Ia6cd59e3d6a8a0d73d6a6113c60e13bba0f90b22
2021-12-06meta-yosemiteV2:Fix x86-power-ctrl config filesLogananth Sundararaj4-16/+16
Corrected invalid gpio configurations for YosemiteV2. Dbus based gpio config change due code logic change in ipmbgpiosensor. Signed-off-by: Logananth Sundararaj <logananth.s@hcl.com> Change-Id: I8bafd6b077471ef9910954d1342274fc075274fa
2021-12-02x86-power-control: Switch to meson buildJason M. Bills1-1/+1
Change-Id: Ia32f0baf56fb7a3e035198ece7e74fe18f8fa05c Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
2021-12-02Remove BBLAYERS_NON_REMOVABLE variableAlexander Filippov3-43/+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-17meta-facebook:Added timezone support.Logananth Sundararaj2-0/+4
Changed the default timezone as PST, minimal core-region timezone files are installed. TESTED: Tested and verified in YosemiteV2 Signed-off-by: Logananth Sundararaj <logananth.s@hcl.com> Change-Id: Ia05987c5c68c831aab5b4ae3bd953a03f368cf89
2021-11-10meta-facebook: simplify SERIAL_CONSOLESPatrick Williams4-6/+2
The majority of our hardware uses ttyS4 and 57600. Rather than have each machine specify this, put it into a generic "facebook" override as the default for all our machines. Assuming OVERRIDES is set correctly, machines can still make specific overrides as alternatives. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Id8b704163dc57d94e27481dba7aef1bdf66aeee5
2021-11-10meta-facebook: revamp OVERRIDESPatrick Williams6-10/+12
Ensure OVERRIDES are specific, MACHINE or DISTRO, rather than extending the primary OVERRIDES variable. Fix the order so that the variables are ordered from least-specific to most-specific since bitbake applies overrides in increasing order. This makes it so that 'fb-withhost' is applied before 'fb-compute-multihost' is applied before 'yosemitev2'. Thus, if a recipe has a specialization for 'yosemitev2' it is used rather than the weaker specialization for 'fb-withhost'. Tested by checking the OVERRIDES and MACHINEOVERRIDES for Bletchley, Tiogapass, and Yosemitev2 to verify they look correct. ``` MACHINEOVERRIDES="armv7a:aspeed:aspeed-g6:fb-nohost:bletchley" MACHINEOVERRIDES="armv6:aspeed:aspeed-g5:fb-withhost:fb-compute:fb-compute-singlehost:tiogapass" MACHINEOVERRIDES="armv6:aspeed:aspeed-g5:fb-withhost:fb-compute:fb-compute-multihost:yosemitev2" ``` Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Id5fa38de29c748e4ceafd5ef5c831b4f6434ea01
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-11-04meta-facebook: fix shellcheck issues in scriptsPatrick Williams3-65/+66
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I62cf17d414795e91d673d468a196d4f0a6c0a71b
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 Williams2-2/+2
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-10-25fb-ipmi-oem: srcrev bump 35d12546ca..dd0415b507Andrew Geissler1-1/+1
Manojkiran Eda (1): Add OWNERS file Change-Id: Iffaa976f9522a806bbef6d257fd72e8b81d4b154 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2021-10-23meta-yosemiteV2:Add x86-power-ctrl config files for multi hostLogananth Sundararaj5-0/+219
These config files contains the gpio configuartion which will be used by the x86 power control. PGood config is dbus based gpio configuration is added for all hosts. TESTED:Tested and verified in YosemiteV2. Signed-off-by: Logananth Sundararaj <logananth.s@hcl.com> Change-Id: I94c12545b26ac3bae8226ac6434e61c7c1ee9e06
2021-10-16fb-ipmi-oem: srcrev bump 485f9b31cb..35d12546caAndrew Geissler1-1/+1
Patrick Williams (1): catch exceptions as const Change-Id: I98ce5f5a6f3fe329f0240ac140c2a7889120bee8 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2021-09-16treewide: fix comments for rpm/ipkPatrick Williams3-3/+3
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ia05891430c6c97a89b7bc8ba4558ae496866bf7d
2021-09-13meta-facebook: switch to ipk packagesPatrick Williams3-3/+3
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I75f71a404016949179cca78605ae5be4613249e3
2021-09-04phosphor-host-ipmid,fb-ipmi-oem: srcrev bumpsPatrick Williams1-1/+1
phosphor-host-ipmid: srcrev bump d1bd8c48c0..7a3296df0c Arun P. Mohanan (1): Add check for reserved sensor number Chanh Nguyen (1): chassishandler: Support Hard Reset command Hieu Huynh (1): Implement the set/get system boot option parameters 0x04 P Dheeraj Srujan Kumar (1): NULL check before pointer dereference Patrick Williams (1): exception: switch to public sdbus exception Vernon Mauery (4): Use SecureString where there is data to be cleansed Add a SecureBuffer class properly handle unexpected exceptions Rewrite Set User Password command with new API fb-ipmi-oem: srcrev bump 58c1ca2f7c..485f9b31cb Patrick Williams (1): biccommands: use SecureBuffer for IPMB call Change-Id: I4df3dbda793f9ebab5e898d3c5556b1dfe05b247 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2021-09-02meta-phosphor: change systemd.bbclass to match upstream override syntaxPatrick Williams1-1/+1
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-31meta-facebook: move rsyslog redfish config from tiogapassPatrick Williams5-0/+0
The rsyslog configuration previously done in tiogapass is necessary for Redfish event logs. Move this to be used by all machines. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ib2315287b17ee68ba18a24c9f67f7446ead9b65a
2021-08-25meta-bletchley: enable tpm2-toolsPatrick Williams4-0/+11
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I478258cbf55a66b5c93eca7a09b264e3a2325ca2
2021-08-24treewide: remove gategarth from layer-supportPatrick Williams4-4/+4
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-11meta-facebook: increment CONF_VERSIONPatrick Williams3-3/+3
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Iefe6488f6447fb3976c8f9597674227e83ad8b83
2021-08-11meta-facebook: more prep for new override syntaxPatrick Williams11-86/+208
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I21120d6215c25be49afd60d6e807b68f2798423a
2021-08-10Remove redundant code to set root passwordJoseph Reynolds3-15/+3
Background: The OpenBmc project default root account password is set in meta-phosphor/conf/distro/include/phosphor-defaults.inc and can be customized in each layer's local.conf file. Many of these local.conf.sample files had redundant code to set the password, which probably should not have been there. Removing them allows the defaults in phosphor-defaults.inc to take effect. Tested: No. Only meta-ibm was tested. Signed-off-by: Joseph Reynolds <joseph-reynolds@charter.net> Change-Id: I76dce00d269d7afa005d7bcfd63f846d3cf45596
2021-08-07meta-facebook: prep for new override syntaxPatrick Williams36-107/+107
Ran `scripts/contrib/convert-overrides.py` from upstream Yocto and fixed up a few by hand that were missed. Tested: Built bletchley and tiogapass. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I0489ba007132901697e4ef1a29b03a3591b3ee3b
2021-08-05meta-bletchley: configure 57600 baudrateHoward Chiu3-0/+41
Specific patch for bletchley only Change-Id: Ic059caf023a305e137a01fda5b9cc6e6d9299849 Signed-off-by: Howard Chiu <howard.chiu@quantatw.com>
2021-07-30meta-facebook: phosphor-sel-logger: Use packageconfigWilliam A. Kennington III1-3/+1
This makes it possible for us to change out build specific settings. Change-Id: Iebcf178e7f392381d06480c72a193907b3a61f96 Signed-off-by: William A. Kennington III <wak@google.com>
2021-07-16meta-facebook: fix IPMB channel nameKumar Thangavel1-1/+1
TESTED: Tested and verified in YosemiteV2. Signed-off-by: Kumar Thangavel <thangavel.k@hcl.com> Change-Id: I7bbea7c0caf51fc1fc4acfc6923a795e8b280e6e
2021-07-12meta-bletchley: remove image-mklibsPatrick Williams1-4/+1
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I5c3926bd7f021abec612015b5b4f69d9ca2aeb01
2021-07-01meta-facebook: bletchley: add valid virtual-sensor configPatrick Williams1-0/+1
phosphor-virtual-sensors was crashing on bletchley due to an empty file, which is invalid JSON. Add a valid JSON file, which is just an empty array, instead. Tested: Ran in QEMU and ensured service no longer crashes. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ibf30771a158344cbce519260d44ea945a0e12723
2021-06-23meta-facebook: bletchley: enable u-boot SPLPatrick Williams1-1/+2
The latest u-boot no longer boots on AST2600 without enabling the SPL. Port the changes from commit d84b7f4455406807637b7fecf9e96b73e17fcf62 and tested in QEMU. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I5ce3f3a97d44ae58c54e3d44251726a84fcc6098
2021-06-15meta-facebook: Add rsyslog for Redfish.Jayashree Dhanapal1-1/+16
Added template for Redfish format in rsyslog conf file to save the journal entry as Redfish event. Tested : Verified journalctl log in tiogapass using Redfish. Signed-off-by: Jayashree Dhanapal <jayashree-d@hcl.com> Change-Id: Ic09530c824e65c5dd27fc4c6dac5a385370bdadc
2021-06-07treewide: Remove obsolete image-mklibs classWilliam A. Kennington III2-4/+2
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-06-04meta-facebook: bletchley: create basic machinePatrick Williams6-0/+285
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I5801ad2ce5b7e421a62619c57787465bfa585e95