10 Commits

Author SHA1 Message Date
Tim Crawford
46f4fb2fa7 jenkins: Rebuild the coreboot toolchain
Latest build failed with:

    /bin/sh: 1: /home/jenkins/workspace/firmware-open-pipeline/coreboot/util/crossgcc/xgcc/bin/x86_64-elf-gcc: not found

So try rebuilding the toolchain.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-02-20 12:35:59 -07:00
Tim Crawford
6fa257c783 jenkins: Sync script with master
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-02-20 12:32:36 -07:00
Tim Crawford
395aa17546 lemp12: Fix PCIe 4.0 SSDs in PCIe 3.0 slot on resume
Signed-off-by: Tim Crawford <tcrawford@system76.com>
2024-02-20 11:52:11 -07:00
Tim Crawford
42bf7a65d9 Update coreboot and ec
- coreboot: Fixed SMMSTORE init sometimes failing
- ec: Increased key debounce from 5ms to 10ms

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-09-08 16:52:38 -04:00
Tim Crawford
5a9565a684 adl: Update CSME to 16.1.25.2124
Generate new CSME images from ADL-P MR5 BKC (Kit 766225).

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-09-07 10:34:31 -06:00
Tim Crawford
52f6d72713 docs: Add note about checking CSME state
I had forgotten that CSME reporting an error was normal when disabled.
Document what is should report when enabled/disabled.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-09-07 10:24:10 -04:00
Tim Crawford
5844541031 jenkins: Add build duration to Slack notifications
The scripted projects using the default Slack notifications settings
report the time the build took. Add it to the declarative jobs as well.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-08-30 16:46:30 -04:00
Jeremy Soller
81731199f2 Update coreboot and changelog 2023-08-23 14:04:40 -06:00
Tim Crawford
a8dd6c2c0b Update ec
- Changed battery charge start threshold to 90%
- Changed charger to disable when battery is full

These are made in response to Clevo's request for changes. The battery
now defaults to a charge-discharge cycle of 90-100% capacity instead of
always charging to 100%.

It is possible to force charging by setting the start threshold to 0, or
by resetting the EC (power off and unplug).

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-08-18 14:47:58 -06:00
Tim Crawford
38c7019286 Update coreboot
- Fixed CPU not going lower than C2 due to card reader LTR

Signed-off-by: Tim Crawford <tcrawford@system76.com>
2023-08-18 14:47:58 -06:00
26 changed files with 99 additions and 52 deletions

View File

@@ -6,7 +6,22 @@ date followed by an underscore and a short git revision. To see if specific
features apply to your model and firmware version, see the
[feature matrix](./FEATURES.md).
## unreleased
## 2024-02-20
- lemp12: Fixed PCIe 4.0 drives in PCIe 3.0 slot failing to reinitialize on
resume
## 2023-09-08
- adl: Updated CSME to 16.1.25.2124
- adl,rpl: Fixed SMMSTORE init sometimes failing
- Increased key debounce from 5ms to 10ms
## 2023-08-23
- rpl: Fixed RPL-S GPIO driver on Windows
## 2023-08-18
- cml-u: Fixed boot failing at FSP-S
- Added KBC reset on CPU reset to prevent keyboard from being locked
@@ -14,6 +29,11 @@ features apply to your model and firmware version, see the
- Fixed detecting if PECI is available on eSPI systems using S0ix
- Added support for a FnLock key
- tgl: Fixed Bluetooth performance by enabling audio offload
- gaze16: Fixed CPU not going lower than C2 due to card reader LTR
- adl: Fixed CPU not going lower than C2 due to card reader LTR
- rpl: Fixed CPU not going lower than C2 due to card reader LTR
- Changed battery charge start threshold to 90%
- Changed charger to disable when battery is full
## 2023-07-19

55
Jenkinsfile vendored
View File

@@ -9,14 +9,7 @@
def all_models = 'addw2 addw3 bonw14 bonw15 darp5 darp6 darp7 darp8 darp9 galp3-c galp4 galp5 galp6 galp7 gaze15 gaze16-3050 gaze16-3060 gaze16-3060-b gaze16-3050 gaze16-3060-b gaze17-3050 gaze17-3060-b gaze18 lemp9 lemp10 lemp11 lemp12 oryp5 oryp6 oryp7 oryp8 oryp9 oryp10 oryp11 serw13'
def getCommitSha() {
sh "git rev-parse HEAD > .git/current-commit"
return readFile(".git/current-commit").trim()
}
void setBuildStatus(String state, String message) {
commit = getCommitSha()
// FIXME: https://www.jenkins.io/doc/book/pipeline/jenkinsfile/#string-interpolation
sh """
curl \
@@ -24,7 +17,7 @@ void setBuildStatus(String state, String message) {
-H \'Accept: application/vnd.github+json\' \
-H \'Authorization: Bearer ${GITHUB_TOKEN}\' \
-H \'X-GitHub-Api-Version: 2022-11-28\' \
https://api.github.com/repos/system76/firmware-open/statuses/${commit} \
https://api.github.com/repos/system76/firmware-open/statuses/${GIT_COMMIT} \
-d \'{\"state\": \"${state}\", \"target_url\": \"${BUILD_URL}\", \"description\": \"${message}\"}\'
"""
}
@@ -48,7 +41,7 @@ pipeline {
parameters {
string(name: 'MODELS', defaultValue: "$all_models", description: 'Space separated list of models to build', trim: true)
string(name: 'GIT_BRANCH', defaultValue: 'master', description: 'Git branch or revision to build', trim: true)
string(name: 'SOURCE_BRANCH', defaultValue: 'master', description: 'Git branch or revision to build', trim: true)
}
triggers {
@@ -58,26 +51,29 @@ pipeline {
stages {
stage('Prepare') {
steps {
checkout([
$class: 'GitSCM',
branches: [[name: "${GIT_BRANCH}"]],
setBuildStatus("pending", "Pending")
slackSend(color: "good", message: "${env.JOB_NAME} - #${env.BUILD_ID} started (<${env.BUILD_URL}|Open>)")
sh """#!/bin/bash
# Update submodule URLs because of coreboot
git submodule sync --recursive
"""
// https://www.jenkins.io/doc/pipeline/steps/params/scmgit/
checkout scmGit(
branches: [[name: '${SOURCE_BRANCH}']],
extensions: [
[
$class: 'SubmoduleOption',
disableSubmodules: false,
lfs(),
pruneStaleBranch(),
pruneTags(true),
submodule(
parentCredentials: true,
recursiveSubmodules: true,
reference: '',
trackingSubmodules: false
],
[ $class: 'GitLFSPull' ],
[ $class: 'PruneStaleBranch' ],
reference: ''
),
],
userRemoteConfigs: [[url: 'https://github.com/system76/firmware-open']]
])
setBuildStatus("pending", "Pending")
slackSend(color: "good", message: "${JOB_NAME} - #${BUILD_ID} started (<${BUILD_URL}|Open>)")
userRemoteConfigs: [[url: 'https://github.com/system76/firmware-open.git']]
)
sh """#!/bin/bash
# Install dependencies
@@ -93,6 +89,9 @@ pipeline {
git clean -dffx
git submodule foreach --recursive git clean -dff
# FIXME: Rebuild the coreboot toolchain
make -C coreboot CPUS="\$(nproc)" crossgcc-i386 crossgcc-x64
# EDK2 builds fail if file paths in INFs change from what's in the build cache
pushd edk2; git clean -dffx; popd
"""
@@ -124,15 +123,15 @@ pipeline {
}
success {
setBuildStatus("success", "Successful")
slackSend(color: "good", message: "${JOB_NAME} - #${BUILD_ID} successful (<${BUILD_URL}|Open>)")
slackSend(color: "good", message: "${env.JOB_NAME} - #${env.BUILD_ID} successful after ${currentBuild.durationString} (<${env.BUILD_URL}|Open>)")
}
failure {
setBuildStatus("failure", "Failed")
slackSend(color: "danger", message: "${JOB_NAME} - #${BUILD_ID} failed (<${BUILD_URL}|Open>)")
slackSend(color: "danger", message: "${env.JOB_NAME} - #${env.BUILD_ID} failed after ${currentBuild.durationString} (<${env.BUILD_URL}|Open>)")
}
aborted {
setBuildStatus("failure", "Failed")
slackSend(color: "warning", message: "${JOB_NAME} - #${BUILD_ID} aborted (<${BUILD_URL}|Open>)")
slackSend(color: "warning", message: "${env.JOB_NAME} - #${env.BUILD_ID} aborted after ${currentBuild.durationString} (<${env.BUILD_URL}|Open>)")
}
}
}

View File

@@ -27,6 +27,34 @@ A restart is required for the change to take effect. On the boot after changing
the value, the system will perform a global reset (power off again) to complete
the change and ensure the IME is operating in a valid state.
### Checking the state
coreboot will log some IME data to cbmem during startup. This can be used to
check if it is in the correct state.
```
make -C coreboot/util/cbmem
sudo ./coreboot/util/cbmem/cbmem -c
```
When disabled it will report:
```
ME: Current Working State : 4
ME: Current Operation State : 1
ME: Current Operation Mode : 3
ME: Error Code : 2
```
When enabled it will report:
```
ME: Current Working State : 5
ME: Current Operation State : 1
ME: Current Operation Mode : 0
ME: Error Code : 0
```
## Tiger Lake-U
Models using TGL-U processors default to having the IME enabled. TGL-U removes

2
ec

Submodule ec updated: 01907011bb...181d4c5d59

View File

@@ -9,4 +9,4 @@
- HAP: false
- [ME](./me.rom)
- Size: 4824 KB
- Version: 16.0.15.1829
- Version: 16.1.25.2124

BIN
models/darp8/fd.rom (Stored with Git LFS)

Binary file not shown.

BIN
models/darp8/me.rom (Stored with Git LFS)

Binary file not shown.

View File

@@ -9,4 +9,4 @@
- HAP: false
- [ME](./me.rom)
- Size: 4824 KB
- Version: 16.0.15.1829
- Version: 16.1.25.2124

BIN
models/galp6/fd.rom (Stored with Git LFS)

Binary file not shown.

BIN
models/galp6/me.rom (Stored with Git LFS)

Binary file not shown.

View File

@@ -9,4 +9,4 @@
- HAP: false
- [ME](./me.rom)
- Size: 4824 KB
- Version: 16.0.15.1829
- Version: 16.1.25.2124

BIN
models/gaze17-3050/fd.rom (Stored with Git LFS)

Binary file not shown.

BIN
models/gaze17-3050/me.rom (Stored with Git LFS)

Binary file not shown.

View File

@@ -9,4 +9,4 @@
- HAP: false
- [ME](./me.rom)
- Size: 4824 KB
- Version: 16.0.15.1829
- Version: 16.1.25.2124

BIN
models/gaze17-3060-b/fd.rom (Stored with Git LFS)

Binary file not shown.

BIN
models/gaze17-3060-b/me.rom (Stored with Git LFS)

Binary file not shown.

View File

@@ -9,4 +9,4 @@
- HAP: false
- [ME](./me.rom)
- Size: 4824 KB
- Version: 16.0.15.1829
- Version: 16.1.25.2124

BIN
models/lemp11/fd.rom (Stored with Git LFS)

Binary file not shown.

BIN
models/lemp11/me.rom (Stored with Git LFS)

Binary file not shown.

View File

@@ -9,4 +9,4 @@
- HAP: false
- [ME](./me.rom)
- Size: 4824 KB
- Version: 16.0.15.1829
- Version: 16.1.25.2124

BIN
models/oryp10/fd.rom (Stored with Git LFS)

Binary file not shown.

BIN
models/oryp10/me.rom (Stored with Git LFS)

Binary file not shown.

View File

@@ -9,4 +9,4 @@
- HAP: false
- [ME](./me.rom)
- Size: 4824 KB
- Version: 16.0.15.1829
- Version: 16.1.25.2124

BIN
models/oryp9/fd.rom (Stored with Git LFS)

Binary file not shown.

BIN
models/oryp9/me.rom (Stored with Git LFS)

Binary file not shown.