summaryrefslogtreecommitdiff
path: root/meta-quanta/meta-gbs
AgeCommit message (Collapse)AuthorFilesLines
2020-08-17meta-quanta: gbs: Add tray_powercycle.shBrandon Kim3-7/+32
Fix hotswap-power-cycle.service as well. (From meta-quanta rev: f27143480d654623b6e576b2ce236af3b6f0950d) Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I63e105c27a61475ffc84565a933c7c98bd3d268c Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2020-08-14meta-quanta: gbs: fix the sensor value type of Fan PWM sensorsGeorge Hung1-1/+1
Correct the sensor value type of Fan PWM sensors as uint64_t (From meta-quanta rev: 0f43ced28fd640d132770aa9149664213edef485) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I9bc72eb2b984bb3b28dceb5d62744c469f3e1154 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2020-08-07meta-quanta: gbs: fix p12v voltage GAIN and current thresholdGeorge Hung2-6/+10
1. fix p12v_1/2 input/output voltages GAIN to get the correct value 2. fix p12v_1 output current threshold (From meta-quanta rev: 58c91e5e8ad4e3c916bebbe76c958eafe0254e9e) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I3394a2d33e22068509818e36b9dfd89e553703c5 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-08-07meta-quanta: gbs: fix nvme power control service name issueGeorge Hung1-2/+2
The nvme power control service name for mapper wait should be all lower case (From meta-quanta rev: e2d7195cab61bca8bbc1cfe9f03bb73b5bc97fa9) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Id7bcfa0a1024efd4dff39c58cedd7ccc6b5fd3b0 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-08-06meta-quanta: gbs: add GBS read-margin-temp configGeorge Hung4-37/+16
Since read-margin-temp_git.bb will move to meta-quanta/meta-common, add read-margin-temp bbappend file and move read-margin-temp folder from meta-gbs/recipes-phosphor/fans to meta-gbs/recipes-quanta/fans read-margin-temp_git.bb move to meta-quanta/meta-common: https://gerrit.openbmc-project.xyz/c/openbmc/meta-quanta/+/35277 (From meta-quanta rev: 410c3e900f09aa1f2fee6b155d9987b5510859c6) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I79ff42570dc9422e3c2e90dd95c5d29b01ec1133 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-08-05meta-quanta: gbs: add xml for igps and patch/dts for u-bootGeorge Hung6-4/+518
1.XML: change the SPI speed to 19Mhz 2.U-boot: dts/pinctrl: add GBS dts/pinctrl support Nuvoton u-boot srcrev bump adb4ac1af3...6870e66f6b: https://gerrit.openbmc-project.xyz/c/openbmc/meta-nuvoton/+/34756 3.modify u-boot environment partiions offset for GBS (From meta-quanta rev: 705d71a8a0ee00f89f06c95601aa1375a440611a) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I47960d63b557f6de1c9d84b290094253f4ffba58 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-08-04meta-quanta: gbs: add kernel config and driversGeorge Hung6-0/+1013
1. set kernel config for GBS machine 2. add AMD CPU temperature hwmon driver 3. add seven segment display drivers (From meta-quanta rev: d9f9d7eb3809821b07887c2adf4e45103582eefa) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: If2f42e43e043ea277a455a208968927b7053d2c0 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-08-04meta-quanta: gbs: fix sensor value type and hwmon patch issuesGeorge Hung3-67/+73
Since the sensor value type had been changed to double, we have to modify the sensor value type to double and remove the scale in sensor YAML config and also update the patch for hwmon fix for this changing Change sensor type to double: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-dbus-interfaces/+/11739 hwmon fixes for the sensor type changing: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-hwmon/+/34481 https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-hwmon/+/34983 (From meta-quanta rev: a661c1683e19abf70429fd263dde8f63f1b188b0) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ifdfe45c1119e0cc5d0e0fb180a91aada87631405 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-31meta-quanta: gbs: add sel-loggerGeorge Hung1-0/+5
Add sel-logger for IPMI SEL log (From meta-quanta rev: 382efcfa85932abce877e6a7e268dac7f5362246) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Iadc7cd5edef57aa0875c146935ad85129525f668 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-28meta-quanta: gbs: add GBS IPMI configGeorge Hung3-0/+31
Set GBS IPMI configurations: 1. device id 2. entity-map (From meta-quanta rev: c2cff3602441072e98da8127edf55a6364001746) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Idf3062bd78844590ea5f5b9830887728086e2b36 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-24meta-quanta: gbs: install the essential packages to the imageGeorge Hung1-0/+23
Install the essential packages to the image for GBS machine (From meta-quanta rev: fc79982f61df69521191243df81340466f6c28fc) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I64fd08ecbf83fe8cacc3ae06e01642638ee8f2ac Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-23meta-quanta: gbs: expose more GPIO signals as IPMI SDRGeorge Hung18-102/+174
1. monitor more GPIO signals gpio_net_name / gpio_number: ['SATA0_PRSNT_N']=5 ['HSBP_CABLE_PRSNT_BUF_N']=57 ['FAN_BRD_CABLE_PRSNT_BUF']=58 ['HSBP_P12V_STBY_CABLE_PRSNT']=69 ['PE_SLOT0_PRSNT_N']=120 ['PE_SLOT1_PRSNT_N']=121 2. add these GPIO signals to the sensor YAML config (From meta-quanta rev: de864a90b91c72a9d31a36688d744a12926a57b3) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ie39512763757e222ca386349a4c45af135500d65 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-23meta-quanta: gbs: add GBS system initial scriptGeorge Hung4-0/+506
system initial script: 1. get MB/HSBP/Fan boards REV/SKU ID 2. read FRUs on PE slots 3. reset PHY 4. SATA power enable 5. check HSBP/Fan board cables present 5. verfiy BIOS image 6. Host power on 7. gpio persistence (From meta-quanta rev: 3a9aa27f5ba286922f4d93470f30ac66cd9ff2d6) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ib15171e1828b08b159ff835150ceb4a577fe1a01 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-22meta-quanta: gbs: add YAML paths/whitelist config/watchdog patchGeorge Hung3-0/+235
1. set gbs YAML config paths for sensors and FRUs 2. add gbs IPMI whitelist config 3. add pre-timeout interrupt patch for IPMI watchdog commands (From meta-quanta rev: fee51df037779d09b18d2ae0e7c864182d40c43c) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I06decf7f95ebd25153cefa7a12be45bbde63aee6 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-22meta-quanta: gbs: add the option for setting locally administered bitGeorge Hung1-0/+1
Add USBLAA setting to make users decide if it needs to set locally administered bit to usb-network (From meta-quanta rev: efd879105a917315abc9ab26c7eff45b6f8ca66f) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I3a6afd88d053a26699a10d3afe841dc8aba70286 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-18meta-quanta: gbs: rename fan2/3/4 to fb_fan0/1/2George Hung6-31/+31
Change the sensor name of fans: fan2 -> fb_fan0 fan3 -> fb_fan1 fan4 -> fb_fan2 (From meta-quanta rev: 43bbb292c0d151841db415802849df965f6151ce) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: If81cf92c50da512986344b31ba20d93af6dcf061 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-15meta-quanta: gbs: add detect fan fail serviceGeorge Hung3-0/+106
When detecting fan fail, set other fans full speed (From meta-quanta rev: fe75a9e492d94088d5d70b9cf5bce24e47898b2f) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I764c9d90f551475de773dfc563763112127bde73 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-15meta-quanta: gbs: add x86-power-control supportGeorge Hung1-0/+4
system power control change to use x86-power-control (From meta-quanta rev: ccd3f9d0a83d372df01076d53e5f7ba656d370bb) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I46acde7ef48394e742f371d09a28a16e1154c38a Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-15meta-quanta: gbs: add pid controller with configGeorge Hung9-0/+696
1. add pid control with fan table config 2. add reboot control service to set fan duty to expected default value before pid control up 3. initial read-margin-temp with json file and the script waits related hwmon sensor could monitor (From meta-quanta rev: b67a01a728b268b9aa61ebde63354ad1a6f46bdd) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I5ae6f5d163dbaee8839bf5222bb650483531e68a Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-15meta-quanta: gbs: add sensors and fru yaml configGeorge Hung4-0/+1562
Create configuration layer to store sensors and fru yaml (From meta-quanta rev: 79846fd70d9056dfb1582f6d571b72cca3cbbfab) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Id0a2bd5931ee6761e59497be6ff7af62f42995f3 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-15meta-quanta: gbs: add ipmi watchdogGeorge Hung6-0/+437
the upstream watchdog lose some command parameters and implementation we reference Intel-BMC repo[*1] apply patches for normal execute with x86-power-control [*1]: https://github.com/Intel-BMC/openbmc/tree/intel/meta-openbmc-mods/meta-common/recipes-phosphor/watchdog (From meta-quanta rev: 230aee7e93f0e4873dc1e76a929e794559155cb5) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ib4e94948210d6d2948ab5983c962220810db45e8 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-10meta-quanta: gbs: NVMe SSD power control for GBSGeorge Hung1-0/+19
add NVMe SSD power enable/disable DBus for sensors and allow host to set SSD power Note: Need to set gpio-line-names in kernel dts for SSD power enable/disable (From meta-quanta rev: 41dd1473c5fc9eef12366ad13c36461010860f5f) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Iab1fefc7c51176cf62b7d238e2de3837148eaebd Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-10meta-quanta: gbs: add GBS Entity Association MapGeorge Hung2-0/+45
Add entity association map for Google OEM IPMI command (get entity name) Tested: For example, get entity name, "fan0": ~# ipmitool raw 0x2e 0x32 0x79 0x2b 0x00 0x06 0x1d 0x00 79 2b 00 06 05 2f 66 61 6e 30 (From meta-quanta rev: 52ce287bfcb8c7a4cdeb07fcd80903af5a0dd26b) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I173da270c29745518293133597a5a389d17bf1ce Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-10meta-quanta: gbs: add hwmon sensorsGeorge Hung17-0/+1036
Define the configuration files of the related sensors and test pass 0001-lev-add-poweron-monitor-feature.patch In-Review: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-hwmon/+/28181 0002-lev-add-sensors-slow-readings.patch In-Review: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-hwmon/+/24337 (From meta-quanta rev: a66f2b941cede5fc15fe0d6d56ca2ac9352fdf77) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: If7f767cbd952cde593e03d30c45572a21cc7c960 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-06-30meta-quanta: gbs: initialize MAC address and enable USB NetworkGeorge Hung5-0/+39
MAC address: initialize MAC address for all network interfaces USB-Network: enable usb0 link-local address auto configuration (From meta-quanta rev: dd269ed023f6b29f7621aa5778808f7c477645f8) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I57d975276f41172668017f117ad48262a8edcf0c Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-06-24meta-quanta: gbs: check CPLD versionGeorge Hung3-0/+159
Read CPLD version by i2c bus and dump to file Tested: Check /run/cpld0.version file (From meta-quanta rev: 895ca7cf8514321c1000f914dd4fa96638d39904) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I371a70878f09a3d1ee5fed8a2926ed739ce30adf Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-06-12meta-quanta: gbs: add ipmi fru eeprom configGeorge Hung4-0/+35
Add GBS related fru eeprom path and id (From meta-quanta rev: 904b35a20462dca720a48c225c5a193a3888e408) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I1e8b76d6c5f48b85ad0482857b083d8843c05e39 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-06-12meta-quanta: gbs: add kcs device and 7segGeorge Hung3-0/+12
1. The GBS's host communicates with BMC by KCS1 2. add 7seg for post code led (From meta-quanta rev: 5f7b8501379a73b230d7982a219b33669a32cdd2) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I0f619c914022d32348447c29132098a1b046247b Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-06-12meta-quanta: gbs: boot status led actionGeorge Hung3-0/+73
The sys_boot_status LED would be set blinking until host post done. When host post done, the action of sys_boot_status would be set on Note: 1. LED action is set in led.yaml under "gbs-led-manager-config" directory 2. sys_boot_status LED gpio is set in kernel dts (From meta-quanta rev: 961e0f5890d3bc7b25491a024a694ea9ed01cb70) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ia2f5ff923b8dc6a7eda31d8d37e63a31d6d62028 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-06-12meta-quanta: gbs: detect SlimSAS cable presenceGeorge Hung9-0/+146
Add gpio configuration for SlimSAS cable0~3 and detect cables connected or not (From meta-quanta rev: 09b8cd98a953ef96fabd7bc1c8d090bd02c53d88) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ifee5ebf1a1055943ade8defce6be63b690bea8d2 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-06-12meta-quanta: gbs: inband bmc/bios image updateGeorge Hung12-0/+286
gbs-bmc-update and gbs-bios-update packages do inband bmc/bios image update via Nuvoton PCI mailbox Tested: Set PCI mailbox memory space as writable ~# sudo setpci -d 1050:0750 04.B=02 bmc update: ~# sudo burn_my_bmc --command update --interface ipmipci --image image-bmc --sig image-bmc.sig --type image bios update: ~# sudo burn_my_bmc --command update --interface ipmipci --image image-bios --sig image-bios.sig --type bios (From meta-quanta rev: 85d9f2a992421ca981ac11c6227ceb3531a3bb1a) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I1a73f724c4cf16636c460d20c6efd409eac4e80f Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-06-12meta-quanta: gbs: customize whitelist and time settingsGeorge Hung3-0/+15
1. set "RestrictionMode" to whitelist as default 2. modify time setting to make ipmi command "sel time set" can set host time (From meta-quanta rev: de8d8179ee2ecb7fed31c119b48cc9e40ef31710) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ifa75a283df79082870588c909ecb9693a367e4c8 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-06-12meta-quanta: gbs: add busybox settingGeorge Hung2-0/+4
Add devmem and lsusb commands to busybox (From meta-quanta rev: ffc3435ebaee3efe1e5200f00ae3cca990070f7a) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I819790d7a8c82dd36c7fcbc585193e91c702e5ee Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-06-08meta-quanta: gbs: add LED configurationGeorge Hung2-0/+258
Set GBS related LED actions in yaml file 1. heartbeat 2. sys boot status (bios post done) 3. attention (identify) 4. bmc fault (kernel panic) 5. NVME SSD locate/fault (From meta-quanta rev: 745df9caeb360ce80c9edaf27dc5600b6646e31a) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I1c506687165b60ac29dd6ae7989ded3a5a20c9a7 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-06-08meta-quanta: gbs: add binarystore config fileGeorge Hung2-0/+13
Set eeprom path and offset of the config file (From meta-quanta rev: d60e18101c6ddff8246a964e3cd560a7708f2bfa) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I7ae44086eba26ddd0fe7eca2b5f18cf78401c6f1 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-06-08meta-quanta: gbs: add Hotswap Power Cycle ServiceGeorge Hung2-0/+35
Add a hotswap power cycle service for oem google sys command, "Delay hard reset". Tested: Setting 5 secs delay for delay hard reset: ~# ipmitool raw 0x2e 0x32 0x79 0x2b 0x00 0x05 0x00 0x00 0x00 79 2b 00 03 (From meta-quanta rev: 4f20ff8ff1a9ea91f0e2a4f55ec7a2525bfc8a9a) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ib114ba2c47d652cb9c9999b45b503698e7fc5207 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-06-08meta-quanta: gbs: add configuration of obmc-consoleGeorge Hung3-0/+15
1. Host serial port 1 to BMC UART1 2. modify the udev rules for console config Tested: run obmc-console-client and then can redirect to host console (From meta-quanta rev: b64af2ce0a7d55ee8a765e44788d3c96fb9ba971) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I20a70ff7e3bed278642d7903f1154664f805c20c Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-06-08meta-quanta: gbs: add package groupsGeorge Hung2-0/+36
1. add packagegroup setting(Fan, Chassis, Flash) for GBS 2. remove unused package obmc-ikvm 3. add phosphor-gpio-monitor (From meta-quanta rev: 72cdf91caaca91ebab24f30f37a1a8640fa7cb8e) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I814a6f15e88a8032b0592376aa8cb1316a36f24c Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-05-21meta-quanta: add meta-gbs machineGeorge Hung5-0/+98
The meta-gbs equipped with Nuvoton NPCM730 BMC SoC. Tested: Build GBS image and load on the target hardware (From meta-quanta rev: c679ff6a47362319a59a511d710a116ddd90ca2a) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I5b85609a5c310ce1b7dc13df867b7c230cf59c39 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>