summaryrefslogtreecommitdiff
path: root/meta-ampere/meta-mitchell
AgeCommit message (Collapse)AuthorFilesLines
2023-11-21meta-ampere: mtmitchell: network: use sync-mac for MAC from FRUThang Q. Nguyen4-34/+14
Switch to use phosphor-networkd's sync-mac feature to get and use MAC address from FRU, replacing Ampere approach. Tested: 1. Boot the BMC to Linux and login to console 2. Get BMC MAC address in FRU $ ipmitool fru print 1 | grep "Board Extra" Board Extra : B4:05:5D:E1:01:BC 3. Check eth0 HWaddr with MAC in FRU $ ifconfig eth0 | grep HWaddr eth0 Link encap:Ethernet HWaddr B4:05:5D:E1:01:BC Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Signed-off-by: Khang Nguyen <khangng@amperecomputing.com> Change-Id: Ia31589bf75306ad5a3639cb46a73813957e85e9d
2023-11-14meta-ampere: console: refactor configurationChau Ly7-111/+46
Refactor console configuration for Mt.Jade and Mt.Mitchell to avoid duplication and make the configuration files simpler. Tested: 1. IPMI sol on Mt.Jade and Mt.Mitchell works 2. SOL SSH on Mt.Jade and Mt.Mitchell work for all console ports Change-Id: I68d1a3c6be530ca93f8adc1dd61906ba8b206dc5 Signed-off-by: Chau Ly <chaul@amperecomputing.com>
2023-11-13meta-ampere: mtmitchell: update on-board sensorsThang Q. Nguyen2-11/+197
Add front backplane and other on-board sensors that are available on the Mt.Mitchell DVT board. This commit also updates virtual sensor expression using sumIgnoreNaN and maxIgnoreNaN functions to better handle nan values Tested: 1. Run 'ipmitool sdr list' and check for sensor report 2. Check sensor report from Redfish and WebUI Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Ia2a221929026141dbd6a2482f4017be7fe2026cc
2023-11-11meta-ampere: move packagegroup to commonHieu Huynh3-69/+3
This moves packagegroup to common to be used for all platforms. Tested: - All packages are available on RootFs - ipmi sensor, fru report - Web login - Power control Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com> Change-Id: I87f7ddbd94e9321e452353ed21cacd0f8a4d8f74
2023-10-23meta-ampere: mtmitchell: enable MCTP/PLDMThang Q. Nguyen1-0/+1
Enable MCTP in kernel support with Mt.Mitchell MCTP configuration. Tested: 1. Check for mctpi2c3 in ifconfig command. 2. Check for mctpd.service service started and is in running state. 3. Check for pldmd.service service started and is in running state. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I699e9bc93ae5815b8454a8cc42ec22d4cfd735e1
2023-10-19meta-ampere: mtmitchell: handle power sequence failureHieu Huynh4-1/+132
This commit supports log the power on sequence to analyze power on failure. This would include: - PSU power good monitoring to indicate PSU is powered on. - System power good monitoring to indicate CPU is powered on. Tested: 1. Power on Host, check the Event logs identify the system /redfish/v1/Systems/system/LogServices/EventLog/Entries "Message": "Host firmware boots with 1 Processor", 2. Check the Event logs in case power on failure. Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com> Signed-off-by: Thang Tran <thuutran@amperecomputing.com> Change-Id: I15237d5f6be454b628529fce43424514bf445d53
2023-10-19meta-ampere: mtmitchell: state: remove redundant build optionThang Tran1-5/+0
In the commit 16bb75ab on the openbmc repo, it disables warm-reboot by default, we don't have to disable it again. Tested: 1. Request power reset Host. $ipmitool power reset 2. Reboot target is called. Change-Id: Ie1ed12709c200d358ae4e93e55565ebd1ea68c4f Signed-off-by: Thang Tran <thuutran@amperecomputing.com>
2023-10-19meta-ampere: mtmitchell: correct checking PGOODThang Tran2-23/+6
Currently, in the platform initialization phase, BMC is checking PGOOD gpio via both dbus and "/sys/class/gpio" methods. The "power_control" application is polling PGOOD. Sometimes, "power_control" stops checking the PGOOD's status due to a conflict with platform initialization. It makes BMC can not control the power. This commit removes the conflict between the "power_control" and the platform initialization as below: - Update ampere-platform-init.service to request the platform initialization run before the "power_control". - Update mtmitchell_platform_gpios_init.sh to remove checking PGOOD via dbus. Tested: The platform initialization runs before the "power_control". Turn on/off the host, reboot BMC, AC power work correctly. Signed-off-by: Thang Tran <thuutran@amperecomputing.com> Change-Id: Ic9619f93b8a49c578a8a0d733872a636ec6fc100
2023-10-16meta-ampere: mtjade: update scripts with new gpio linenameThu Nguyen2-14/+0
Mt.Jade GPIO line-names are updated to follow naming convention at https://github.com/openbmc/docs/blob/master/designs/device-tree-gpio-naming.md. This commit updates related scripts to use the correct linenames. Tested: Check below features to work as before: + UEFI and SCP firmware update. + Host power control + Ampere UART mux switch + SCP failover Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com> Change-Id: I080f844047618327042a7742d3fa6423b62be744
2023-10-14meta-ampere: mtmitchell: use standard gpio commandsThang Q. Nguyen6-37/+31
Change to use gpioset and gpioget to set value for output GPIOs and read value for input GPIOs. This commit also corrects GPIO base numbers which are changed in Linux kernel 6.5 Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I802f9d777537ff28f94945006b6582b15523e3a8
2023-10-11treewide: clean up webui selectionPatrick Williams1-1/+0
The webui-vue package is now enabled by default. Clean up all the meta layers to clean up the explicit enablement. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I4895be56c70d2c8666dd96cec18d2c097f0c05a3
2023-09-26linux-aspeed: Move to Linux v6.5Joel Stanley1-1/+1
This moves the OpenBMC kernel to a v6.5 base for ASPEED. The 6.5 kernel moved all 32-bit ARM device trees, so our BMC device tress are now under an 'aspeed' subdirectory. This change means systems must describe the KERNEL_DEVICETREE with the aspeed directory prefix. There are 78 patches in the tree, with 40 of those patches not yet queued for merging in v6.6. The remaining out of tree patches include: Andrew Jeffery (6): dt-bindings: hwmon: pmbus: Add Maxim MAX31785 documentation pmbus (max31785): Add support for devicetree configuration pmbus (core): One-shot retries for failure to set page pmbus (max31785): Wrap all I2C accessors in one-shot failure handlers ARM: dts: aspeed: witherspoon: Update max31785 node ipmi: kcs_bmc: Add a "raw" character device interface Cédric Le Goater (1): /dev/mem: add a devmem kernel parameter to activate the device Eddie James (16): ARM: dts: aspeed: bonnell: Add reserved memory for TPM event log dt-bindings: soc: Add Aspeed XDMA Engine soc: aspeed: Add XDMA Engine Driver soc: aspeed: xdma: Add user interface soc: aspeed: xdma: Add reset ioctl soc: aspeed: xdma: Add trace events i2c: core: Add mux root adapter operations iio: si7020: Lock root adapter to wait for reset eeprom: ee1004: Enable devices on multiple busses dt-bindings: trivial-devices: Add Atmel AT30TSE004A serial eeprom eeprom: ee1004: Add OF matching support leds: pca955x: Refactor with helper functions and renaming leds: pca955x: Use pointers to driver data rather than I2C client leds: pca955x: Optimize probe led selection leds: pca955x: Add HW blink support leds: Ensure hardware blinking turns off when requested Jae Hyun Yoo (1): clk: ast2600: enable BCLK for PCI/PCIe bus always Joel Stanley (14): net: ftgmac100: Ensure tx descriptor updates are visible ARM: aspeed: Add debugfs directory ARM: soc: aspeed: Add secure boot controller support dt-bindings: trivial-devices: Remove Infineon SLB9673 TPM ARM: dts: nuvoton: npmc750-evb: Add default console tpm: tis-i2c: Add more compatible strings leds: pca955x: Revert "Remove the unused function pca95xx_num_led_regs()" arm64: configs: Add Nuvoton NPCM defconfig ARM: configs: aspeed: Add new FSI drivers ARM: config: aspeed_g5: Enable SSIF BMC driver ARM: config: aspeed: Remove FIRMWARE_MEMMAP ARM: config: aspeed: Add Ampere SMPro drivers ARM: config: Add openbmc defconfig ARM: config: openbmc: Add HPE GPX and Nuvoton 7xx Johannes Holland (1): dt-bindings: tpm: Add schema for TIS I2C devices Potin Lai (1): mtd: spi-nor: winbond: Add support for w25q01jvq Change-Id: Ib97af192391af6e71c96fe14e12cfc88c23d7a7d Signed-off-by: Joel Stanley <joel@jms.id.au>
2023-08-17Revert "meta-ampere: mtmitchell: support system firmware hang handler"Thang Q. Nguyen4-84/+0
Polling GPIO every 0.5s might cause system performance degraded. This reverts commit 57fa7921b248f52858a48110d9670c62cea2eff0 to find better solution for this feature. Change-Id: I00adf3cd7b355f260d0687c9a907b2dc45731697 Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com>
2023-08-17meta-ampere: remove GPIO fault checkThang Q. Nguyen3-354/+1
This commit removes scripts to check GPIO fault as they poll GPIOs every 0.25s. Better solution needs to be found for this feature. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Ieef28d7d7f74dc43548c5448706ca8dbcb06ec2e
2023-08-10meta-ampere: mtmitchell: ipmid: enable dynamic-storages-only featureThang Tran1-0/+1
This commit enables dynamic-storages-only to use FRU and SEL commands in the dbus-sdr w/o enabling sensor commands in the dbus-sdr folder. Tested: 1. Users can read/write/edit FRU via ipmitool 2. Users can get the SEL logs via ipmitool. Change-Id: I49eab8ad1cf54ef5c60604c446db153a42c30749 Signed-off-by: Thang Tran <thuutran@amperecomputing.com>
2023-07-29meta-ampere: mtmitchell: support Host Secure Provisioning procedureHieu Huynh1-2/+38
BMC shall assert SPECIAL_BOOT GPIO to the CPU to trigger Host Secure Provision. Then BMC shall reset the system, or turn on the system if it is being OFF. After the host enters Provisioning Boot Mode successfully (or having failure), BMC shall deassert the SPECIAL_BOOT GPIO to LOW. Tested: 1. Flash HostFW with PASS case. - $ ampere_flash_bios.sh spinor.img 1 1 - Host boot with logs: [00:00:00.248,000] <inf> scu_stat: is_special_boot() = 1 [00:00:00.383,000] <inf> SECpro_cert_ext: Assert FW_BOOT_OK [00:00:00.383,000] <inf> SECpro_cert_ext: Deassert FAULT_ALERT [00:00:00.383,000] <inf> SECpro_cert_ext: SEC provision completed \ successfully 2. Flash HostFW with FAULT case. - $ ampere_flash_bios.sh spinor_fault.img 1 1 - Host boot with logs: [00:00:00.253,000] <inf> scu_stat: is_special_boot() = 1 [00:00:00.388,000] <err> SECpro_cert_ext: Invalid version cert 0.0 [00:00:00.388,000] <inf> SECpro_cert_ext: Assert FW_BOOT_OK [00:00:00.388,000] <err> SECpro_cert_ext: SEC provision failed [00:00:00.388,000] <err> SECpro_cert_ext: Sending error on \ FAULT_ALERT 3. Turn off the Host, flash HostFW with PASS case. After flash done, Host boot with logs is the same with step #1. Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com> Change-Id: I546c7ffd80474edf6165e67f1b96eacbedcd0939
2023-07-28meta-ampere: gpio: various fixesThang Q. Nguyen1-0/+1
Remove unused service files and add missing call for ampere-host-reboot@.service. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: If25d92343a23c313705213fba8f13446dcdb933e
2023-07-06meta-ampere: gpio-monitor: move services to meta-commonThang Q. Nguyen5-32/+0
Move services that are used across Ampere platform to meta-ampere/meta-common to prevent duplicate codes. Tested: 1. Compile Mt.Jade and Mt.Mitchell without error. 2. From Host OS run 'reboot' command and check if the BMC handles correctly. 3. From Host OS run 'shutdown' command and check if the BMC handles correctly Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I678d9a19fea0a531ad59d54ea9386cb177af18c6
2023-06-09meta-ampere: mtmitchell: ipmi: support on-board sensor reportHieu Huynh8-4/+779
Support to report sensor information via IPMI for on-board sensors Tested: 1. Check sensor report using IPMI sdr command: $ ipmitool sdr list OutletTemp | 28 degrees C | ok Psu1InletTemp2 | 32 degrees C | ok PcieZoneTemp1 | 30 degrees C | ok Psu0InletTemp2 | 29 degrees C | ok PcieZoneTemp2 | 28 degrees C | ok Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com> Change-Id: Ia38519c79596f65f780fe105ee25e8890825a44f
2023-06-09meta-ampere: mtmitchell: add some helper utilsThang Q. Nguyen5-15/+281
Add some help scripts to help users easier to debug systems from BMC console. Tested: 1. New helper scripts are available from BMC console. 2. Manually check script execution Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Ibe93547d1299768ae8d67440f161c86c29dbb61e
2023-06-09meta-ampere: mtmitchell: Enable IPMI over NCSI interfaceChanh Nguyen1-0/+7
This commit configures the phosphor-ipmi-net to support IPMI via NCSI/eth1 interface. Tested: 1. Plug the NCSI card, boot the BMC and get its IP. 2. Check if IPMI can be reproted via eth1's IP: ipmitool -I lanplus -H NCSI_IP -C 17 -U root -P 0penBmc mc info Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com> Change-Id: Ib5b26cd0e4e82214234bce49272ed767cfba50d3
2023-06-08meta-ampere: hostlogger: configure SOCKET_ID to defaultChau Ly1-1/+1
The obmc-console application now uses "\0obmc-console.default" as the default socket name for a console server. This commit updates hostlogger's ttyS0 port to use SOCKET_ID=default to adapt the requirement. Tested: 1. Check no hostlogger error message from journal log. 2. Check WebUI's SOL console works well. Signed-off-by: Chau Ly <chaul@amperecomputing.com> Change-Id: I8767a6c01922f4aaf074031cfb8a4dacc1889ab0
2023-06-06obmc-console: Convert configs from socket-id to console-idAndrew Jeffery12-12/+12
As of 9a8f30ec5b58 ("obmc-console: Introduce console-id, deprecate socket-id") in obmc-console `console-id` is preferred over `socket-id`. Convert all in-tree configurations to `console-id` to enable removal of support for the deprecated `socket-id` configuration option. Change-Id: Ifd50603c378cfed5eb793b829b8296b7964e4194 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
2023-05-29meta-ampere: fix postinstall scriptlets errorThang Q. Nguyen1-3/+0
Fix compilation error after subtree update: ERROR: obmc-phosphor-image-1.0-r0 do_rootfs: Postinstall scriptlets of ['ampere-sysfw-hang-handler'] have failed. If the intention is to defer them to first boot, then please place them into pkg_postinst_ontarget:${PN} (). Deferring to first boot via 'exit 1' is no longer supported. Tested: 1. Compile Mt.Jade and Mt.Mitchell without error 2. Check ampere-boot-progress and ampere-sysfw-hang-handler work. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I5d692cb4078df05ac20ace34429463ea4e9c18ca
2023-05-12Revert "Add socket-id for the first console"Andrew Jeffery1-1/+1
This reverts commit ec7cab9378f548e94ee4af83946b2583d1fc7194. ec7cab9378f5 ("Add socket-id for the first console") was only a partial fixup of the obmc-console configurations found in the tree. For historical reasons not all platforms that support multiple consoles install a client configuration file for all consoles. Instead they relied on some default behaviour that was removed in obmc-console's 4e7186918599 ("Fixed broken dbus interface for multiple consoles"). Applying the configuration changes in the manner of ec7cab9378f5 ("Add socket-id for the first console") resulted in an asymmetric configuration between the client and server, breaking some SSH SOL instances. As of ae2460d0b8e8 ("obmc-console: Provide a default value for `console-id`.") in obmc-console the requirement to specify `socket-id`[^1] is lifted. Instead, the configuration can choose to override a default value. This restores the original behaviour and unbreaks SSH SOL. [^1]: Now an alias of the `console-id` configuration key Websocket and IPMI consoles remain broken. A fix is under development that also takes a proper approach to supporting multiple consoles in bmcweb, and the same solution pattern can be applied in ipmid. More discussion of the problems involved can be found here: https://amboar.github.io/notes/2023/05/08/happenings-in-obmc-console.html Change-Id: I274284c791758f336da6d6301dc523bac2b5dd69 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
2023-05-11meta-ampere: move ipmi config to commonThang Q. Nguyen1-178/+0
The same channel_config.json and power_reading.json are used across Ampere platforms so move to meta-ampere/meta-common to avoid duplicate. Tested: 1. Check if "ipmitool lan print 1/2/3" works. 2. On Mt.Jade, check if "ipmitool dcmi power reading" works Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I77f401d0b74455c3951fb746f8bea2ddb1c3667b
2023-05-10meta-ampere: obmc-console: various fixesChau Ly1-5/+6
obmc-console configurations are missing some service appending, this commit adds these. Remove socket connection check in ampere_uartmux_ctrl.sh for meta-jade because no socket file is used now in obmc-console. Tested: $ ampere_uartmux_ctrl <uart_port> <mux> Can successfully switch between console header and BMC for host uart ports $ ssh root@<BMC_IP> -p <client_port> Can successfully connect to host console uarts Signed-off-by: Chau Ly <chaul@amperecomputing.com> Change-Id: Iaa0c4d8f9045fc94f6f50822516aaac0b99f088e
2023-05-08meta-ampere: mtmitchell: use power cycle for reset actionsThu Nguyen4-2/+35
AmpereOne POR recommends to use power cycle instead of SYS_RESET for reset actions. This commit changes REBOOT_ACK handling and warm reboot to use power cycles. Tested: 1. "ipmitool power reset" when the host is on power action should similar "ipmitool power cycle". 2. "ipmitool power reset" when the host is off, power action should be bypassed. 3. In host os call "reboot", the power action should be power off then power on (without softoff action before power off). 4. Call "GracefulRestart" and "ForceRestart" from redfish when the host is on the power action should be similar "power cycle" 5. Call "GracefulRestart" and "ForceRestart" from redfish when the host is off, power action should be bypassed. 6. Press "reset" button in the chassis will cause power off then power on the host. Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com> Change-Id: I759623b68018b05d758b181936e0d4624eb03d94
2023-05-08meta-ampere: add fault monitor supportThang Q. Nguyen4-0/+584
Support to detect GPIO, PSU, FAN, ... faults and turn ON/OFF fault LED. Tested: 1. Unplug a PSU and check if Fault LED is turned ON. 2. Unplug a FAN and check if Fault LED is turned ON. 3. Stimulate GPIO fault pattern and check if the BMC can detect Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com> Signed-off-by: Quang Nguyen <quangn@amperecomputing.com> Change-Id: Idfcd32953cf811fbe9299a162f604cb8fd028962
2023-04-21Add socket-id for the first consoleNinad Palsule1-1/+1
This drop adds socket-id for first console. This was left out before but with the new design this parameter is required and enforced by obmc-console code. It is decided to set "socket-id = console0" initially because that is the current path used by bmcweb but in future you can change this value to whatever is appropriate. The console information is now available through the DBUS interface. Each console server register it's object path on DBUS. The leaf node of the object path is used to create a console path. For example in the following console0 the leaf node "console0" is used to make up the console path and the GUI will use console path "/console/console0" to connect to the console. busctl tree xyz.openbmc_project.Console.console0 `-/xyz `-/xyz/openbmc_project `-/xyz/openbmc_project/console `-/xyz/openbmc_project/console/console0 Here is a discord thread where new design was discussed. https://discord.com/channels/775381525260664832/1083551792094249051 Tested: Tested on the rainier system. Related commits: 1) phosphor-dbus-interface: https://gerrit.openbmc.org/c/openbmc/phosphor-dbus-interfaces/+/61486 2) obmc-console: https://gerrit.openbmc.org/c/openbmc/obmc-console/+/62496 3) bmcweb: https://gerrit.openbmc.org/c/openbmc/bmcweb/+/62525 Change-Id: I5fd06f3aac69872a3e5032d592a9b59711795cfe Signed-off-by: Ninad Palsule <ninadpalsule@us.ibm.com>
2023-04-21meta-phosphor: obmc-console: Convert recipe to mesonAndrew Jeffery1-1/+1
Upstream obmc-console now supports the meson build system. I consider the autotools build system deprecated and intend to remove it. Change-Id: Ic8eea195bee0b3bea1cb9418593596ce1aaceeae Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
2023-04-18meta-ampere: mtmitchell: Refactor obmc-console setupChau Ly25-249/+83
This commit refactors obmc-console setup for mtmitchell Tested: 1. Successfully connects to host consoles via ssh sol $ ssh root@${bmc} -p 220* 2. Successfully connects host consoles via ipmi sol $ ipmitool -I lanplus -H ${bmc} -U root -P 0penBmc \ -C 17 sol activate 3. All the host console logs are in /var/log/ Signed-off-by: Chau Ly <chaul@amperecomputing.com> Change-Id: Ia1e6faaa4757e8f478352fd03ed977beeac15200
2023-04-17meta-ampere: shellcheck: fix up source locationsPatrick Williams6-19/+7
Many scripts in meta-ampere had `shellcheck source=/dev/null`, which isn't as useful as putting the real sourced script. Fix up all of these in the meta-layer to point to the right script, which as a side-effect allow a few global-disables to be removed. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Icb43dc76a19edbdada8b4caa6ced57ff07f42d27
2023-04-16meta-ampere: ssifbridge: use drop-in to switch bmc-okThang Q. Nguyen2-0/+14
Instead of overwriting ssifbridge.service to set bmc-ok, use systemd drop-in units instead. Tested: 1. Stop ssifbridge.service service, check if bmc-ok is 0. 2. Start ssifbridge.service service, check if bmc-ok is 1. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I36e065ed84c4c8aa154996d9a31cfc21d0ab5657
2023-04-16meta-ampere: mtmitchell: fix Host is powered OFF when BMC rebootsThang Q. Nguyen1-0/+43
When BMC is rebooted, because PSON_L has pull up to P3V3_STB, it changes its value to HIGH which causes the Host is turned OFF. Add code to check P3V3_STB and recover PSON_L to correct state before setting BMC_RDY. Tested: 1. Turn ON the Host 2. Run BMC reboot stress test and check if the Host is still ON Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Ic1e3a403d2833b3549fa4f08dcce21a27d8e2308
2023-04-10meta-ampere: remove env call from service fileThang Q. Nguyen6-6/+6
We are suppose to use direct executable calls in service files rather than indirections through /bin/env (See Anti-patterns). Tested: - Check related services to work like before Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Idb494ce781fa1bdcac176cd89612e6016e6e04d9
2023-04-03meta-ampere: mtmitchell: handle HIGHTEMP eventsChanh Nguyen5-0/+35
Handle HIGHTEMP assert/deassert GPIO events for both socket 0 and socket 1. Tested: 1. Stop fan monitor service 2. Stress CPU HOST stress-ng.sh 600 5 max 100 4. Wait for S0_SOC_Pkg_Temp exceeds 105 degree and check for event. 5. Turn OFF CPU stress and wait for S0_SOC_Pkg_Temp goes below 105C. Check for deassert event Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com> Change-Id: I7f2528b50c9a04e7c5ccbf56e9d2e04555351bba
2023-03-27treewide: switch '/usr/share' to datadirPatrick Williams1-1/+1
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I8ea79d284356629f5b7b24ad3a99336e9e2e297e
2023-03-08meta-ampere: mtmitchell: platform init: remove some GPIOsThang Q. Nguyen1-2/+0
Remove power-button and reset-button from platform init to avoid GPIO access conflict with phosphor-buttons. Tested: 1. Check power button works. 2. Check reset button works Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I940e62a9c32a7abe232e02843e1b7b6078481b46
2023-02-21meta-ampere: mtmitchell: enable PostCodeHieu Huynh1-0/+2
Enable PostCode from the phosphor-host-postd to support OEM Boot Progress. Tested: 1. Get Boot.Raw tree: root@mtmitchell:~# busctl tree xyz.openbmc_project.State.Boot.Raw `-/xyz `-/xyz/openbmc_project `-/xyz/openbmc_project/state `-/xyz/openbmc_project/state/boot `-/xyz/openbmc_project/state/boot/raw0 Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com> Change-Id: Idfd28d2d6512d7aa63339d5567628797538930b3
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-01-13yocto:mickledore: add support for new yocto layerAndrew Geissler1-1/+1
Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I8e54833ac78e540e9dd5011533d53ff9a3af6763
2023-01-13meta-ampere: mtmitchell: Support host consoles loggerChau Ly26-4/+186
This commit supports phosphor-hostlogger in STREAM mode, to forward the byte stream from obmc-console to rsyslog via the imuxsock module. The logs can be obtained in /var/log/. The logs are rotated by logrotate. The size threshold of cpu console is 256KB and the others are 64KB. Each log is polled every 1 minute to check if its file size exceeds the threshold to rotate it to the new file. Each console can be saved in up to 2 log files. Tested (CPU console): 1. Change the mux of CPU console to BMC $ ampere_uartmux_ctrl.sh 1 2 2. Connect to CPU SOL console $ ssh root@<BMC_IP> -p 2200 3. Execute commands in the CPU SOL console => The console output on CPU SOL console will all be logged to /var/log/obmc-console-cpu.log => The log will be rotated to /var/log/obmc-console-cpu.log.1 if the original log file size exceeds 256KB every 1min poll Signed-off-by: Chau Ly <chaul@amperecomputing.com> Change-Id: I336bde09c4ef61ea68e05bef2c0b4e4298ea7959
2022-11-28rename obmc-op-control-power to phosphor-skeletonAndrew Geissler1-1/+1
This power control implementation is not specific to openpower systems (as seen by the variety of systems including it) so rename it to something more appropriate. This is using code from skeleton which is not ideal but that's a change for another day. Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: Iffe6427b5494558b53cd6f5716a08cce82cb90d8
2022-11-18meta-ampere: kernel: enable SSIF, SMPRO, XFSThang Q. Nguyen1-0/+9
Enable smpro-hwmon/errmon/misc support for Mt.Jade. This commit also enables IPMI SSIF and XFS filesystem support Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Ic9bfb2cbdaa8b873b9bae44da35c7869bc456a3c
2022-11-15meta-ampere: mtmitchell: support system firmware hang handlerHieu Huynh4-0/+89
Monitors GPIOF4 for 1P system and GPION5 for 2P system to detect if system firmware hang. If these GPIOs stop asserting for more than three seconds, BMC will trigger events and reset the system. Tested: 1. Simulate the GPIO that deasserted for more than three seconds. 2. Fail to boot to Host, check the event log is created and system will be reset. Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com> Change-Id: I2c2d5d50e5ebd6d9b9e3435ab1c17393dac1d9cf
2022-11-09meta-ampere: mtmitchell: ipmi-oem: configure bus-address of BMC's FRUThang Tran1-0/+2
This commit configures the bus and address of the BMC FRU device so that IPMI OEM commands can identify such. Tested: 1. Request to update MAC address. ipmitool raw 0x3c 0x01 0x70 0xe2 0x84 0x86 0x76 0xc0 2. Reboot then check MAC address. ip a 3. MAC address is updated as step 1. Signed-off-by: Thang Tran <thuutran@amperecomputing.com> Change-Id: Iad2bd9a5e43268e82f2bdb4413746bdcba45deb2
2022-10-27meta-ampere: mtmitchell: handle overtemp eventChanh Nguyen3-0/+22
Configure gpio monitor to check for OVERTEMP GPIO signals from the Host CPU. Once the event happens, shutdown the Host to avoid hardware damage and log a Redfish event log. Tested: 1. Unplug all FANs and run stress test the Host so that the Temperature can reach 120C. 2. Check if BMC turns OFF the Host when the CPU Temp reaches 120C. Change-Id: Idc2b446023a1ba3476463e5cca28146ae2ead84a Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com>
2022-10-26meta-ampere: mtmitchell: fix WebUI does not workThang Q. Nguyen2-13/+15
Accessing WebUI returns Unauthorize message because no webui-vue available. This commit fixes the issue by enabling webui-vue in packagegroup-obmc-apps. Also fixes for other applications like dbus-sensor, entity-manager. Tested: 1. Browse the BMC IP via WebUI. 2. Check dbus-sensor and entity-manager works Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Icbed54fc5f45683c52a464ac58f701101fc8ccee
2022-10-25meta-ampere: mtmitchell: initial support consolesHieu Huynh8-0/+174
Add CPU console configuration so that users can use CPU console via solssh and IPMI sol. Tested: 1. Connect IPMI sol using "ipmitool sol activate" command via LAN. 2. Connect CPU console from WebUI. 3. Connect to CPU console via solssh: ssh -p 2200 root@<BMC IP> Signed-off-by: Hieu Huynh <hieuh@os.amperecomputing.com> Change-Id: I4a123eca30f1b6d6a702957e332d0b924bd8b3c6