Age | Commit message (Collapse) | Author | Files | Lines |
|
phosphor-state-manager
Description:
Add service to for power control initialization use.
Test Case:
Get corresponding BMC register configuration.
Change-Id: I8d227da66ddca4e38142744606ee130c1ce7aa7f
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
|
|
power cycle
Summary:
Add service and script to support host reset and chassis
power cycle.
Tested:
Change property to trigger host and chassis
target and check the power status.
Change-Id: Ie21903f5bc5bbebeaf31153c52d1605cd35619a0
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
|
|
Description:
- Support Meta greatlakes SoL on multi-host
Design:
- We designed by 4 clients on port 2200~2203 represents Host1 ~ Host4,
and 4 clients on port 2300~2303 represents BIC1 ~ BIC4, the clients will
use socket-id to connect to corresponding server.
- For switching between Host/BIC, each client will manipulate the UART
mux by the cpld driver before connect to the server. The script for
switching the mux can be implemented in project layer.
Limitation:
- Since the CPLD device driver is not ready yet, we currently use raw
commands (i2ctransfer) to manipulate the register value, we will adapt
to the interface on CPLD device drvier when it's ready.
Issue:
- None
Test Case:
1. Check ssh -p 2200 ${ip} should successfully connect to Slot 1 Host.
- pass
2. Check ssh -p 2300 ${ip} should successfully connect to Slot 1 BIC.
- pass
3. Check ssh -p 2201 ${ip} should successfully connect to Slot 2 Host.
- pass
4. Check ssh -p 2301 ${ip} should successfully connect to Slot 2 BIC.
- pass
5. Check ssh -p 2202 ${ip} should successfully connect to Slot 3 Host.
- pass
6. Check ssh -p 2302 ${ip} should successfully connect to Slot 3 BIC.
- pass
7. Check ssh -p 2203 ${ip} should successfully connect to Slot 4 Host.
- pass
8. Check ssh -p 2303 ${ip} should successfully connect to Slot 4 BIC.
- pass
Change-Id: I3ebe12d4cabb01b401220c053cced089141e79e8
Signed-off-by: Bonnie Lo <Bonnie_Lo@wiwynn.com>
|
|
We don't have any use for the LDAP config in our deployment, so
disable it entirely.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I3661424146148b4910163f3c4b3006e1fa75cb12
|
|
The existing implementation completely override the DEFAULT_TARGETS in
/meta-phosphor/recipes-phosphor it seems like error and that changes
doesn't get in the platform. now instead of overriding have append
to the original DEFAULT_TARGETS with bb_append.
Testing: The soft links are created properly and the transition
change and target mappings are also verified successfully.
change-Id: I950e04891cd1438fb24f688231143be966b3a4c9
Signed-off-by: Karthikeyan Pasupathi <pkarthikeyan1509@gmail.com>
|
|
add phosphor-discover-system-state service for each host to support
power restore feature.
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Ic61a2e532a5928e76914706bd537e12f638e3e3c
|
|
Add bletchley health monitor configuration.
Remove reboot.target from CPU critical threshold.
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I9bff26dd47591f4384797fd91a6cea3307227190
|
|
Bletchley PE requested wget be added to the images.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I0e685134071619fdb9e132a7687994ff61fb186e
|
|
We don't have any use for the net-ipmi package and do not want that
process running. Remove it from the image.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I751ae9b901e34c822916808d8127789a75de97ab
|
|
Reduce the PACKAGECONFIG of dbus-sensors to remove unused daemons,
which results in a flash image savings.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I06c36a72a73f671908b35f217188c0bf41766cc0
|
|
strace is a pretty helpful debug tool. Add it to all our images.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I09dca2b6ab76535371dd55e39105eba853aa0f66
|
|
Bletchley PE requested we add tmux to the images.
In order for tmux to work we also need to generate the en-us locale
because tmux requires UTF-8 locale information. Add this to all our
images as well (it is disabled in meta-phosphor to save space).
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I40b92ea975b64e364003d542d71cb0103df34cfe
|
|
Bletchley PE requested we add curl to the images.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Id94fbe5d086e8b045726da0403306860d9ed88f2
|
|
Added phosphor-gpio-monitor support for facebook platforms
to enable hot plug/unplug of host feature.
TESTED : Verified hot plug/unplug of all hosts are enabled
and tested in Facebook YosemiteV2 platform.
Signed-off-by: Kumar Thangavel <thangavel.k@hcl.com>
Change-Id: I7ff6647942cdc979c2a3dc6f4c85c1273785cf65
|
|
Provide virtual sensors for greatlakes platform.
Tested: Tested and verified the dbus path names for sensors.
Change-Id: I8c2d387b08b00fb6482cc30bff182b10d2df3e83
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
|
|
Increase smbus error retry to 3 times to avoid sensor failure due to
single smbus error.
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I79b4e9d83355a7799665ed29e4c6dfe330221210
|
|
Enable lamp testing feature for Bletchley (and all other systems).
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I9bfb937a46bd1784bf156d459536ea060e572dc8
|
|
When using PSM, phosphor-fan is not responsible for installing
some of the target files and bitbake fails with two packages
installing the same files. Add some detection as a quick workaround
so that Greatlakes can successfully build.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Idf7b49baa9a030cbf5afc983459d66f2557e085b
|
|
Support power and thermal sensor in `redfish/v1/chassis/{board_name}/sensor`.
Tested:
Check redfish `redfish/v1/chassis/{board_name}/sensor` API
Signed-off-by: DelphineCCChiu <Delphine_CC_Chiu@wiwynn.com>
Change-Id: If72f685810c43381fffb2dabbe651c5b9f995e7f
|
|
Added machine layer support for greatlakes to support control the
BMC, Chassis, and Host. It supports requests to power on and off
the system by the user.
Signed-off-by: Karthikeyan Pasupathi <pkarthikeyan1509@gmail.com>
Change-Id: Ie62cc289783d47d8b50cd0c555157749f160c253
|
|
Add a log only warning threshold at 70% memory usage.
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I74c49efeaedacff20f59a646c2a8e37ec76b5e7f
|
|
1. Move nvme_config.json to meta-facebook layer
2. Update nvme thermal sensor thresholds base as suggested by thermal
team.
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Ia444afa2a27032c88302e913eb07909f7123c608
|
|
BMC health monitor json file is added for Facebook platform to
monitor the CPU, Memory and Storage usage. It will reboot the
target, once it exceeds the critical threshold value.
Tested: Tested in Facebook YosemiteV3.5 platform
Signed-off-by: Jayashree Dhanapal <jayashree-d@hcl.com>
Change-Id: Ieb7486b558de087fac7e9acaba1d88771a5b7626
|
|
Add a service and script for detecting the state of the eMMC
device and formatting it if needed.
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I4618d1691dedcff582772a0749c5797ad052f238
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
This change adds phosphor-buttons gpio configs for
the following :
1. Power button
2. Reset button
3. Host selector
4. Debug host selector button
5. serial uart mux
To keep the install method common for copying gpio_defs.json file
in supported platforms the install method is moved to
obmc-phosphor-buttons_git.bb file.
Signed-off-by: Naveen Moses <naveen.mosess@hcl.com>
Change-Id: I91a106fdc5ac9aa83eec63cbd41a9615b380c37d
|
|
Added IPMI restriction mode as Whitelist by default mode for all
the hosts in machine layer for Facebook YosemiteV2 platform.
TESTED : Built Facebook YosemiteV2 images and loaded on the target
hardware. Verified restriction mode as whitelist by default.
Signed-off-by: Kumar Thangavel <thangavel.k@hcl.com>
Change-Id: Ib3e98615a2ec80d241f1677ac1838de5a837c6d0
|
|
The option that tells the code to use the host state as the power state
was renamed in the code.
phosphor-fan-presence: srcrev bump bf8e56f699..b7dd3e222c
Matt Spinler (2):
control: Display locked targets in debug dump
meson: Rename host power state checking option
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: Ic4dfd0c600b31a3aa0d0c9b8101c27e488812bb2
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
The phosphor-fan-presence repository added meson support, so start using
it.
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: If850d3d379ad82dc8f9691efd7a0561f350543dc
|
|
Change-Id: Ia7e6bbf0506e9e6acb99fdf67fc7d55a20588a0d
Signed-off-by: Peter Delevoryas <peter@pjd.dev>
|
|
1. Add IPMB channel configuration for USB debug card.
2. Enable both phosphor-ipmi-ipmb and fb-ipmi-oem.
This patch relies on the kernel patch below:
https://lore.kernel.org/all/20220810004338.329832-2-potin.lai.pt@gmail.com/
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I10c0a99530519e9533dbf0ac5b22a31051f91f98
|
|
Facebook systems should default to "Restore" for RestorePolicy.
This will ensure a system is automatically restored to the last
state prior to the power loss.
Tested: Built Facebook image and verified generated source file
had correct default in it.
Signed-off-by: Karthikeyan Pasupathi <pkarthikeyan1509@gmail.com>
Change-Id: Ifccec4ef88ca8fe01e7d90a57af2411db3311736
|
|
sensor values crossed thresholds
Added support to trigger hard shutdown alarms and power off the
slots of the platform if the Fan/NIC sensors values getting low
compared to threshold values.
Added platform specific service file and script to take
platorm specific actions.
TESTED : Verified all the slots getting powered Off when fan/nic
sensor values crossed threshold values.
Signed-off-by: Kumar Thangavel <thangavel.k@hcl.com>
Change-Id: Icd1f761c08e8b829eef4f1d28ef68732600c296b
|
|
Fan/NIC sensor values crossed thresholds
Added support to trigger hard shutdown alarms and power off the
slots of the platform if the Fan/NIC sensors values getting low
compared to threshold values.
Added platform specific service file and script to take
platorm specific actions.
TESTED : Verified all the slots getting powered Off when fan/nic
sensor
values crossed threshold values.
Signed-off-by: Kumar Thangavel <thangavel.k@hcl.com>
Change-Id: I6deb6707e574a375fac8f2379f47661a5a0ed332
|
|
The FB phosphor-nvme recipe requires this json file for all platforms,
even if they're not using it. If it's missing, the fby35 build fails.
In the future, we should really refactor the nvme recipe to make this
file optional.
Change-Id: Ib80c0f06efae98555a6b08e47eb23b4526261888
Signed-off-by: Peter Delevoryas <peter@pjd.dev>
|
|
New yocto enforces the files being under the machine being built. For
now just make some empty files to get through compile and then facebook
team can come back if needed to put some content in them.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I01eda9f403df1bb9262b4fce039c9e09072d22ae
|
|
Added obmc-console multi host support for yosemiteV3.5 platform.
Tested : Verified this on Yosemite V3.5 platform by launching all 4
server instance and verified SoL output from hosts.
Signed-off-by: Kumar Thangavel <thangavel.k@hcl.com>
Change-Id: Iefca7af84e2f442575e29f0634d2d7e6612686d3
|
|
Added support in the machine layer for current sensor as virtual
sensor to display NIC_IOUT and FAN_IOUT based on the FAN and NIC
voltage sensor which is displayed under ADCSensor.
TESTED : Tested and verified the D-Bus path and Interface for
current virtual sensor for FAN_IOUT and NIC_IOUT.
Signed-off-by: Jayashree Dhanapal <jayashree-d@hcl.com>
Change-Id: Ia774cd84d6bb71869a5900dc6f0dc2e5464950ab
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
Added hostlogger support to store console
histories for all the host.
TESTED : Built the openbmc image targetting
Facebook YosemiteV3.5 hardware. Verified all
the host log were generated.
Signed-off-by: Kumar Thangavel <thangavel.k@hcl.com>
Change-Id: I5adf9b1a9284c398e683f1699f7e8f678b321672
|
|
Build success.
Signed-off-by: Logananth Sundararaj <logananth_s@hcl.com>
Change-Id: I6f16791045cfa7389363177816da765b19b1ef28
|
|
The machine layer changes to configure the phosphor-host-postd to
support multi-host(yosemitev2). The yosemite V2 has 4 hosts.
Tested:
Tested systemd service for Yosemitev2.
Tested systemd service for Tiogapass.
Signed-off-by: Kumar Thangavel <thangavel.k@hcl.com>
Change-Id: Ie26b357b6a7d3fe1e9335e43f8564c7ce59b1030
|
|
Signed-off-by: Karthikeyan Pasupathi <pkarthikeyan1509@gmail.com>
Change-Id: Ib6d6f6dc5f4af68e2eadce88e07cf5f4306ec4da
|
|
Tested:
Tested in FBY35 platform.
Signed-off-by: Karthikeyan Pasupathi <pkarthikeyan1509@gmail.com>
Change-Id: Ifaeb89d76fc9b99823f133b75fd5895db85e0fbf
|
|
1. enable `send-to-logger` option in phosphor-sel-logger, handle logs by
Phosphor Log Manager.
2. enable `redfish-dbus-log` in bmcweb to add redfish support for
event logs.
Tested results:
- Redfish
$ curl -u root:0penBmc -k https://10.10.11.203/redfish/v1/Systems/system/LogServices/EventLog/Entries/15
{
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/15",
"@odata.type": "#LogEntry.v1_8_0.LogEntry",
"AdditionalDataURI": "/redfish/v1/Systems/system/LogServices/EventLog/15/attachment",
"Created": "2022-05-04T06:17:21.948000+00:00",
"EntryType": "Event",
"Id": "15",
"Message": "xyz.openbmc_project.Logging.SEL.Error.Created",
"Modified": "2022-05-04T06:17:21.948000+00:00",
"Name": "System Event Log Entry",
"Resolved": false,
"Severity": "OK"
}
- CLI
root@bletchley:~# obmcutil listlogs
{
"type" : "as",
"data" : [
[
"/xyz/openbmc_project/logging/entry/15",
"/xyz/openbmc_project/logging/entry/16",
"/xyz/openbmc_project/logging/entry/17",
"/xyz/openbmc_project/logging/entry/18",
"/xyz/openbmc_project/logging/entry/19",
"/xyz/openbmc_project/logging/entry/20",
"/xyz/openbmc_project/logging/entry/21",
"/xyz/openbmc_project/logging/entry/22",
"/xyz/openbmc_project/logging/entry/23",
"/xyz/openbmc_project/logging/entry/24"
]
]
}
root@bletchley:~# obmcutil showlog /xyz/openbmc_project/logging/entry/15
{
"type" : "a{sv}",
"data" : [
{
"Id" : {
"type" : "u",
"data" : 15
},
"Timestamp" : {
"type" : "t",
"data" : 1651645041948
},
"Severity" : {
"type" : "s",
"data" : "xyz.openbmc_project.Logging.Entry.Level.Informational"
},
"Message" : {
"type" : "s",
"data" : "xyz.openbmc_project.Logging.SEL.Error.Created"
},
"EventId" : {
"type" : "s",
"data" : ""
},
"AdditionalData" : {
"type" : "as",
"data" : [
"EVENT_DIR=1",
"GENERATOR_ID=32",
"RECORD_TYPE=2",
"SENSOR_DATA=520007",
"SENSOR_PATH=/xyz/openbmc_project/sensors/fan_tach/FAN3_TACH_IL",
"_PID=327"
]
},
"Resolution" : {
"type" : "s",
"data" : ""
},
"Resolved" : {
"type" : "b",
"data" : false
},
"ServiceProviderNotify" : {
"type" : "b",
"data" : false
},
"UpdateTimestamp" : {
"type" : "t",
"data" : 1651645041948
}
}
]
}
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Ie4094c8e20224506474b75ae18ede97adfdd5bb7
|
|
Add libtss2-tcti-device package to support access tpm via device node
/dev/tpm0
Tested Results:
root@bletchley:~# /usr/bin/tpm2_getcap properties-fixed 2>/dev/null | grep -A1 TPM2_PT_FIRMWARE_VERSION_1
TPM2_PT_FIRMWARE_VERSION_1:
raw: 0x7003E
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I67784a34aeffc38c66f98a3c0dbe995bb098394b
|
|
Added BootType property and interface in host-template.yaml
for multi-host support to determine the BIOS boot options
which supports Legacy and EFI.
TESTED : Tested on Facebook Yosemitev2 platform and verified
the results.
Signed-off-by: Jayashree Dhanapal <jayashree-d@hcl.com>
Change-Id: I8f85b9b63019b683b0062c45f793d4b363c82482
|
|
As mentioned by I970e06ca6f9d0a9792af122eb25da1bb9a06f058, append and
remove directives with '+=' are no longer valid Yocto syntax and raise a
warning.
See https://git.yoctoproject.org/poky/tree/documentation/migration-guides/migration-3.5.rst#n40
One interesting caveat has to do with the difference between "append"
and "+=".
foo:append = "a"
foo:append = "b"
Results in `foo = "ab"`, but
foo += "a"
foo += "b"
Results in `foo = "a b"`. When `:append +=` is used it has behavior
like the `+=` operator. Therefore, in some cases we need to insert
additional whitespace after the `:append = "` to ensure concatenation
behaves as expected. I've manually reviewed the results to ensure there
is no ill side-effects from an additional space potentially being added.
Fix up the entire tree with the following one-liner (and similar for
`remove`):
git ls-files -- ':!:poky/**' ':!:meta-security/**' \
':!:meta-raspberrypi/**' ':!:meta-openembedded/**' \
| grep "\.bb" | xargs grep -l ":append.*+=" \
| xargs sed -i 's/:append\(.*\)+=\([^"]*\)" */:append\1=\2" /'
or ...
| xargs grep -l ":remove.*+=" \
| xargs sed -i "s/:remove\(.*\)+=/:remove\1=/"
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Iea6235e7c76e252f4d473652957c2925f6b8845a
|
|
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
|
|
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
|
|
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I3e576e5f9f831a4f73cf9d048859f37d471f3ed7
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I62cf17d414795e91d673d468a196d4f0a6c0a71b
|