Age | Commit message (Collapse) | Author | Files | Lines |
|
The host watdog feature is based on IPMI watchdog commands.
Disable host watchdog because host on bletchley does not support IPMI.
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I25b3f0ac49543003e3a36c160f6b4c4a0b736887
|
|
pnor flash interface switched from spi-gpio to spi-mem, update the bind
and unbind command in script.
This patch dependes on patch below:
LINK: https://lore.kernel.org/all/20220509151118.4899-3-potin.lai.pt@gmail.com/
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Ib622f7f22dede5f40cf6a5b4cf3df93d5b191ad8
|
|
update gpio line names in bletchley-early-sys-init
this patch depends on the pathcd below:
LINK: https://lore.kernel.org/all/20220509151118.4899-5-potin.lai.pt@gmail.com/
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I0ff7332378f63a812de1e500c196d6eb8ca1cd19
|
|
Ebable regulator configuration
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I7a3a8caa11182ff0daac4e9c650b2a183dd2eed8
|
|
recovery mode only can be triggered when host status is Off
fix the wrong host power status checking when recovery mode triggered
Tested:
[Host status is On]
root@bletchley:~# power-ctrl sled6 status
On
root@bletchley:~# power-ctrl sled6 recovery
Please turn off host before trigger recovery mode
[Host status is Off]
root@bletchley:~# power-ctrl sled6 status
Off
root@bletchley:~# power-ctrl sled6 recovery
Set host6 Recovery mode
SLED6: pressing power button
Motor go forward to press Power button
Power button switch triggered
SLED6: releasing host power button
Motor reverse to initial position successful
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I40f57bd52d896d8e27d1ccec2e1c388986d28810
|
|
fix syntax error in c22 write command
Tested:
- Get switch PHY id by read/write SMI register
root@bletchley:~# mdio-util c22 w 0 0x1c 0x19 0x0000
root@bletchley:~# mdio-util c22 w 0 0x1c 0x18 0x9434
root@bletchley:~# mdio-util c22 w 0 0x1c 0x18 0x9822
root@bletchley:~# mdio-util c22 r 0 0x1c 0x19
0x002b
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Ie65a84c4485beb7f7600b36009027637c5fc7ed1
|
|
Change-Id: Ib6aba45e7a5563c17d0dee221deda9b0254a30be
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
|
|
Enable phosphor-sel-logger to add ability of reading event logs via
Redfish.
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Ib2155fe1ad6e82117915f3b14c0eda591e7e574a
|
|
1. enable `send-to-logger` option in phosphor-sel-logger, handle logs by
Phosphor Log Manager.
2. enable `redfish-dbus-log` in bmcweb to add redfish support for
event logs.
Tested results:
- Redfish
$ curl -u root:0penBmc -k https://10.10.11.203/redfish/v1/Systems/system/LogServices/EventLog/Entries/15
{
"@odata.id": "/redfish/v1/Systems/system/LogServices/EventLog/Entries/15",
"@odata.type": "#LogEntry.v1_8_0.LogEntry",
"AdditionalDataURI": "/redfish/v1/Systems/system/LogServices/EventLog/15/attachment",
"Created": "2022-05-04T06:17:21.948000+00:00",
"EntryType": "Event",
"Id": "15",
"Message": "xyz.openbmc_project.Logging.SEL.Error.Created",
"Modified": "2022-05-04T06:17:21.948000+00:00",
"Name": "System Event Log Entry",
"Resolved": false,
"Severity": "OK"
}
- CLI
root@bletchley:~# obmcutil listlogs
{
"type" : "as",
"data" : [
[
"/xyz/openbmc_project/logging/entry/15",
"/xyz/openbmc_project/logging/entry/16",
"/xyz/openbmc_project/logging/entry/17",
"/xyz/openbmc_project/logging/entry/18",
"/xyz/openbmc_project/logging/entry/19",
"/xyz/openbmc_project/logging/entry/20",
"/xyz/openbmc_project/logging/entry/21",
"/xyz/openbmc_project/logging/entry/22",
"/xyz/openbmc_project/logging/entry/23",
"/xyz/openbmc_project/logging/entry/24"
]
]
}
root@bletchley:~# obmcutil showlog /xyz/openbmc_project/logging/entry/15
{
"type" : "a{sv}",
"data" : [
{
"Id" : {
"type" : "u",
"data" : 15
},
"Timestamp" : {
"type" : "t",
"data" : 1651645041948
},
"Severity" : {
"type" : "s",
"data" : "xyz.openbmc_project.Logging.Entry.Level.Informational"
},
"Message" : {
"type" : "s",
"data" : "xyz.openbmc_project.Logging.SEL.Error.Created"
},
"EventId" : {
"type" : "s",
"data" : ""
},
"AdditionalData" : {
"type" : "as",
"data" : [
"EVENT_DIR=1",
"GENERATOR_ID=32",
"RECORD_TYPE=2",
"SENSOR_DATA=520007",
"SENSOR_PATH=/xyz/openbmc_project/sensors/fan_tach/FAN3_TACH_IL",
"_PID=327"
]
},
"Resolution" : {
"type" : "s",
"data" : ""
},
"Resolved" : {
"type" : "b",
"data" : false
},
"ServiceProviderNotify" : {
"type" : "b",
"data" : false
},
"UpdateTimestamp" : {
"type" : "t",
"data" : 1651645041948
}
}
]
}
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Ie4094c8e20224506474b75ae18ede97adfdd5bb7
|
|
Add libtss2-tcti-device package to support access tpm via device node
/dev/tpm0
Tested Results:
root@bletchley:~# /usr/bin/tpm2_getcap properties-fixed 2>/dev/null | grep -A1 TPM2_PT_FIRMWARE_VERSION_1
TPM2_PT_FIRMWARE_VERSION_1:
raw: 0x7003E
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I67784a34aeffc38c66f98a3c0dbe995bb098394b
|
|
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
|
|
No systems use content from meta-webserver (nginx, apache, etc.), so
remove the clutter from our bblayers.conf.samples.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I89ab5ac8c19cd8aa486a2f42d24dcf68688e2408
|
|
- Virtual_P12V_AUX_HSC_Input_Power
Update calibration equation to adjust HSC Input Power,
According to latest measurement from Power team
update PWR to {68.082,131.899,194.753,256.391,316.721,376.108,433.569,490.850,546.187}
ERR to {0.0425,0.0497,0.0537,0.0555,0.0565,0.0577,0.0587,0.0597,0.0603}
Also update expression format to array of strings for better
readability.
related change:
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-virtual-sensor/+/52975
TESTED on Bletchley:
Virtual_P12V_AUX_HSC_Input_Power is reporting calibrated value from P12V_AUX_HSC_Input_Power:
'busctl get-property xyz.openbmc_project.VirtualSensor /xyz/openbmc_project/sensors/power/Virtual_P12V_AUX_HSC_Input_Power xyz.openbmc_project.Sensor.Value Value'
d 26.9588
'busctl get-property xyz.openbmc_project.PSUSensor /xyz/openbmc_project/sensors/power/P12V_AUX_HSC_Input_Power xyz.openbmc_project.Sensor.Value Value'
d 28.1046
Signed-off-by: Allen.Wang <Allen_Wang@quantatw.com>
Change-Id: If934a3c6a1e5ebb8a9a870202e51953261fb1248
|
|
Setup hardware watchdog timeout to 30 sec by systemd
TESTED : Built the openbmc image for Facebook Bletchley hardware
Check RuntimeWatchdogUSec configured to 30s successfully
'# systemctl show|grep RuntimeWatchdogUSec'
RuntimeWatchdogUSec=30s
Signed-off-by: Allen.Wang <Allen_Wang@quantatw.com>
Change-Id: I56b724a39ba63041ada4f33aac8447334a637816
|
|
Add command to trigger host recovery mode
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I1067c347b975ef531a58e6022e3ef4d9f3eee67a
|
|
1. Add function for checking board revision
2. Because mdio not available at EVT, If it is EVT board, just check
host status by dbus command.
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I87d2b7b01ae9912ed9b4da7a4f0b3bb485c6029b
|
|
Add usb-controller-update script for firmware updating.
Tested results:
root@bletchley:~# systemctl start flash-usb-controller@3.service
root@bletchley:~# systemctl status flash-usb-controller@3.service
○ flash-usb-controller@3.service - Flash usb controller image on SLED 3
Loaded: loaded (/lib/systemd/system/flash-usb-controller@.service; static)
Active: inactive (dead)
Apr 22 02:52:52 bletchley systemd[1]: Starting Flash usb controller image on SLED 3...
Apr 22 02:52:54 bletchley usb-controller-update[3915]: Bind mtd node success, path: /dev/mtd7
Apr 22 02:53:01 bletchley usb-controller-update[3937]: [293B blob data]
Apr 22 02:53:01 bletchley usb-controller-update[3915]: Erase flash block done
Apr 22 02:53:08 bletchley usb-controller-update[3940]: [438B blob data]
Apr 22 02:53:10 bletchley usb-controller-update[3940]: [293B blob data]
Apr 22 02:53:11 bletchley usb-controller-update[3940]: [293B blob data]
Apr 22 02:53:11 bletchley usb-controller-update[3915]: Write firmware image done
Apr 22 02:53:12 bletchley systemd[1]: flash-usb-controller@3.service: Deactivated successfully.
Apr 22 02:53:12 bletchley systemd[1]: Finished Flash usb controller image on SLED 3.
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Icd26fb3c7585461152c3b929a46dc16675d6c937
|
|
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
|
|
By default dbus-sensors includes every sensor type available in the
codebase but there are few that we need for Bletchley. Disable all
the unused ones.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Iaca2967f0e024ce6cf966f32dac4dda9c9736e91
|
|
Assign host-poweron service to obmc-host-startmin target, and
host-poweroff service to obmc-host-shutdown target.
Tested results (obmcutil fixed at host6/chassis6):
- Power On
root@bletchley:~# obmcutil poweron
root@bletchley:~# obmcutil hoststate
CurrentHostState : xyz.openbmc_project.State.Host.HostState.Running
root@bletchley:~# obmcutil chassisstate
CurrentPowerState : xyz.openbmc_project.State.Chassis.PowerState.On
- Power Off
root@bletchley:~# obmcutil poweroff
root@bletchley:~# obmcutil hoststate
CurrentHostState : xyz.openbmc_project.State.Host.HostState.Off
root@bletchley:~# obmcutil chassisstate
CurrentPowerState : xyz.openbmc_project.State.Chassis.PowerState.Off
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Ia1de25a49b87347a2e77ec45709a0bb3ed272be9
|
|
Override host power restore policy deafult to Restore.
Tested result after factory reset:
root@bletchley:~# for i in {1..6}; do \
> busctl get-property xyz.openbmc_project.Settings\
> /xyz/openbmc_project/control/host${i}/power_restore_policy\
> xyz.openbmc_project.Control.Power.RestorePolicy\
> PowerRestorePolicy;\
> done
s "xyz.openbmc_project.Control.Power.RestorePolicy.Policy.Restore"
s "xyz.openbmc_project.Control.Power.RestorePolicy.Policy.Restore"
s "xyz.openbmc_project.Control.Power.RestorePolicy.Policy.Restore"
s "xyz.openbmc_project.Control.Power.RestorePolicy.Policy.Restore"
s "xyz.openbmc_project.Control.Power.RestorePolicy.Policy.Restore"
s "xyz.openbmc_project.Control.Power.RestorePolicy.Policy.Restore"
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Id32aa6e06413e7226fe8b33020ca26196e5c9bca
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
Start fanX_good LED group during sysyem early init.
Add sledX_good LED group start/stop service into obmc-host-startmin@X
and obmc-host-shutdown@X targets.
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Ibfab75d6f08550806d320b8a95e67d5fd5bedf82
|
|
Jayashree Dhanapal (2):
Added BootType property for Get/Set BootOrder
Refactoring code for boot-order configuration
Change-Id: If5206ba703c2f1dd54c8d093fab78b8ae3658893
Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
|
|
Karthikeyan Pasupathi (2):
Move Common code to their respective header file.
yosemitev2:Add multi-host critical sensor support
Change-Id: Idcfeec846ebeb0368008599d58141117bc08aad4
Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
|
|
Add idevicerestore package
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Idd56b68e011f6bef6d19c3ab9b550573f22f118b
|
|
Use mdio-util command to communicate with switch phy, and get port link
status represent for host status.
This feature is not support with EVT system due to MDIO0 is not connected.
Tested on reworked EVT HW:
root@bletchley:~# power-ctrl sled6 off
Power off sled6
Motor go forward to press Power key
Power key switch triggered
Press power key for Sled6 5 seconds...
Motor reverse to initial position successful
root@bletchley:~# power-ctrl sled6 status
Off
root@bletchley:~# power-ctrl sled6 on
Power on sled6
Motor go forward to press Power key
Power key switch triggered
Press power key for Sled6 0.5 seconds...
Motor reverse to initial position successful
root@bletchley:~# power-ctrl sled6 status
On
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I523013447da9ed210499f5dca960f708292a4b33
|
|
Introduce a MDIO Utility for AST2600
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Ia94078be73f2af443f745c7797111d9d94e8047b
|
|
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
|
|
Added BootType property and interface in host-template.yaml
for multi-host support to determine the BIOS boot options
which supports Legacy and EFI.
TESTED : Tested on Facebook Yosemitev2 platform and verified
the results.
Signed-off-by: Jayashree Dhanapal <jayashree-d@hcl.com>
Change-Id: I8f85b9b63019b683b0062c45f793d4b363c82482
|
|
Switching the u-boot branch from the 2016.07-aspeed-openbmc
to the 2019.04-aspeed-openbmc
Added the config file to modify the defconfig file from
the uboot-machine.
Removing the files related to the 2016.07-aspeed branch.
Tested: Tested in YosemiteV2 platform and Verified.
Signed-off-by: Logananth Sundararaj <logananth_s@hcl.com>
Change-Id: I2687d92bba5dcf7602440b3ae59113093e09e379
|
|
Switching the u-boot branch from the 2016.07-aspeed-openbmc
to the 2019.04-aspeed-openbmc
Added the config file to modify the defconfig file from
the uboot-machine.
Removing the files related to the 2016.07-aspeed branch.
Tested: Tested in Tiogapass platform and Verified
the U-boot logs.
Signed-off-by: Logananth Sundararaj <logananth_s@hcl.com>
Change-Id: I5caadacdc1232fc180db79abe2f11c959feca018
|
|
Bletchley has the primary sled and N secondary slots, each of which
should be considered a 'chassis' from a power control perspective.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I9f948c31c720e13c72a9f4d68500fd8990a4849b
|
|
include usbutils package for adding useful usb tools
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I4b53b4ab5ca70bba505757b7ec7b7aa18184b26c
|
|
Enable USB EHCI HCD configs to support EHCI host feature
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I4b7a85d63c58f3aae36917768ac88dd26dbd1fda
|
|
1. While motor-init-calibration@.service fail,retry to start service with maximum count 5 times.
2. In case of service unexpected stopped while motor is running, add stop motor
command after service stopped to avoid motor runs forever.
3. Add sled present check in motor-ctrl tool
Change-Id: Ie636f3a7dbf656f8ea577bfffed150171f7f07be
Signed-off-by: Allen.Wang <Allen_Wang@quantatw.com>
|
|
Rather than use `sed` to inject After dependencies into the service
file, create a `service.d` config file.
Tested: Booted Bletchley in QEMU and confirmed dependency with
`systemctl list-dependencies phosphor-pid-control --after`.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ib8122f5ca68d514a951811f8a8984ba54b211876
|
|
a)
Block power on/off cmd if ac-relay is off.
b)
From official User Guide, to enter DFU mode must disconnect
the Host from power for at least 10 seconds, but power from
ac relay board maybe not be disappear immediately while pull
ac-relay control gpio to low.
Base on experiment result, expand wait time to 25 sec for
workaround.
Example:
a) When sled2 is ac-off
root@bletchley:/# power-ctrl sled2 on
sled2 is ac-off, please turn on ac before power on
root@bletchley:/# power-ctrl sled2 off
sled2 is already ac-off
b)
Tested 10 times into dfu mode successfully
root@bletchley:/# power-ctrl sled2 dfu
Set host2 DFU mode
SLED2: turn ac-off
set_gpio: set power-host2 = 0 success
SLED2: pressing power button
Motor go forward to press Power button
Power button switch triggered
SLED2: turn ac-on
set_gpio: set power-host2 = 1 success
SLED2: releasing host power button
Motor reverse to initial position successful
Change-Id: Idb006ed1c58fd1736fc9410ca86d86a6ec87a6b9
Signed-off-by: Allen.Wang <Allen_Wang@quantatw.com>
|
|
* Deprecate N-1 release (hardknott).
* Enable N+1 release (kirkstone).
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I39e027e02dab64b4390b46ffbd9c299c858f403e
|
|
- Virtual_P12V_AUX_HSC_Input_Power
Apply calibration equation to adjust HSC Input Power
HSC sensor reading have error with the measurement from pin directly,
those errors are different to each actually power measurement,
use linear interpolation to estimate error in each range of HSC POWER reading.
"Expression":"
var PWR[9]:={71.786,130.828,193.845,255.12,315.468,374.183,427.233,486.983,545.588};
var ERR[9]:={0.1002,0.04141,0.04927,0.05102,0.05308,0.05359,0.04437,0.05245,0.06011};
switch {
case HSC_PWR<PWR[0]:HSC_PWR/(1+ERR[0]);
case inrange(PWR[0],HSC_PWR,PWR[1]) : HSC_PWR/(1+ERR[0]+(HSC_PWR-PWR[0])*(ERR[1]-ERR[0])/(PWR[1]-PWR[0]));
case inrange(PWR[1],HSC_PWR,PWR[2]) : HSC_PWR/(1+ERR[1]+(HSC_PWR-PWR[1])*(ERR[2]-ERR[1])/(PWR[2]-PWR[1]));
case inrange(PWR[2],HSC_PWR,PWR[3]) : HSC_PWR/(1+ERR[2]+(HSC_PWR-PWR[2])*(ERR[3]-ERR[2])/(PWR[3]-PWR[2]));
case inrange(PWR[3],HSC_PWR,PWR[4]) : HSC_PWR/(1+ERR[3]+(HSC_PWR-PWR[3])*(ERR[4]-ERR[3])/(PWR[4]-PWR[3]));
case inrange(PWR[4],HSC_PWR,PWR[5]) : HSC_PWR/(1+ERR[4]+(HSC_PWR-PWR[4])*(ERR[5]-ERR[4])/(PWR[5]-PWR[4]));
case inrange(PWR[5],HSC_PWR,PWR[6]) : HSC_PWR/(1+ERR[5]+(HSC_PWR-PWR[5])*(ERR[6]-ERR[5])/(PWR[6]-PWR[5]));
case inrange(PWR[6],HSC_PWR,PWR[7]) : HSC_PWR/(1+ERR[6]+(HSC_PWR-PWR[6])*(ERR[7]-ERR[6])/(PWR[7]-PWR[6]));
case inrange(PWR[7],HSC_PWR,PWR[8]) : HSC_PWR/(1+ERR[7]+(HSC_PWR-PWR[7])*(ERR[8]-ERR[7])/(PWR[8]-PWR[7]));
default : HSC_PWR/(1+ERR[8]);
}
"
Signed-off-by: Allen.Wang <Allen_Wang@quantatw.com>
Change-Id: I553380e27eff35fef8020de8fe346e055d75a2f8
|
|
Enable fan control and apply configuration R02
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Ie075960623335f9a5800a137c4660439b0b930cd
|
|
The MAINTAINERS files are no longer used and are out of date (references
to IRC still exist in most of them). Remove them and rely on the OWNERS
exclusively.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I0f5d2719ad97e218ce03c4503efe1b1c92ac455e
|
|
Switch u-boot devicetree to ast2600-bletchley
This patch depend on the u-boot patch:
https://patchwork.ozlabs.org/project/openbmc/patch/20220211005419.14454-1-potin.lai@quantatw.com/
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Ia9c53f7c27b29cab6f12fdb4e0e10c05bb055a2e
|
|
1. Switch to 1-based index to align with sled index
2. Update criticalHigh to 67 based on thermal team's requirement
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I7d594ef6e5e5f84abd054c7283db4a19b696d584
|
|
- Virtual_CFM_Sensor
Airflow which calculated from inlet fan tach
- Virtual_Inlet_Temp
Apply calibration equation to adjust inlet temperature
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Ia4021871a64bec34a3f309b3305bf1c9e6886753
|
|
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
|
|
Update LED behavior
- turn off fanX_blue when fanX_fault
- turn off fanX_bmberlue when fanX_good
- blink sledX_amber when sledX_fault
- turn on sledX_amber when sledX_good
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Ie024763d881f097a713619d5133e584daaaf74e3
|
|
rebase sled to 1-based due to multi host systems.
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I6ef00a8976d4b64fb9fe0467e8955d93821ac6bd
|
|
Add command to perform the steps below to trigger DFU mode on host
1. turn off host ac
2. press power button and wait at least 10 seconds
3. turn on host ac, and keep hold power button for 3 seconds
4. release host power button
Example:
root@bletchley:~# power-ctrl sled3 dfu
Set host3 DFU mode
SLED3: turn ac-off
set_gpio: set power-host3 = 0 success
SLED3: pressing power button
Motor go forward to press Power button
Power button switch triggered
SLED3: turn ac-on
set_gpio: set power-host3 = 1 success
SLED3: releasing host power button
Motor reverse to initial position successful
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I055b862ad5a1302050d5df1505a3470858c6ec58
|
|
enable INA2XX driver for PSUSensor sensor reading
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Ia75b14ee7f2a432ac84158342a69cb6173cb1bd3
|
|
Bletchley doesn't make use of the AST2600's hardware root-of-trust:
https://discord.com/channels/775381525260664832/867820390406422538/936755075920068759
Change-Id: I477d72cf1413fc0141714d863b22ac15637e259b
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|