summaryrefslogtreecommitdiff
path: root/meta-fii/meta-kudo/recipes-kudo
AgeCommit message (Collapse)AuthorFilesLines
2021-12-06meta-fii/meta-kudo: Add ampere-host-reset.serviceCharles Boyer4-5/+28
1. ampere-host-power-cycle.service will force off host followed by force on. 2. ampere-host-reset.service will pulse the sysreset pin Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com> Change-Id: I4736c82f8f462a21650d5abba55c036a05da8e25
2021-11-24meta-fii/meta-kudo: Remove unused host reset servicesCharles Boyer3-37/+0
The ampere-host-reset.service and ampere-host-force-reset.service are not used. Host is reset with ampere-host-power-cycle.service. Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com> Change-Id: Ie6c58c5c9d1179d79e5c5be307a37bdb263172ff
2021-11-22meta-fii/meta-kudo: Fix syntax in ampere-hostctrl.bbCharles Boyer1-2/+1
The new yocto syntax was missing from, https://gerrit.openbmc-project.xyz/c/openbmc/openbmc/+/46289 Also removed an extra empty line from the recipe. Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com> Change-Id: Id7684b24ecd2a51e7e2a28c10a76b61519ea0872
2021-11-19foxconn-ipmi-oem: srcrev bump 35c1ac40e4..da2cf0d2b0Andrew Geissler1-1/+1
Avenash Asai Thambi (1): Add boot count into motherboard eeprom and clear command Change-Id: Iedc41527654482c2a45c414ec3c778a451199c93 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2021-11-13meta-fii/meta-kudo: Fix syntax error ampere_power_util.sh fileavenash.thambi1-1/+1
The ampere_power_util.sh file has a syntax error of missing double quotes in a echo print. This is a follow up to the gerrit commit https://gerrit.openbmc-project.xyz/c/openbmc/openbmc/+/48477 Signed-off-by: Mustafa Shehabi <mustafa.shehabi@fii-na.com> Signed-off-by: avenash.thambi <avenash.thambi@fii-usa.com> Change-Id: Iff734c390507201c2d539dc6468de09a888623c7
2021-11-12meta-fii/meta-kudo: Support bios verifyCharles Boyer2-0/+4
Adds support for BIOS verification process to execute before issuing a host reset and boot from AC power. Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com> Change-Id: I31c019a5ea8cb296749f671df15c658a7e2a3b9f
2021-11-11meta-fii/meta-kudo: Add power button supportCharles Boyer2-1/+26
Adds support for Power On for power button press and Power Off when holding the power button. This is a temporary and rudimentary method to handle button presses. The intention is to eventually use phosphor-buttons with Nuvoton support. Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com> Change-Id: Iede64f89c716102a688880280c11ff7f3068021b
2021-11-11meta-fii/meta-kudo: Customize chassis power cycle actionCharles Boyer3-1/+22
Instead of a host or chassis restart for a Chassis PowerCycle, have both the BMC and host perform a hard reset. This requires changes to phosphor-state-manager to add the handling of xyz.openbmc_project.State.Chassis.Transition.PowerCycle. Currently, there is handling for On and Off, but not PowerCycle. Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com> Change-Id: I3d934c47a68899b2fd8fcba966f8d92c97554a77
2021-11-09meta-fii/meta-kudo: Fix power control states and timingCharles Boyer5-65/+79
Summary of changes: 1. Adjust start time of xyz.openbmc_project.State.Chassis.service to fix initial chassis state 2. Add shutdown ack service 3. Remove reset ack service 4. Remove heartbeat mode 5. Remove sysreset pin control from power_control.exe 6. Remove all phosphor-fan services that caused power off during a system reset 7. Adjustments to ampere_power_util.sh (See below) ampere_power_util.sh: 1. Use GPIO instead of dbus for host state 2. Wait 3 seconds before checking power status for power on 3. Wait 6 seconds before checking power status for power off 4. Have force_off act GPIO while power_off sets Chassis state 5. Graceful shutdown acts GPIO 6. Check host status before issuing system reset 7. Set Watchdog Expire Action to None before power off and reset Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com> Change-Id: Ie2720ee60d489c4160165c6827a78a400ae4d30b
2021-11-09meta-fii/meta-kudo: Fix LPI nvparmCharles Boyer1-1/+1
Corrects the nvparm to disable LPI mode NV_SI_CPU_LPI_FREQ_DISABLE for SCP 1.07 and newer. Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com> Change-Id: I43f4d090fae3ff202834d39c9161802f20e396e1
2021-11-09meta-fii/meta-kudo: Remove MON_BMC_ALIVE assertionsCharles Boyer1-9/+1
The other system components are not using this the MON_BMC_ALIVE signal, so it no longer requires assertion. Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com> Change-Id: Ieedc2650d230dc3eff8c2d76d2f1ce70b68919cb
2021-11-04Partially revert "treewide: remove obmc-system-mgmt feature"Patrick Williams1-0/+2
The obmc-system-mgmt feature is currently used in the image to trigger inclusion of a virtual-provider which provides a number of packages many systems need. Partially revert the removal of this feature so that the outcome is: 1. The empty obmc-phosphor-sysd package is still removed. 2. By default the 'obmc-system-mgmt' feature is included, unless specifically exempted. 3. All EVB platforms remove the 'obmc-system-mgmt' feature since they have no system they are managing. This partially reverts commit 060ad3ff7fcc30aff78a9e504efee9d8fa0d4526. Tested: * Built `bletchley` and confirmed `packagegroup-fb-apps-system` and `entity-manager` are present. ``` entity-manager armv7ahf-vfpv4d16 0.1+git0+6bf41588ab-r0 packagegroup-fb-apps-system all 1.0-r1 ``` * Built `witherspoon` and confirmed `packagegroup-op-apps-system` and `pdbg` are present. ``` packagegroup-op-apps-system noarch 1.0 pdbg arm1176jzs 3.3 ``` * Ran `bitbake -p` on `evb-ast2600` to confirm the undefined `virtual-obmc-system-mgmt` is not being included in the image. Change-Id: I8b7804d5101cc84a2c57473b3f85672bf7767c67 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
2021-10-26treewide: remove obmc-system-mgmt featurePatrick Williams1-2/+0
Every machine layer treats 'system-management' as either part of a package-group or removes the feature. The sample implementation in meta-phosphor is a do-nothing shell script (and up until recently was a Python script). There appears to be no useful purpose to this feature as a stand-alone concept, so remove it. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I20ca1fa8ff3cb01cac2d07d4ded84e0769e4514b
2021-09-28meta-fii/meta-kudo: Modify kudo-fw.sh with updated nvparm addressXP Chen1-2/+3
1. Based on newer version of Ampere's nvparm spec updated nvparm Signed-off-by: XP Chen <xiao-peng.chen@fii-na.com> Change-Id: I47a338fcb483c5c22f3a9799088c54de1a9a5153
2021-09-22meta-fii/meta-kudo: Modify init_once.sh to separate EVT/DVT HW GPIOsXP Chen1-33/+49
Signed-off-by: XP Chen <xiao-peng.chen@fii-na.com> Change-Id: I97ee9317df93480f68cd69ee3462f970970ba885
2021-09-02meta-phosphor: change systemd.bbclass to match upstream override syntaxPatrick Williams1-7/+7
Upstream bbclasses changed to typically use the `:${PN}` override syntax, including the SYSTEMD_ variables. Change our systemd.bbclass to do the same for consistency and perform a tree-wide variable replacement. Spot checked by building bletchley and witherspoon and checking some of the SYSTEMD_LINK directives on installed packages under qemu. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I20a9dd809bff8af8759488734f80486c7228c6eb
2021-09-01meta-fii/meta-kudo: Support SMBIOSCharles Boyer1-0/+1
Enable support for smbios-mdr using IPMI BLOB transport protocol, and disable the cpuinfo feature. Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com> Change-Id: I035889f3ce0792a06c85a8ea713a19e24c24e546
2021-08-27meta-fii/meta-kudo: Modify kudo-fw.sh SCP EEPROM update methodsXP Chen2-26/+42
1. Update both primary and backup SCP EEPROMS when updating the BIOS Modify the 2. Switch the SCP mux correctly on EVT and DVT hw Signed-off-by: XP Chen <xiao-peng.chen@fii-na.com> Change-Id: Idd07f4b57bfd2eaa13795f60b653915f1cf7c161
2021-08-26meta-fii/meta-kudo: Modify kudo.conf to use kudo bmc-updateMustafa Shehabi1-1/+1
Add PREFERRED_PROVIDER_virtual/bmc-update in kudo.conf to fix bmc_update build conflict with gbmc's bmc_update. Signed-off-by: Mustafa Shehabi <mustafa.shehabi@fii-na.com> Change-Id: Ideb5cbde0f4c94c7197984c1641223da1583111d
2021-08-20meta-fii/meta-kudo: Add kudo-chassis to packagegroupMohaimen Alsamarai1-2/+2
Adding chassis management packages Signed-off-by: Mohaimen Alsamarai <mohaimen.alsamarai@fii-na.com> Change-Id: I334f925414815961fd9e6dcb309a52c14d670f03
2021-08-18meta-fii/meta-kudo: follow the new Yocto override syntax changeMohaimen Alsamarai13-55/+55
Changing the syntax for various yocto files ie. (_ to :) changes to bb, bbappend and conf files. Signed-off-by: Mohaimen Alsamarai <mohaimen.alsamarai@fii-na.com> Change-Id: If25577ee9d98398c1a1ab7f85a0373c46af70245
2021-08-03meta-fii/meta-kudo: Use phosphor-state-managerMohaimen Alsamarai10-0/+284
Added 1. phosphor-state-manager 2. ampere-hostctrl 3. Nuvoton chip and skeleton GPIO support in obmc-libobmc-intf 5. obmcutil support Signed-off-by: Mohaimen Alsamarai <mohaimen.alsamarai@fii-na.com> Change-Id: I2628a0cab35a9be5afd702cc6269932c0c901e6a
2021-07-30meta-fii/meta-kudo: update kudo utilityLancelot Kao2-12/+52
1. Update to support DVT board 2. Support command for console redirection 3. Disable 2nd CPU clock when only 1 CPU is installed 4. Set HPM_STBY_RST_N to High to match dcscm spec Signed-off-by: Lancelot Kao <lancelot.kao@fii-usa.com> Change-Id: I300b272587ddc2c7d82aa76196e5db100d02aae2 Signed-off-by: Mohaimen Alsamarai <mohaimen.alsamarai@fii-na.com>
2021-07-28meta-fii/meta-kudo: Fix reading of CPLD versionMohaimen Alsamarai1-2/+2
Fix reading of CPLD versions Signed-off-by: Mohaimen Alsamarai <mohaimen.alsamarai@fii-na.com> Change-Id: I0557905dfa08080da19a0ff836a9014d6e54a9ac Signed-off-by: Xiaopeng Chen <xiao-peng.chen@fii-na.com>
2021-07-27meta-fii/meta-kudo: Modify kudo-fw.sh to check if utilities existXP Chen1-2/+53
Modify kudo-fw.sh for better flash failure detection Signed-off-by: XP Chen <xiao-peng.chen@fii-na.com> Change-Id: Id9418a8fc162e1fa1dc8f8eb0714337785526972
2021-07-27meta-fii/meta-kudo: add adm1266 flashMohaimen Alsamarai2-4/+31
add unbind adm1266 driver to support the flash Signed-off-by: Mohaimen Alsamarai <mohaimen.alsamarai@fii-na.com> Change-Id: I4221e646279b41b84c1d2be89ad3fb0df2220407
2021-06-26foxconn-ipmi-oem: srcrev bump 163226efd0..35c1ac40e4Andrew Geissler1-1/+1
Mohaimen Alsamarai (2): Revert "Add Fii oem command" Add Fii-oem-ipmi command Change-Id: Iac6bd7eb76c65db930ae992890bfff8189217420 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2021-06-25meta-fii/meta-kudo: modify host-powerctrl to start after ssifbridgeXP Chen1-0/+2
Modify the initial script to boot host after the ssifbridge service Signed-off-by: XP Chen <xiao-peng.chen@fii-na.com> Change-Id: I76a4d3b08ebd974edc097e4a52cdfc996dc28452
2021-06-18meta-fii/meta-kudo: Set Ampere CPU LPI_FREQ_DisableXP Chen1-0/+2
Add method to disable LPI mode for Ampere CPU when flash kudo bios Signed-off-by: XP Chen <xiao-peng.chen@fii-na.com> Change-Id: Ieec4b93bceceb9e809482b14686582d0b1cbc971
2021-05-28meta-fii/meta-kudo: kudo tools updateLancelot Kao3-6/+5
update the recipes-kudo files Signed-off-by: Lancelot Kao <lancelot.kao@fii-usa.com> Change-Id: I2ecf2156c0f7533d6d228967f8075cc306af6e00
2021-05-15meta-fii/meta-kudo: fix packagegroup kudo appsMohaimen Alsamarai1-1/+1
Change the provider(kudo-fw) from virtual-obmc-system-mgmt to virtual-obmc-flash-mgmt to avoid overwrite by other package Signed-off-by: Mohaimen Alsamarai <mohaimen.alsamarai@fii-na.com> Change-Id: I55fad7c3a778ce9478313cd5303137622ea6741c
2021-05-14meta-fii/meta-kudo: Fix bb file syntaxXP Chen1-1/+0
1. remove FILESEXTRAPATHS_prepend from kudo-cmd.bb Signed-off-by: XP Chen <xiao-peng.chen@fii-na.com> Change-Id: Ib043c7346a017f970818e5014442dc9e4bceed9d
2021-05-14meta-fii/meta-kudo: Enable PID fan controlĀ Mohaimen Alsamarai1-0/+9
Using phosphor-pid-control Signed-off-by: Mohaimen Alsamarai <mohaimen.alsamarai@fii-na.com> Change-Id: Iea73a96bf4d8921d717fcf335ec463d0054089a5
2021-05-14meta-fii/meta-kudo: Add kudo-cmd a collection of kudo system utilsXP Chen4-0/+874
1. Add Kudo.sh, a script for display and controlling kudo system 2. Add kudo-ras.sh for debug Ampere system errors on kudo system Signed-off-by: XP Chen <xiao-peng.chen@fii-na.com> Change-Id: I5763e0de4be942b9b851b910448d15135ca9db16 Signed-off-by: Mohaimen Alsamarai <mohaimen.alsamarai@fii-na.com>
2021-05-13meta-fii/meta-kudo: Modify kudo system initXP Chen4-10/+11
1. Modify kudo-boot.bb with latest sbin 2. Update init_once.sh with modified GPIO pins 3. Fix install for kudo-lib.sh for kudo-fw.bb Signed-off-by: XP Chen <xiao-peng.chen@fii-na.com> Change-Id: Id91d1325c70721bdc4e9fc7c541d43df33f05806 Signed-off-by: Mohaimen Alsamarai <mohaimen.alsamarai@fii-na.com>
2021-05-06meta-fii/meta-kudo: fix bb file name to include gitMohaimen Alsamarai1-0/+0
Add _git to fii-ipmi-oem bb file file Signed-off-by: Mohaimen Alsamarai <mohaimen.alsamarai@fii-na.com> Change-Id: Iec68d1f9eebbe9a0aa51d675579012e4ffac2af1
2021-05-06meta-fii/meta-kudo: add fii-ipmi-oem commandLancelot Kao2-0/+27
1. Support PCIe bifurcation information 2. Support BIOS boot count Signed-off-by: Lancelot Kao <lancelot.kao@fii-usa.com> Change-Id: I2e9560bae7cd1dc1be680bfb9ef91917aced50e2 Signed-off-by: Mohaimen Alsamarai <mohaimen.alsamarai@fii-na.com>
2021-05-06meta-fii/meta-kudo: configure kudo system during bmc bootLancelot Kao6-11/+92
1. do initialize during BMC boot Signed-off-by: Lancelot Kao <lancelot.kao@fii-usa.com> Change-Id: I5d3ff526a973152a96d00433eb86f7d7dd59e2d3 Signed-off-by: Mohaimen Alsamarai <Mohaimen.Alsamarai@fii-na.com>
2021-05-03meta-fii/meta-kudo: add misc configurationLancelot Kao5-0/+89
1. add the hotswap-power-cycle 2. add the entity-association-map 3. add the phosphor-ipmi-blobs-binarystore Signed-off-by: Lancelot Kao <lancelot.kao@fii-usa.com> Change-Id: Ieea8f21a35c81ed066eedab0c8264494b743f3bb Signed-off-by: Mohaimen Alsamarai <mohaimen.alsamarai@fii-na.com>
2021-04-13meta-fii/meta-kudo: Support for the NCSI interfaceLancelot Kao1-0/+1
1. support the NCSI interface Signed-off-by: Lancelot Kao <lancelot.kao@fii-usa.com> Change-Id: I345d59e5ea527be344b5e53b64d62ef54f72c868 Signed-off-by: Mohaimen Alsamarai <Mohaimen.alsamarai@fii-na.com>
2021-04-13meta-fii/meta-kudo: use gbmc MAC configurationLancelot Kao1-0/+1
1. Uses gbmc mac configure Signed-off-by: Lancelot Kao <lancelot.kao@fii-usa.com> Change-Id: I5be8c415152983d9d6792d38ed42fe3ae0de9017 Signed-off-by: Mohaimen Alsamarai <Mohaimen.alsamarai@fii-na.com>
2021-04-13meta-fii/meta-kudo: support the scp update featureLancelot Kao6-0/+99
1. add kudo-scp-update package to support scp update Signed-off-by: Lancelot Kao <lancelot.kao@fii-usa.com> Change-Id: I30e23ad270b87f52dcbf5fae54ada5b8a846612a Signed-off-by: XP Chen <xiao-peng.chen@fii-na.com> Signed-off-by: Mohaimen Alsamarai <Mohaimen.alsamarai@fii-na.com>
2021-04-13meta-fii/meta-kudo: support the cpld update featureLancelot Kao7-1/+99
1. add kudo-cpld-update package to support cpld update Signed-off-by: Lancelot Kao <lancelot.kao@fii-usa.com> Change-Id: Idb0f676ac5a8cc214d65135924431d02bf971c75 Signed-off-by: XP Chen <xiao-peng.chen@fii-na.com> Signed-off-by: Mohaimen Alsamarai <Mohaimen.alsamarai@fii-na.com>
2021-04-13meta-fii/meta-kudo: support the bmc update featureLancelot Kao3-0/+41
1. add kudo-bmc-update package to support bmc update Signed-off-by: Lancelot Kao <lancelot.kao@fii-usa.com> Change-Id: I7889d5219fcf376cd5bbcbc92268104745d2c886 Signed-off-by: XP Chen <xiao-peng.chen@fii-na.com> Signed-off-by: Mohaimen Alsamarai <Mohaimen.alsamarai@fii-na.com>
2021-04-13meta-fii/meta-kudo: support the bios update featureLancelot Kao8-12/+262
1. add kudo-bios-update package to support bios update Signed-off-by: Lancelot Kao <lancelot.kao@fii-usa.com> Change-Id: Ic245828ed3bb0ddf6d7363e7c2c4d3b8b538aa88 Signed-off-by: XP Chen <xiao-peng.chen@fii-na.com> Signed-off-by: Mohaimen Alsamarai <Mohaimen.alsamarai@fii-na.com>
2021-04-09meta-fii/meta-kudo: Add USB-NIC configurationLancelot Kao4-0/+73
1. add USB-NIC functions Signed-off-by: Lancelot Kao <lancelot.kao@fii-usa.com> Change-Id: I1eba438c770c8ccd5794b1184d4a25ef7fbfb0e6
2021-01-30meta-fii/meta-kudo: Add new meta layer for Fii Kudo projectLancelot Kao1-0/+30
First drop for the meta-kudo layer, initial machine configuration to supports Nuvoton npcm730 chip and the Ampere ARM system Tested-by: 1. Load image on the Nuvoton RunBMC CRB 2. Use ipmitool to test the command under BMC console a. ipmitool mc info b. ipmitool sdr c. ipmitool lan print d. ipmitool channel info 1 e. ipmitool user list 1 f. ipmitool chassis status g. ipmitool raw 0x06 0x01 h. ipmitool power status Signed-off-by: Lancelot Kao <lancelot.kao@fii-usa.com> Change-Id: Ic34b77affe0c08e84762ef795f9f06011bd269ce