summaryrefslogtreecommitdiff
path: root/meta-ampere/meta-jade
AgeCommit message (Collapse)AuthorFilesLines
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: mtjade: Support host consoles loggerChau Ly9-4/+31
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: I5586d1c634ec0f244069b868bd48b75560520dc1
2022-12-15meta-ampere: mtjade: fix flash BIOS occasional failThang Tran2-30/+49
Before flashing UEFI firmware, the BMC calls "obmcutil chassisoff" to turn OFF the Host and wait 10s before checking if the Host is actually OFF or not. In some cases, 10s is not enough. This will make the flashing script sees the Host is still ON and bypasses the flashing. This commit changes to check Host state each 2s until maximum 60s to avoid above failure. Tested: check below steps 10 times and ensure all done successful: 1. Request to flash SCP firmware via Redfish. 2. Sleep 120s, when CPU is booting (did not jump to OS) 3. Request to flash UEFI firmware via Redfish. 4. Check if the flashing successes Signed-off-by: Thang Tran <thuutran@amperecomputing.com> Change-Id: I403f4b432e53b3b091315612488c50dbb595ea76
2022-12-09meta-ampere: mtjade: fix target dependencyThang Q. Nguyen2-2/+2
Some targets were changed in phosphor-state-manager at commit 86a1ebf9 "move chassis power services to phosphor-state-manager" which makes our dependency incorrect. This commit fixes the target dependency to work with new change Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I2c2b321161db367a86b5c1dc86071abab04f03b9
2022-11-30meta-ampere: mtjade: Support automatic fan controlChau Ly12-0/+867
This commit supports phosphor-fan application for mtjade platform. phosphor-fan-control service controls fan speed following the mapping tables with TS4_Temp, OCP_Temp, nvme_bp_max and nvme_m2_max sensor. phosphor-fan-presence-tach and phosphor-fan-monitor services are fully supported. Signed-off-by: Chau Ly <chaul@amperecomputing.com> Change-Id: I11a598f627d5e261689c2bd9d85ce65f4fc330ea
2022-11-30meta-ampere: mtjade: Change from phosphor-nvme to nvmesensorChau Ly4-127/+1
This commit removes phosphor-nvme implementation in mtjade platform and configures to use dbus-sensors's nvmesensor. Signed-off-by: Chau Ly <chaul@amperecomputing.com> Change-Id: Ib9ce787e34265382a222697fb102fe63b4ba8a03
2022-11-28meta-ampere: fix typo on phosphor-skeleton-control-powerAndrew Geissler1-1/+1
Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: If4608c0520c5cc7f04f82193d7fc2f5841fdbd85
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-24meta-ampere: mtjade: bind smpro driverThang Q. Nguyen2-0/+31
Add script to bind smpro driver when the Host is available but it is not bound before. This helps applications that use smpro driver works. Tested: 1. Do A/C the system. 2. Turn ON the Host 3. Check if smpro nodes are available # ls /sys/bus/i2c/drivers/smpro-core/ 2-004e 2-004f bind uevent unbind Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I6f96dc1f78ab77dae29bdc266949dcf7845de68c
2022-11-18meta-ampere: support Altra Boot Progress handlingThang Q. Nguyen1-0/+3
Handle Altra Boot Progress reported from SCP regiter map by the use of smpro-misc driver. Tested: check boot progress is updated in Redfish for: 1. Reboot Host. 2. IPMI chassis power reset 3. IPMI chassis power cycle 4. IPMI chassis power off, then on 5. WebUI Orderly – OS shuts down, then server reboots 6. WebUI Immediate – Server reboots without OS shutting down Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I9483328ccf5731904d0e6e71074561f7dd743bed
2022-11-18meta-ampere: kernel: enable SSIF, SMPRO, XFSThang Q. Nguyen1-0/+13
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-18meta-ampere: mtjade: remove redundant mtjade stringThang Q. Nguyen5-20/+20
The meta-ampere/meta-jade folder contains features for Mt.Jade platform which might support various chassis. Having :mtjade is redundant and will limit features to work only with "standard mtjade". This commit removes this string so that additional MACHINEs based on Mt.Jade can work. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: If57acd557d678b8834f0c77f98855277e4eee844
2022-10-15meta-ampere: mtjade: enable IPMI SSIFThang Q. Nguyen4-0/+206
Enable IPMI SSIF support for Mt.Jade platform. This also supports to set BMC_OK GPIO when SSIF service starts and unset when SSIF service stops. Tested: 1. Check if ssifbridge.service service starts root@mtjade:~# systemctl status ssifbridge.service | grep Active Active: active (running) since Tue 2022-10-11 02:17:55 UTC; 1h 49min ago 2. From Host OS, check if IPMI SSIF works. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I6b3a764f15c63b45acafdb590c7dfb223bfdd3a3
2022-10-13treewide: remove pointless abstractionsBrad Bishop1-2/+2
All of these abstractions have exactly one implementation. Remove the indirection to improve at a glance comprehension. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Change-Id: I5d701aff6d0876fa3b2d16c841cbdcb0433b221f
2022-10-10meta-ampere: mtjade: correct virtual sensor expressionThang Q. Nguyen1-35/+19
Correct expression to calculate nvme_bp_max and nvme_m2_max sensors in case missing nvmeX sensors Tested: 1. Unplug all NVMe drives, and check if they are all 0 2. Plug some in abitrary slots and check if they have correct values, not n/a Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: If0cc4e05b540394d15ed6bde3f04bcb13887477d
2022-10-06meta-ampere: refactor drivers binder servicesThu Nguyen1-0/+1
Use obmc-power-already-on target to trigger ampere-power-on-driver-binder scripts instead of intergrating code to ampere-host-check service. Use obmc-host-already-running target to trigger ampere-host-on-driver-binder scripts. Add ampere-power-on-driver-binder service. Tested: 1. ampere-power-on-driver-binder scripst should be called when the chassis-power-control pin is triggered and only when the drivers are not bound. 2. ampere-host-on-driver-binder scripts will be called when the host is already on, right after host0-ready. Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com> Change-Id: I02f83d60a603dbc8d214534a13162f504c8c7deb
2022-10-06meta-ampere: mtjade: use phosphor-multi-gpio to handle GPIO eventsThang Q. Nguyen25-173/+97
Change to use phosphor-multi-gpio-monitor to handle all GPIO events from Altra Host. Tested: 1. Run reboot command from Host OS and check if Host can reboot and then boot to OS. 2. Run shutdown command from Host OS and check if PowerState change to Off after complete. 3. Check SCP failover handling. 4. Check PSU Hotswap workaround is applied when hot plugging/unplugging PSUs Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I9797b51facf31672a6d2c9bc7ab7add24d8e06b8
2022-09-30add langdale to compatible layerAndrew Geissler1-1/+1
Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I65febeeec11e6e5b40ee728f42cfbe77023dae1e
2022-09-27meta-ampere: mtjade: enable ipmi-blobsThang Q. Nguyen1-0/+2
Enable phosphor-ipmi-blobs and phosphor-ipmi-blobs-binarystore so that SMBIOS MDR data can be sent from Host. Tested: 1. Run BmcBlobGetCount command $ ipmitool raw 46 128 0xcf 0xc2 0x0 0 cf c2 00 a4 78 01 00 00 00 Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Ib8fe4f92d6e27d0c620aeb301b1dc63901720c9b
2022-09-20meta-ampere: mtjade: handle UID button via phosphor-buttonsHuyLe4-17/+5
Replace Ampere implementation for UID button by the use of phosphor-button. Tested: 1. By default, the UID LED status is OFF. - Press UID button and check if the UID LED is ON - Press UID button again and check if the UID LED is OFF 2. Turn on the UID LED via ipmi command $ ipmitool chassis identify 3. Turn Lit/Blinking/Off UID LED via Redfish: $ curl -X PATCH --user root:0penBmc -H "Content-Type: application/json" -H "If-Match: *" --insecure https://<bmc_ip>/redfish/v1/Systems/system -d '{"IndicatorLED": "Lit|Blinking|Off"}' --> check if the UID LED is ON, blinking or OFF, respectively Signed-off-by: HuyLe <hule@amperecomputing.com> Change-Id: I912e26be827167a201dad5d81be6728101405521
2022-09-12treewide: handle more upstream TEMPLATECONF movePatrick Williams1-0/+0
We also need to move the conf-notes.txt files. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ic44e015c0216b526de4fec277ad42f162bca1f33
2022-09-09treewide: handle upstream TEMPLATECONF movePatrick Williams2-0/+0
The latest poky commit is requiring us to have all of our template configs in a subdirectory instead of directly in the `conf` directory. Without this we end up with errors during setup like: ``` Error: TEMPLATECONF value (which is .../openbmc/meta-facebook/meta-bletchley/conf) must point to meta-some-layer/conf/templates/template-name ``` Fix this by moving all of our template files into the 'default' template subdirectory (following the pattern of poky) and modifying `setup` as necessary to follow. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Iecefde73d55acbb6bc63ae3d68c4311adaf327ae
2022-09-05meta-ampere: mtjade: enable dcache in ubootThang Tran1-0/+1
Currently, the uboot can not jump to Linux kernel due to the watchdog timeout. This commit enables dcache in uboot to speed up jumping from uboot to kernel, it made the kernel is booted successfully. Tested: 1. Linux kernel is booted successfully. 2. User can flash new BMC software in u-boot. Signed-off-by: Thang Tran <thuutran@amperecomputing.com> Change-Id: I17bce6bdea5168e5c261b44df6ccb16e0ef8a3c1
2022-08-15dbus-sensors: change build option of Intel cpu sensorAndrew Geissler1-1/+1
The build option of Intel cpu sensor service in dbus-sensors repository is changed from "cpusensor" to "intelcpusensor". Update the build option in openbmc source to match with that change. dbus-sensors: srcrev bump 0fe0229497..255da6b419 Thu Nguyen (1): cpusensor: Change cpusensor to intelcpusensor Tested: 1. No build errors. Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com> Change-Id: Ib31f7ce3dd7d5ed1bb226eb991459ec0bf233973 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2022-08-05meta-ampere: mtjade: update platform initThang Q. Nguyen2-42/+48
Set PSON to default value in AC power will prevent the Host ON accidentally. This commit also configures some important GPIOs to default value when A/C. Tested: 1. Do A/C power and check if power and host state from "obmcutil status" not Running. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Iba99a2dbef3b48a5d110e92c9167a69a603a8e54
2022-07-25meta-ampere: mtjade: Fix SCP failover handlingchaul.ampere2-2/+5
"BMC_I2C_BACKUP_SEL" was not defined anywhere, so script "ampere_scp_failover.sh" fails to execute and SCP can't switch to the secondary EEPROM to boot in case of failed primary EEPROM firmware. This commit defines BMC_I2C_BACKUP_SEL to 8 in "gpio-defs.sh" , which is gpio B0 Tested: 1. BMC on, Host on, flash good SCP firmware to secondary EEPROM, flash bad SCP firmware to primary EEPROM that simulate SCP authentication failure => Host boots OK with secondary EEPROM Check gpio BMC_I2C_BACKUP_SEL => it will be set to 0 Signed-off-by: chaul.ampere <chaul@amperecomputing.com> Change-Id: Ibb891042deb051f8100f9a88dd3619bce12c181f
2022-07-14meta-ampere: mac-update: validate MAC AddressThang Q. Nguyen3-63/+1
All Ampere developed platforms have BMC MAC Address specified in the FRU EEPROM at Board Extra. This commit moves the script to get MAC Address from FRU EEPROM to common folder so that later platforms can use it. It also adds checking for valid MAC Address before using. Tested: 1. Update BMC MAC Address using IPMI OEM Write BMC MAC Address command. Reboot BMC and ensure the new MAC is used. 2. Write the FRU with invalid value at Board Extra. Reboot BMC and check for BMC still uses old MAC Address Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I29a44a9b4965bea1b6d8d7d55536d25bb0dd924c
2022-07-14meta-ampere: mtjade: fix hostfw update sometime failThang Q. Nguyen1-0/+8
When executing Host UEFI firmware update, the ampere_flash_bios.sh check for pnor partition available. If not, it binds the driver so that can access the device to flash. There is a case that the driver is already bound but no pnor device available. This makes the Host firmware flash fail. This commit adds codes to check for this case and unbind the driver so that the next binding success. Tested: 1. Flash UEFI firmware successful in above case Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I410621cf916d9ae139f420469357e4687ae138ab
2022-07-03meta-ampere: mtjade: fru: remove redundant dimm0/1, cpu0/1Thang Tran2-2/+7
When running "ipmitool fru print" command, the output shows dimm0/1, cpu0/1 without data. This is from the host-ipmid which uses default configuration file to handle "Get SDR"/"Get Device SDR" command, including DIMM0/1, CPU0/1. This commit configures to use mtjade-ipmi-fru.yaml file so that correct FRU information is displayed, preventing the DIMM0/1, CPU0/1 to be reported. Tested: - Check fru information. $ ipmitool fru print --> Console does not display DIMM0/1, CPU0/1 data. FRU data is displayed. Signed-off-by: Thang Tran <thuutran@amperecomputing.com>a Change-Id: Ibd18bfd5656676ccef70608dd5f78b93ab8432fc
2022-06-27meta-ampere: mtjade: fix incorrect bind for bios updateThang Q. Nguyen1-1/+1
With new SPI driver, the path to bind SMC SPI-NOR is changed. Update the path for correctness. Tested: 1. Flash BIOS firmware via Redfish succesfully Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Ia9cf47f059ef928ec7049a535c668689f3df5cab
2022-06-21phosphor-host-ipmid: srcrev bump 33d90e182d..0e7a8af0e5Andrew Geissler1-2/+2
Harvey.Wu (2): dbus-sdr: fix SEL record Generator ID to fit SPEC dbus-sdr: fix the vector size in sdrWriteTable and sdrStatsTable Jian Zhang (1): Add data types to Value to extend setDbusProperty Vernon Mauery (1): fix header install Willy Tu (4): cleanup: Remove all warning errors for the Meson build support build: Add meson build for phosphor-host-ipmi build: move all shared_library/module to library with version suffix build: Remove dynamicsensor library if it is not enabled Change-Id: I92503c6625d1ec2bf88c0a28afac9b4eeb8fbd75 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com> Signed-off-by: Willy Tu <wltu@google.com>
2022-06-21meta-ampere: mtjade: enable button with long press 5sThang Q. Nguyen1-0/+2
Enable Power and Reset button support with configuring long press time for Power button is 5s. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I940f4549b9a1c50ebc96dc6a063cea3bad95daa8
2022-06-03meta-ampere: refine code structureThang Q. Nguyen14-123/+58
Restructure Ampere recipes to better reuse existing resource for multiple platforms later. Tested: 1. Compile without error. 2. Run regression test for related features without error. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I5d034d21273b99be651f20dc2eb5549c1092f079
2022-05-16meta-ampere: mtjade: update virtual sensorsThang Q. Nguyen1-10/+57
Update equation for total_power to fix the issue not calculated correctly when 1 PSU device is not plugged. This change also updates the NVMe virtual sensors that needs for FAN control. Tested: 1. Unplug 1 of PSU and check if total_power has correct value. 2. Check NVMe virtual sensors Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I7e3021b9e6462da5dba55a28951b5c9ddb128de6
2022-05-12meta-jade: Clean up phosphor-isolation distro featureJoel Stanley1-1/+0
As mtjade uses the newer u-boot tree based on v2019.04, the phosphor-isolation distro feature does not do anything. The backdoors closed by the distro feature are now closed by default, so no opt-in is required. Change-Id: I779caf74f138715e0a49febbdb09d4ef78e33e0c Signed-off-by: Joel Stanley <joel@jms.id.au>
2022-04-30treewide: remove meta-perlPatrick Williams1-1/+0
The only recipes which use content from meta-perl are openpower machines: ``` meta-openpower/recipes-bsp/pdata/pdata_git.bb: libxml-libxml-perl-native \ meta-yadro/meta-nicole/recipes-phosphor/logging/openpower-esel-parser_git.bb: libxml-libxml-perl-native \ ``` Remove meta-perl from the bblayers of every layer except openpower machines. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I51f1a8fbfbe879295c64d2339fc115dbd8823681
2022-04-22treewide: drop unused meta-security layerBrad Bishop1-1/+0
This was added with cde0f094f for libseccomp, but shortly after that upstream moved libseccomp from meta-security to core (241c7d2e6). As such, meta-security is no longer used or required. Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Change-Id: I371e54b11f6336720dfc6edf0ef733d22b7fb4f2
2022-04-12treewide: Update BB_DISKMON_DIRS useGeorge Liu1-4/+4
Per [1][2], Yocto is starting to deprecate ABORT and has replaced the "ABORT" action in BB_DISKMON_DIRS entries with "HALT". 1. https://wiki.yoctoproject.org/wiki/Inclusive_language 2. https://git.yoctoproject.org/poky/commit/?id=4f77505d94a8f6260933f457e9848d1d2fa98ce5 Tested: Built obmc-phosphor-image successfully and eliminate the following warnings: ``` WARNING: The BB_DISKMON_DIRS "ABORT" action has been renamed to "HALT", update configuration ``` Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: If57d0ded9fac41e23b31b01e2a0e309ac7388148
2022-03-18meta-ampere: remove creating host@%i-on fileThang Tran1-1/+0
The /run/openbmc/host@0-on file is created/removed by phosphor-state-manager, platform should not touch to this file. Host-on-host-check service is called by obmc-host-startmin target, it is not depended on the /run/openbmc/host@0-on file. This file is only used during BMC booting phase. Tested: 1. Turn off/on the host 100 times. 2. Check the sel log. ipmitool sel list 3. BMC does not display any log relate to over threshold. 4. Check the host-on-check service is called before host'state is running Signed-off-by: Thang Tran <thuutran@amperecomputing.com> Change-Id: I1ec90a00a7685007e31b89876ff2a5d57191fc53
2022-03-18meta-ampere: move IPMI power soft to commonThang Q. Nguyen3-37/+0
Ampere processor uses ACPI graceful shutdown which is triggered from BMC via a GPIO pin named SHD_REQ. This feature is common for all Ampere platforms. This commit moves the configuration for IPMI power soft to meta-ampere/meta-common so other platforms can use without changes Tested: 1. Do A/C power the system and boot the Host to OS. 2. Run ipmitool chassis power soft 3. Check if the Host is graceful shutdown. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I8a3425c859c4be077075e6a51f12d50283eacdf7
2022-03-17meta-ampere: fix parameters in power control servicesThang Tran2-3/+2
When HOST is turned on/off, ampere-gpio-poweroff/on@.service is called. They should not call op-wait-power-off/on@.service, just wait for them. Remove redundant "Requires" and "Wants" in service files. Add timeout to obmc-flash-host-bios@.service to avoid blocking power control. Tested: 1. Turn on/off the HOST power. 2. Check journalctl log to ensure that op-wait-power-off/on@.service are not called by ampere-gpio-poweroff/on@.service. Signed-off-by: Thang Tran <thuutran@amperecomputing.com> Change-Id: If9403891b2e57c73c4fd8e0ea1b24314b7b0c3f8
2022-03-12meta-ampere: mtjade: fix PCIE AER when Host shutdownsThang Q. Nguyen3-3/+6
Switch OCP power source from 3V3 to standby too early causes PCIE AER error on the OCP adapter. This commit changes to switch the OCP power source via OCP_MAIN_PWREN in power control application to avoid the issue. Tested: 1. Run IPMI chassis power soft command and check if no PCIE AER error generated. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I9dbc621390fb04fa818a04aeaac53b6b729e9e75
2022-03-01meta-ampere: use watchdog status to check A/C powerThang Q. Nguyen1-2/+2
With the removal of u-boot patch that adds resetreason to /proc/cmdline no information to check if the BMC is booted from A/C power or cold reboot. This commit removes the dependency of resetreason on the phosphor-discover-system-state application and updates the A/C power check in the ampere_platform_init.sh script to use information from /sys/class/watchdog/watchdog0/bootstatus. Tested: 1. Check power restore policy feature work well. 2. Check ampere_platform_init.sh works properly in both A/C and D/C power. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I4f2e7a241f9ddebf21b2b8c021b9ce87a1c8b26c
2022-02-26treewide: remove image-prelink bbclass usagePatrick Williams1-2/+1
Upstream has removed the image-prelink bbclass[1], so remove it from any local.conf.sample that still has it enabled. 1. https://git.openembedded.org/openembedded-core/commit/?id=857baaf9e3d181ca18264e85d90b899fd94acff9 Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I70f42f8816f5dea207fcf5c34837d6796b3f6bb6
2022-02-26treewide: support yocto kirkstone releasePatrick Williams1-1/+1
* Deprecate N-1 release (hardknott). * Enable N+1 release (kirkstone). Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I39e027e02dab64b4390b46ffbd9c299c858f403e
2022-02-19meta-ampere: enable Host check GPIO interfaceThang Q. Nguyen2-40/+0
Enable host-gpios option in phosphor-state-manager to support Host state checking when BMC reboots. Also updateampere_host_check.sh to check Host State via GPIO interface Tested: 1. Define host0-ready into device tree. 2. Power On the Host. Reboot BMC, then check if CurrentHostState shows Running. 3. Power OFF the Host. Reboot BMC, then check if CurrentHostState shows Off. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Signed-off-by: Thang Tran <thuutran@amperecomputing.com> Change-Id: I0331dfa340eb5bba201475ab9cada42e0946c8f8
2022-02-18treewide: fix append/remove directivesPatrick Williams2-3/+3
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
2022-01-22meta-ampere: mtjade: fix services start failThang Q. Nguyen2-6/+11
Fix ampere-mac-update and ampere-gpio-handling starts failure, including: - Update ampere_update_mac.sh to recheck if the first MAC Address reading fail. Also fix incorrect checking if setting new MAC Address success or not. - Fix typo in SCP failover service. Tested: 1. Check if the ampere_update_mac.service starts succesfully. 2. Check if no error report from iS0_scp_auth_failure Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: I6c03e352d8d51030d04cd303e438835e5b724afe
2022-01-21meta-ampere: mtjade: switch to use u-boot 2019.04Thang Q. Nguyen3-8/+10
u-boot 2016.07 does not work well with 64MB SPI-NOR layout, which has the following issues: - Incorrect environment variable configuration which makes fail to boot to kernel and has fw_setenv/fw_getenv commands not work. - Even update the patch in meta-phosphor to fix above issue, still has issue with setting environment variable in Linux which makes factory reset failure each 2 times. This commit changes to use u-boot 2019.04 to fix above issue. Tested: 1. Do factory reset and check if the BMC can boot to kernel. 2. Trigger factory reset via Redfish multiple times (6 times) and verify if the factory reset action can be executed at all times. Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Ibb269d96a2e2b509aeccbeeaa130aad57093d139
2022-01-18u-boot: Specify u-boot package for AST2500 machinesJoel Stanley1-0/+4
This sets u-boot to the package containing the v2016.07-aspeed-openbmc branch. This ensures there will be no change if the default changes in the future. Change-Id: Iea12e1691dbdda34a3f95d6d0862add0b15bcf37 Signed-off-by: Joel Stanley <joel@jms.id.au>