summaryrefslogtreecommitdiff
path: root/meta-facebook
AgeCommit message (Collapse)AuthorFilesLines
2023-02-28meta-facebook: enable Busybox wall for flashyPatrick Williams2-0/+2
The `flashy` utility expects `wall` to be present. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ie765bc47f1e872f34ae092cfb0a57ef88ab17f87
2023-02-24meta-bletchley: use gpiomon instead of polling gpio valuePotin Lai3-32/+22
Remove gpio polling of switch detect pin in power-ctrl and motor-init. Use gpiomon and timeout commands instead to improve performance and timing issue. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I9e1eb26b070a57f424b341890733dc63c170bf79
2023-02-24meta-facebook: busybox: add timeout commandPotin Lai2-0/+6
Add extra config to enable timeout command feature. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I0754e75856794d9a6cb3ec476d6ad5dd88d97739
2023-02-16meta-facebook: bletchley: reduce mapper-waitsPatrick Williams2-42/+30
There is not much value in the mapper-wait invocations since the providing service is well-known. Wait directly on the service. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I9be5922229778faedf3cd6b85fba928866583672
2023-02-14treewide: remove Logging service dependenciesBrad Bishop1-2/+0
The logging service is dbus activated now, so explicitly declaring dependencies is unnecessary and redundant. Change-Id: I87d61fbeb04a251caf88aa86cb21631e7fc2a1c4 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2023-02-14meta-phosphor: mapper cleanupsBrad Bishop1-2/+0
Mapper ships with systemd unit and dbus configuration files now, so remove unnecessary bitbake classes. Mapper is dbus-activated, so obmc-mapper.target dependencies are redundant and no longer necessary. obmc-mapper.target is the last target in obmc-targets, so remove that recipe and any dependencies on it. Change-Id: I59ff8dcd480b4449d0ef59422ba80c12848dade9 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2023-02-13Revert "meta-bletchley: phosphor-network: temporary revert SRCREV"Patrick Williams1-2/+0
This reverts commit 7503b441052575d49568f80c236a228edc8d2aae. There is a proposed fix now in phosphor-networkd as change Icf18e3d80f6d1f8c4567603fe51d774e9090334c. Remove the bletchley-specific SRCREV in prep for the merge of this commit. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ida0b77f5bf0cc6a94e2341888b545a4226e59bf8
2023-02-10meta-bletchley: add 99-platform-initPotin Lai2-0/+25
Add 99-platform-init to archive following items 1. Disable FMC_WDT2 AST2600 use FMC_WDT2 to archive ABR feature. Disable FMC_WDT2 before systemd start. 2. Detect boot flash source Write boot source into /run/media/slot 0: boot from primary 1: boot from alternate Tested result: - In u-boot, FMC_WDT2 is enabled and timer is counting down ``` U-Boot 2019.04 (Nov 10 2022 - 00:12:58 +0000) SOC: AST2620-A3 RST: WDT1 SOC PCI RST: #2 RST: External FMC 2nd Boot (ABR): Enable, Dual flashes, Source: Primary Set FMC_WDT2 timer reload value to 0x0BB8 eSPI Mode: SIO:Enable : SuperIO-2e Eth: MAC0: RMII/NCSI, MAC1: RMII/NCSI, MAC2: RGMII, MAC3: RMII/NCSI Model: Facebook Bletchley BMC DRAM: already initialized, 2 GiB (capacity:2048 MiB, VGA:0 MiB, ECC:off) MMC: Loading Environment from SPI Flash... SF: Detected w25q01jv with page size 256 Bytes, erase size 4 KiB, total 128 MiB *** Warning - bad CRC, using default environment In: serial@1e784000 Out: serial@1e784000 Err: serial@1e784000 Model: Facebook Bletchley BMC Net: Could not get PHY for eth2: addr 0 Failed to initialize PHY: -19 eth-1: ftgmac@1e670000 Hit any key to stop autoboot: 0 ast# md.l 0x1e620064 2 1e620064: 00000001 0b560bb8 ......V. ``` - After BMC boot into Linux OS, FMC_WDT2 is disabled ``` bletchley login: root Password: root@bletchley:~# devmem 0x1e620064 0x00000000 root@bletchley:~# devmem 0x1e620068 0x0BB80BB8 ``` - check boot source (primary) ``` root@bletchley:~# cat /run/media/slot 0 ``` Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: If5e41dd9745ba5c4ec45637772136e847954c56e
2023-02-10meta-facebook: bletchley: board-type-checker: use /var/lib for sensor configPatrick Williams1-1/+5
phosphor-virtual-sensors now supports loading the config json from a `/var/lib` as high precedence over `/usr/share` and since `/var` is a writable file system, we should prefer this location for adding the config symlink. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Idfddd091e126b812ac68bbd06acc626ee137e437
2023-02-10meta-facebook: enable static no-rootfs image for bletchleyPatrick Williams1-0/+1
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Iab4db4492e15f0c637fb5f9c0ba7fd93a4471d4c
2023-02-09meta-facebook: systemd: remove watchdog overridePatrick Williams2-17/+0
Watchdog enable is now handled at a meta-phosphor level. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I47f3e9c33ba4b010e703ed550e6b2801c8d08337
2023-02-09meta-bletchley: phosphor-state-manager: fix BMC not readyPotin Lai1-0/+8
Temproary workaround for fixing some services stuck on waiting non-existing objecj path. phosphor-reset-chassis-running@{}.service |--> mapper-wait@-org-openbmc-control-power%i.service Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I61130d03b7cabc3cc94c662062b19526b4a50a8a
2023-02-09meta-bletchley: apply power restore policy when host ac-onPotin Lai1-0/+1
We need to apply power restore policy when host ac from off to on. Add post command in host-ac-on@.service to restart phosphor-discover-system-state@.service. Tested results: ``` root@bletchley:~# busctl set-property xyz.openbmc_project.Settings /xyz/openbmc_project/control/host6/power_restore_policy xyz.openbmc_project.Control.Power.RestorePolicy PowerRestorePolicy s xyz.openbmc_project.Control.Power.RestorePolicy.Policy.AlwaysOn root@bletchley:~# busctl get-property xyz.openbmc_project.Settings /xyz/openbmc_project/control/host6/power_restore_policy xyz.openbmc_project.Control.Power.RestorePolicy PowerRestorePolicy s "xyz.openbmc_project.Control.Power.RestorePolicy.Policy.AlwaysOn" root@bletchley:~# obmcutil -i=6 chassisoff root@bletchley:~# obmcutil -i=6 state CurrentBMCState : xyz.openbmc_project.State.BMC.BMCState.Ready CurrentPowerState : xyz.openbmc_project.State.Chassis.PowerState.Off CurrentHostState : xyz.openbmc_project.State.Host.HostState.Off BootProgress : xyz.openbmc_project.State.Boot.Progress.ProgressStages.Unspecified OperatingSystemState: xyz.openbmc_project.State.OperatingSystem.Status.OSStatus.Inactive root@bletchley:~# obmcutil -i=6 chassison root@bletchley:~# obmcutil -i=6 state CurrentBMCState : xyz.openbmc_project.State.BMC.BMCState.Ready CurrentPowerState : xyz.openbmc_project.State.Chassis.PowerState.On CurrentHostState : xyz.openbmc_project.State.Host.HostState.Running BootProgress : xyz.openbmc_project.State.Boot.Progress.ProgressStages.Unspecified OperatingSystemState: xyz.openbmc_project.State.OperatingSystem.Status.OSStatus.Inactive ``` Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I57dd159725dd75da651beec2c72410c187f9fc17
2023-02-08meta-bletchley: phosphor-pid-control: remove fan configurationPotin Lai2-350/+1
Move fan configuration to EM. This commit relies on the commit listed below: https://gerrit.openbmc.org/c/openbmc/entity-manager/+/59525 Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: Ie04abd9b64af8270ee74d764fd687d83daf67676
2023-02-06meta-bletchley: update led manager configPotin Lai1-32/+109
Update led manager config to match the new LED behavior table. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: Ie7db06c4cff51455fe970e7bee8e4ae935a4a225
2023-02-04fb-ipmi-oem: srcrev bump 41027b9698..5a4537b897Andrew Geissler1-1/+1
Delphine CC Chiu (1): usb-dbg: Support sensor out of threshold message present Kumar Thangavel (1): IPMI OEM BIC - Get Bios Flash Size Potin Lai (1): configs: bletchley: fix post_desc.json issue Change-Id: I26cdd92818c4092e60a38661fa50fbee295d195f Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-02-03meta-facebook: rsyslog: update packageconfigPotin Lai1-1/+1
Add klog and imfile support required by internal rsyslog configuration. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I97769996fdcf285f3776e3b18dbb85ec0e1ed617
2023-02-03meta-facebook: support hardware watchdogBonnieLo-wiwynn1-4/+4
Append exiting systemd config under recipes-core for all facebook platform. Tested: tested and verified on greatlakes platform. Change-Id: If723c65de35995e545393c577c41979c11399373 Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
2023-02-03meta-facebook: phosphor-ipmi-config: update channel_configPotin Lai1-0/+143
Fill up the unconfigured channels and keep it as "RESERVED" Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: Iba4a2ea26720ce32f8f19de422f34f452134e608
2023-02-02greatlakes: Fix NIC OTP 12V off bugDelphine CC Chiu3-10/+12
BMC should 12V-off GL once NIC temperature exceed UNR threshold, the OTP triggered but didn't link to the 12V-off service. The root cause is the pkg_postinst was for ${PN} (i.e., phosphor-fan), but meta-facebook only required "sensor-monitor", which is the sub-package in phosphor-fan. We also fixed some misspelling and deleted unused statement for folder creation. Note: - Customized meson config for specific project were also be added. Test Case: - When NIC temperature touch the UNR threshold, all four slot should 12V Off. --pass Signed-off-by: Bonnie Lo <Bonnie_Lo@wiwynn.com> Change-Id: Ic86f0571ce8fbfeef3774cbed9036b58a48d638f
2023-02-02meta-facebook: Move phoshphor-state-manager scripts into subdirectoryDelphine CC Chiu16-23/+23
Description: Move scripts under /usr/libexec/ to /usr/libexec/phosphor-state-manager/. Test Case: Check file path under BMC console. Change-Id: Ia4178b62653e90dd6e0ae567df693f03468257bb Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
2023-02-02meta-facebook: Add service for power control initialization in ↵Delphine CC Chiu3-1/+46
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>
2023-02-02meta-facebook: phosphor-state-manager: support host power reset and chassis ↵Delphine CC Chiu7-4/+128
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>
2023-02-02greatlakes: support SoL on multi-hostDelphine CC Chiu19-0/+270
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>
2023-01-26fb-ipmi-oem: srcrev bump 8ee95d69fb..41027b9698Andrew Geissler1-1/+1
Bonnie Lo (2): IPMI OEM Get BIC GPIO State IPMI set CurrentHostState property Change-Id: I4e5b875df6fb42a2c1b5076365c7b4b094a6225f Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-01-25meta-facebook: disable LDAPPatrick Williams1-3/+5
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
2023-01-25meta-facebook: greatlakes: fix overriding issue in DEFAULT_TARGETS variableKarthikeyan Pasupathi1-3/+4
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>
2023-01-13yocto:mickledore: add support for new yocto layerAndrew Geissler5-5/+5
Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I8e54833ac78e540e9dd5011533d53ff9a3af6763
2023-01-09meta-bletchley: phosphor-network: temporary revert SRCREVPotin Lai1-0/+2
Temporary revert phosphor-network SRCREV back to the commit sync-mac feature still working. Tesed result: ``` root@bletchley:~# journalctl -u xyz.openbmc_project.Network Jan 09 05:01:04 bletchley systemd[1]: Starting Phosphor Network Manager... Jan 09 05:01:05 bletchley phosphor-network-manager[539]: Force sync enabled, check VPD for MAC Jan 09 05:01:08 bletchley systemd[1]: Started Phosphor Network Manager. Jan 09 05:01:09 bletchley phosphor-network-manager[539]: Refreshing the objects. Jan 09 05:01:09 bletchley phosphor-network-manager[539]: Unable to get the value of Network[DHCP] from /etc/systemd/network/00-bmc-eth0.network Jan 09 05:01:09 bletchley phosphor-network-manager[539]: Unable to get the value of Network[IPv6AcceptRA] from /etc/systemd/network/00-bmc-eth0.network Jan 09 05:01:16 bletchley phosphor-network-manager[539]: Unable to get the value of DHCP[UseDNS] from /etc/systemd/network/00-bmc-lo.network Jan 09 05:01:16 bletchley phosphor-network-manager[539]: Unable to get the value of DHCP[UseNTP] from /etc/systemd/network/00-bmc-lo.network Jan 09 05:01:16 bletchley phosphor-network-manager[539]: Unable to get the value of DHCP[UseHostname] from /etc/systemd/network/00-bmc-lo.network Jan 09 05:01:16 bletchley phosphor-network-manager[539]: Unable to get the value of DHCP[SendHostname] from /etc/systemd/network/00-bmc-lo.network Jan 09 05:01:16 bletchley phosphor-network-manager[539]: Refreshing complete. Jan 09 05:01:16 bletchley phosphor-network-manager[539]: Wrote networkd file: /etc/systemd/network/00-bmc-eth0.network Jan 09 05:01:17 bletchley phosphor-network-manager[539]: Set the MAC on Jan 09 05:01:17 bletchley phosphor-network-manager[539]: Removing the match for ethernet interfaces Jan 09 05:01:19 bletchley phosphor-network-manager[539]: Sending networkd reload Jan 09 05:01:19 bletchley phosphor-network-manager[539]: Done networkd reload root@bletchley:~# busctl introspect xyz.openbmc_project.Inventory.Manager /xyz/openbmc_project/inventory/system/chassis/bmc/ethernet xyz.openbmc_project.Inventory.Item.NetworkInterface NAME TYPE SIGNATURE RESULT/VALUE FLAGS .MACAddress property s "C01850F1D796" emits-change writable root@bletchley:~# ifconfig eth0 eth0 Link encap:Ethernet HWaddr C0:18:50:F1:D7:96 inet addr:10.10.11.126 Bcast:10.10.255.255 Mask:255.255.0.0 inet6 addr: 2019:7::c218:50ff:fef1:d796/64 Scope:Global inet6 addr: fe80::c218:50ff:fef1:d796/64 Scope:Link inet6 addr: 2018:5::c9d3/128 Scope:Global UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:98845 errors:0 dropped:30955 overruns:0 frame:0 TX packets:267 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:9565630 (9.1 MiB) TX bytes:32516 (31.7 KiB) Interrupt:34 ``` Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: Ie32fd892a711f74a52f3a51e9e20634f69c416e7
2023-01-06fb-ipmi-oem: srcrev bump e1ff81fa6c..8ee95d69fbAndrew Geissler1-1/+1
Potin Lai (2): oemcommands: update getIPObject() search method storagecommands: fix getSensorMap() error Change-Id: Iaf318e816df70873fded8298f75200251bb7c579 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2023-01-06meta-bletchley: add usbmux utilityPotin Lai2-0/+126
There is a issue caused by switching USBMUX GPIO pin slowly. For example, when user set USBMUX GPIO pin to sled1, the USBMUX will first switch to sled3 and then switch to sled1 if there is a long interval between each gpioset command. 1. USBMUX is set to off initially USB2_SEL0_A = 1 USB2_SEL1_A = 1 USB2_SEL0_B = 1 USB2_SEL1_B = 1 2. Set USBMUX to sled1 USB2_SEL0_A = 0 USB2_SEL1_A = 0 USB2_SEL0_B = 1 USB2_SEL1_B = 1 ``` root@bletchley:~# gpioset $(gpiofind USB2_SEL0_A)=0 --> USBMUX set to sled3 first. root@bletchley:~# gpioset $(gpiofind USB2_SEL1_A)=0 --> then USBMUX set to sled1. ``` Add bletchley-usbmux-util to set USBMUX GPIO pins to selected sled, and avoid USB issues with slow mux switching. Change-Id: Id2a40b5908c1286929648cc433cb426a9c493e3a Signed-off-by: Potin Lai <potin.lai@quantatw.com>
2023-01-06meta-facebook: add phosphor-discover-system-state service for each hostPotin Lai1-0/+1
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
2023-01-06meta-bletchley: kernel: enable Aspeed OTPPotin Lai1-0/+2
Enable Aspeed OTP driver to support OTP programming by Aspeed OTP tool. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I9b393342fd34d3cc16fc1f6fdc8a2d1fc9b9e65d
2023-01-05meta-bletchley: add bletchley health monitor configurationPotin Lai3-12/+45
Add bletchley health monitor configuration. Remove reboot.target from CPU critical threshold. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I9bff26dd47591f4384797fd91a6cea3307227190
2023-01-04meta-facebook: add wget to imagesPatrick Williams1-0/+1
Bletchley PE requested wget be added to the images. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I0e685134071619fdb9e132a7687994ff61fb186e
2023-01-04meta-facebook: remove net-ipmiPatrick Williams1-0/+1
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
2023-01-04meta-facebook: dbus-sensors: remove unused PACKAGECONFIGPatrick Williams1-0/+6
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
2023-01-04meta-facebook: add strace to all imagesPatrick Williams1-0/+1
strace is a pretty helpful debug tool. Add it to all our images. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I09dca2b6ab76535371dd55e39105eba853aa0f66
2023-01-04meta-facebook: add tmux to all imagesPatrick Williams1-0/+3
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
2023-01-04meta-facebook: add curl to all imagesPatrick Williams1-0/+1
Bletchley PE requested we add curl to the images. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Id94fbe5d086e8b045726da0403306860d9ed88f2
2022-12-16fb-ipmi-oem: srcrev bump e9baaff143..e1ff81fa6cAndrew Geissler1-1/+1
Karthikeyan Pasupathi (1): usb-dbg: Handled error for host selector position Patrick Williams (1): reformat with latest settings Change-Id: I257cf273016245ab6648ab62d3eb7c78305d37c5 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2022-12-15meta-facebook: Add support for phosphor-gpio-monitorKumar Thangavel4-0/+73
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
2022-12-12meta-facebook: add virtual sensors configurations for greatlakes platformBonnieLo-wiwynn1-10/+187
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>
2022-12-09meta-bletchley: phosphor-nvme: increase smbus error retryPotin Lai1-0/+1
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
2022-12-05meta-bletchley: add model setting for frontpanel boardPotin Lai2-45/+12
Add updating correct frontpanel board model, so EM can probe with correct configuration. Tested: - Main source: "Bletchley_FPB_HDC1080" ``` root@bletchley:~# busctl get-property xyz.openbmc_project.Settings \ > /xyz/openbmc_project/inventory/system/chassis/frontpanel \ > xyz.openbmc_project.Inventory.Decorator.Asset Model s "Bletchley_FPB_HDC1080" ``` - 2nd source: "Bletchley_FPB_SI7021" ``` root@bletchley:~# busctl get-property xyz.openbmc_project.Settings \ > /xyz/openbmc_project/inventory/system/chassis/frontpanel \ > xyz.openbmc_project.Inventory.Decorator.Asset Model s "Bletchley_FPB_SI7021" ``` Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I22b2641d72f5a6dc0674704b5959019e990c5eae
2022-12-05meta-bletchley: Add FRU related interface for frontpanel boardPotin Lai2-1/+24
Because bletchley does not have physical eeprom to store FRU data, we add an interface for frontpanel to store board information, so that EM can base on the properties to probe correct configuration. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I4d884edbeb4ccfc0f1a6f37082f0bb6d5940758a
2022-12-03meta-bletchley: remove SLED LED dependency with host poweron poweroffPotin Lai3-13/+0
LED behaviors are implemented in bletchley-host-state-monitor, remove LED dependency from host-poweron and host-poweroff service. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: Ifdf4c0c588b5a3e1403e928b772a5c3fa3d5fc29
2022-11-29meta-bletchley: use BootMode property to select host boot mode.Potin Lai2-3/+45
Use BootMode to decide whether host should boot to Normal, Recovery or DFU mode. - xyz.openbmc_project.Control.Boot.Mode.Modes.Regular: Normal mode - xyz.openbmc_project.Control.Boot.Mode.Modes.Safe: Recovery mode - xyz.openbmc_project.Control.Boot.Mode.Modes.Setup: DFU mode Tested results: - Host normal on (xyz.openbmc_project.Control.Boot.Mode.Modes.Regular) root@bletchley:~# busctl set-property xyz.openbmc_project.Settings \ > /xyz/openbmc_project/control/host6/boot \ > xyz.openbmc_project.Control.Boot.Mode BootMode s \ > xyz.openbmc_project.Control.Boot.Mode.Modes.Regular root@bletchley:~# obmcutil -i=6 poweron root@bletchley:~# power-ctrl sled6 status On - Host boot recovery (xyz.openbmc_project.Control.Boot.Mode.Modes.Safe) root@bletchley:~# busctl set-property xyz.openbmc_project.Settings \ > /xyz/openbmc_project/control/host6/boot \ > xyz.openbmc_project.Control.Boot.Mode BootMode s \ > xyz.openbmc_project.Control.Boot.Mode.Modes.Safe root@bletchley:~# obmcutil -i=6 poweron root@bletchley:~# power-ctrl sled6 status Recovery - Host boot DFU (xyz.openbmc_project.Control.Boot.Mode.Modes.Setup) root@bletchley:~# busctl set-property xyz.openbmc_project.Settings \ > /xyz/openbmc_project/control/host6/boot \ > xyz.openbmc_project.Control.Boot.Mode BootMode s \ > xyz.openbmc_project.Control.Boot.Mode.Modes.Setup root@bletchley:~# obmcutil -i=6 poweron root@bletchley:~# power-ctrl sled6 status DFU Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I1eac8fb74f3702d9ce0ab9180b9d7e2e26df81f7
2022-11-29meta-bletchley: reduce burst times of motor-init-calibrationPotin Lai1-1/+1
We notice the motor-init-calibration service spend more than 20 seconds for one run, which doesn't match the stop conditions with current service setting(more than 5 runs in 90 sec). Becaused motor-init-calibration services keep restart, it caused BMC CPU remain high utilization and trigger reboot action by phosphor-health-monitor. Reduce StartLimitBurst to 2 to ensure the service stops after attempt 2 failed. Tested results: root@bletchley:~# journalctl -u motor-init-calibration@6.service | grep systemd Nov 16 22:18:00 bletchley systemd[1]: Starting Motor Initialize for sled6... Nov 16 22:18:25 bletchley systemd[1]: motor-init-calibration@6.service: Main process exited, code=exited, status=1/FAILURE Nov 16 22:18:26 bletchley systemd[1]: motor-init-calibration@6.service: Failed with result 'exit-code'. Nov 16 22:18:26 bletchley systemd[1]: Failed to start Motor Initialize for sled6. Nov 16 22:18:27 bletchley systemd[1]: motor-init-calibration@6.service: Scheduled restart job, restart counter is at 1. Nov 16 22:18:27 bletchley systemd[1]: Stopped Motor Initialize for sled6. Nov 16 22:18:27 bletchley systemd[1]: Starting Motor Initialize for sled6... Nov 16 22:18:46 bletchley systemd[1]: motor-init-calibration@6.service: Main process exited, code=exited, status=1/FAILURE Nov 16 22:18:46 bletchley systemd[1]: motor-init-calibration@6.service: Failed with result 'exit-code'. Nov 16 22:18:46 bletchley systemd[1]: Failed to start Motor Initialize for sled6. Nov 16 22:18:47 bletchley systemd[1]: motor-init-calibration@6.service: Scheduled restart job, restart counter is at 2. Nov 16 22:18:47 bletchley systemd[1]: Stopped Motor Initialize for sled6. Nov 16 22:18:47 bletchley systemd[1]: motor-init-calibration@6.service: Start request repeated too quickly. Nov 16 22:18:47 bletchley systemd[1]: motor-init-calibration@6.service: Failed with result 'exit-code'. Nov 16 22:18:47 bletchley systemd[1]: Failed to start Motor Initialize for sled6. Signed-off-by: Potin Lai <potin.lai@quantatw.com> Change-Id: I45c423deceb3cedd9157a479e0f33f9dbf270b8f
2022-11-28state-management: move target relationship creationAndrew Geissler1-21/+0
The targets are within the phosphor-state-manager repository so the relationship between them should be defined within the corresponding recipe. Adding these to phosphor-state-manager also allows us to remove the duplicate logic in the bletchley layer. Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I8bc789ed25a937ed38840e398dd728782f8f368b