Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|
|
We want to do motor-init and turn on ac when system boot-up,
make service instances link under /lib/systemd/system/multi-user.target.wants/
Change-Id: I53bc97270d111b90e0d70052f81a7e428805ead1
Signed-off-by: Allen.Wang <Allen_Wang@quantatw.com>
|
|
Per [1], Yocto is going to start requiring both branch names and
`protocol=https` in GitHub SRC_URI variables. Ran the upstream tool to
automatically fix our URIs.
1. https://git.yoctoproject.org/poky/tree/documentation/migration-guides/migration-3.5.rst#n10
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I5f9619f7ff707050b469ae74c8aa16846568c5e4
|
|
motor-ctrl recipe was reported to periodically fail with:
ERROR: When reparsing motor-ctrl_0.1.bb:do_fetch, the basehash value
changed from AAA to BBB. The metadata is not deterministic and this
needs to be fixed.
There was inconsistencies in the way the SYSTEMD services were defined
and some of them appeared to not instantiate templates correctly.
Clean them all up to match.
Also perform trivial alphabetic sorting of some other variables.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I9c66fa1106a4003041f39c68c1a43ef8b6a2c00e
|
|
1. add host-ac-on and host-ac-off service.
2. init host-ac-on during BMC boot.
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Ie3954297e20f35c9d1f723d9d5e74cee91ec32ac
|
|
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>
|
|
switch sled to 1-based numbering to align with multi host systems
tools only accept input sled1 to sled6
Change-Id: Ic372e011716d8de7edf2eebdf8667e44b2179e64
Signed-off-by: Allen.Wang <Allen_Wang@quantatw.com>
|
|
1.enable bmc pwm output by sysfs
2.control motor vref by libgpiod-tools
3.Correct typo and formating
Change-Id: Ie0a57a12e328913f007cb2014d4205ded99c91b3
Signed-off-by: Allen.Wang <Allen_Wang@quantatw.com>
|
|
root is only added to a number of required groups if either
`debug-tweaks` or `allow-root-login` is on (see
phosphor-rootfs-postcommands.bbclass). For internal builds we turn off
`debug-tweaks`, so add `allow-root-login` to our IMAGE_FEATURES since we
need it on everywhere.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ic65dce4fd5374a6a9c8389c67693b980a2b5509c
|
|
For Bletchley platform, we can only power on system by step motor to press power key.
Add tools and service to initialize step motor and control system power
by motor.
Signed-off-by: Allen.Wang <Allen_Wang@quantatw.com>
Change-Id: Ic75352a037566d701b2e362743c527c370b0c2e5
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
Builds done using facebook/openbmc do not use the 'obmc-phosphor-image'
image name, but instead use 'MACHINE-image'. This means that bbappend
files have no effect and we need a different method to get consistent
sets of include files. Introduce 'fb-phosphor-image.inc' and
'fb-MACHINE-phosphor-image.inc' as the replacements for the
obmc-phosphor-image.bbappend.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I166342c1744d1cd0237f8c75d90d87153fb19b35
|
|
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I19d92019649ba990dcc33ac1bc25c4ebadc933b6
|
|
1. create configuration layer for fru yaml config
2. add fru eeprom path and id config
3. add FRU_YAML_GEN in phosphor-ipmi-host bbappend
Test:
root@bletchley:~# busctl introspect xyz.openbmc_project.Inventory.Manager /xyz/openbmc_project/inventory/system/chassis/bmc
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
org.freedesktop.DBus.Introspectable interface - - -
.Introspect method - s -
org.freedesktop.DBus.Peer interface - - -
.GetMachineId method - s -
.Ping method - - -
org.freedesktop.DBus.Properties interface - - -
.Get method ss v -
.GetAll method s a{sv} -
.Set method ssv - -
.PropertiesChanged signal sa{sv}as - -
xyz.openbmc_project.Inventory.Decorator.Asset interface - - -
.BuildDate property s "2021-12-21 - 07:56:00" emits-change writable
.Manufacturer property s "Quanta" emits-change writable
.Model property s "" emits-change writable
.PartNumber property s "3RL19MA0000" emits-change writable
.SerialNumber property s "1234567890123" emits-change writable
.SparePartNumber property s "" emits-change writable
.SubModel property s "" emits-change writable
xyz.openbmc_project.Inventory.Decorator.Revision interface - - -
.Version property s "FRU Ver 0.01" emits-change writable
xyz.openbmc_project.Inventory.Item interface - - -
.Present property b false emits-change writable
.PrettyName property s "Bletchley -Class 1" emits-change writable
xyz.openbmc_project.Inventory.Item.Bmc interface - - -
xyz.openbmc_project.Inventory.Item.Board interface - - -
root@bletchley:~# busctl introspect xyz.openbmc_project.Inventory.Manager /xyz/openbmc_project/inventory/system/chassis/bmc/ethernet
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
org.freedesktop.DBus.Introspectable interface - - -
.Introspect method - s -
org.freedesktop.DBus.Peer interface - - -
.GetMachineId method - s -
.Ping method - - -
org.freedesktop.DBus.Properties interface - - -
.Get method ss v -
.GetAll method s a{sv} -
.Set method ssv - -
.PropertiesChanged signal sa{sv}as - -
xyz.openbmc_project.Inventory.Item.Ethernet interface - - -
xyz.openbmc_project.Inventory.Item.NetworkInterface interface - - -
.MACAddress property s "3AD664F68D3F" emits-change writable
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I70d624885abaa13639a0617b356554aa6c88af57
|
|
1. Enable sync-mac
2. add inventory mapping config
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I441c00c22d7f1c0e3d0c9f83b9cc149007acd781
|
|
This script runs at startup as systemd service.
It checks if the bmc time is in sync from NTP server.
otherwise it reads the host time via ipmb interface
and updates as bmc time.
This change was tested and verified in yosemitev2 and tiogapass
platforms.
Signed-off-by: Naveen Moses <naveen.mosess@hcl.com>
Change-Id: I8c937c16415b2dd05d05155facadc0bed797db07
|
|
To setup GPIOs and set fan speed to 70%
Signed-off-by: Howard Chiu <howard.chiu@quantatw.com>
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I7a64e19b6e34bcab7013b382d19d7be6156bf87a
|
|
select aspeed-bmc-facebook-bletchley.dts for build
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I85503d876b959a2f220ad84b6a9ddba047e89c80
|
|
enable SPI_GPIO feature
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I24bb13acfbddcff14c5f15fbd9262ba1b019d9f7
|
|
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I3e576e5f9f831a4f73cf9d048859f37d471f3ed7
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
|
while applying the patch facing some build warnings.
Tested : Tested in Yosemitev2.
Signed-off-by: Logananth Sundararaj <logananth.s@hcl.com>
Change-Id: I1544059d205413823e148eff1a56b994ca2b05c1
|
|
add support of phosphor-led-manager for Bletchley
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I4c27fb1a7658b89ff20f8f2ee4c38ae5bd17ffc0
|
|
This is required by newer versions of Yocto.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I7011bb03b3a384903f44154d2ea2a8f283afd237
|
|
1. AST26xx ADC driver
2. AST26xx PWM v14 driver
3. AST26xx Tach driver from Aspeed-linux
4. Enable driver for PHY fixed link
5. HDC1080 humidity sensor driver
6. PCF85363 RTC driver
7. FUSB302 USB-PD PHY driver
8. MP5023 HSC driver
9. DEVMEM driver for early debug purpose
Signed-off-by: Howard Chiu <howard.chiu@quantatw.com>
Change-Id: Ib87de12cabd5aef4ef8bd25ac3451a1df56d3fc1
|
|
Use phosphor-nvme to monitor the temperature of NVMe SSD on each sled
Signed-off-by: Howard Chiu <howard.chiu@quantatw.com>
Change-Id: Ib61dca1742f66b93cab7bee86b27b33cc7dce969
|
|
Removed the debug uboot console prints.
Initialized the baudrate to 57600.
Signed-off-by: Logananth Sundararaj <logananth.s@hcl.com>
Change-Id: Ia6cd59e3d6a8a0d73d6a6113c60e13bba0f90b22
|
|
Corrected invalid gpio configurations for YosemiteV2.
Dbus based gpio config change due code logic change
in ipmbgpiosensor.
Signed-off-by: Logananth Sundararaj <logananth.s@hcl.com>
Change-Id: I8bafd6b077471ef9910954d1342274fc075274fa
|
|
Change-Id: Ia32f0baf56fb7a3e035198ece7e74fe18f8fa05c
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
|
|
`BBLAYERS_NON_REMOVABLE` is obsolete and no longer required.
As it said by Yocto documentation it can be used by `Hob`
https://www.yoctoproject.org/docs/1.5.2/ref-manual/ref-manual.html#var-BBLAYERS_NON_REMOVABLE
that already removed since Yocto-2.1
https://www.yoctoproject.org/tools-resources/projects/hob
Change-Id: Ibc2d8268a9d837a81e9cf6b0131dba8d0a030a3f
Signed-off-by: Alexander Filippov <a.filippov@yadro.com>
|
|
Changed the default timezone as PST,
minimal core-region timezone files are installed.
TESTED: Tested and verified in YosemiteV2
Signed-off-by: Logananth Sundararaj <logananth.s@hcl.com>
Change-Id: Ia05987c5c68c831aab5b4ae3bd953a03f368cf89
|
|
The majority of our hardware uses ttyS4 and 57600. Rather than have
each machine specify this, put it into a generic "facebook" override
as the default for all our machines. Assuming OVERRIDES is set
correctly, machines can still make specific overrides as alternatives.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Id8b704163dc57d94e27481dba7aef1bdf66aeee5
|