-
-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new board: Purism Librem Mini #806
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
8d387af
patches/coreboot-4.12: Add patch for Cannonlake ME status
MrChromebox cf6dba7
modules: add purism-blobs module
MrChromebox 1a1fd03
configs/linux-librem13v2: unset CONFIG_RETPOLINE
MrChromebox ca613cd
Add new board: Librem Mini
MrChromebox e30197e
board/librem*: rename for consistency
MrChromebox 40151da
CircleCI: add librem_mini board to test
MrChromebox File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
boards/librem13v2/librem13v2.config → boards/librem_13v2/librem_13v2.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
boards/librem13v4/librem13v4.config → boards/librem_13v4/librem_13v4.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
boards/librem15v3/librem15v3.config → boards/librem_15v3/librem_15v3.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
boards/librem15v4/librem15v4.config → boards/librem_15v4/librem_15v4.config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Configuration for a librem mini | ||
CONFIG_LINUX_CONFIG=config/linux-librem_common.config | ||
CONFIG_COREBOOT_CONFIG=config/coreboot-librem_mini.config | ||
|
||
export CONFIG_COREBOOT=y | ||
export CONFIG_COREBOOT_VERSION=4.12 | ||
export CONFIG_LINUX_VERSION=4.19.139 | ||
export CONFIG_PURISM_BLOBS=y | ||
|
||
CONFIG_CRYPTSETUP=y | ||
CONFIG_FLASHROM=y | ||
CONFIG_FLASHTOOLS=y | ||
CONFIG_GPG2=y | ||
CONFIG_KEXEC=y | ||
CONFIG_UTIL_LINUX=y | ||
CONFIG_LVM2=y | ||
CONFIG_MBEDTLS=y | ||
CONFIG_PCIUTILS=y | ||
CONFIG_POPT=y | ||
CONFIG_QRENCODE=y | ||
CONFIG_TPMTOTP=y | ||
|
||
CONFIG_CAIRO=y | ||
CONFIG_FBWHIPTAIL=y | ||
CONFIG_HOTPKEY=y | ||
|
||
CONFIG_LINUX_USB=y | ||
|
||
export CONFIG_TPM=y | ||
export CONFIG_TPM_NO_LUKS_DISK_UNLOCK=y | ||
|
||
export CONFIG_BOOTSCRIPT=/bin/gui-init | ||
export CONFIG_BOOT_REQ_HASH=n | ||
export CONFIG_BOOT_REQ_ROLLBACK=n | ||
export CONFIG_BOOT_KERNEL_ADD="intel_iommu=on" | ||
export CONFIG_BOOT_KERNEL_REMOVE="" | ||
export CONFIG_BOOT_DEV="/dev/nvme0n1p1" | ||
export CONFIG_BOOT_GUI_MENU_NAME="Purism Librem Mini Heads Boot Menu" | ||
export CONFIG_WARNING_BG_COLOR="--background-gradient 0 0 0 150 125 0" | ||
export CONFIG_ERROR_BG_COLOR="--background-gradient 0 0 0 150 0 0" | ||
export CONFIG_FLASHROM_OPTIONS="-p internal" | ||
export CONFIG_USB_KEYBOARD=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
CONFIG_LOCALVERSION="PureBoot-beta" | ||
CONFIG_VENDOR_PURISM=y | ||
CONFIG_INTEL_GMA_VBT_FILE="3rdparty/purism-blobs/mainboard/purism/librem_whl/vbt.bin" | ||
CONFIG_IFD_BIN_PATH="3rdparty/purism-blobs/mainboard/purism/librem_whl/flashdescriptor.bin" | ||
CONFIG_ME_BIN_PATH="3rdparty/purism-blobs/mainboard/purism/librem_whl/me.bin" | ||
CONFIG_HAVE_IFD_BIN=y | ||
CONFIG_BOARD_PURISM_LIBREM_MINI=y | ||
CONFIG_CPU_MICROCODE_CBFS_EXTERNAL_BINS=y | ||
CONFIG_CPU_UCODE_BINARIES="3rdparty/purism-blobs/mainboard/purism/librem_whl/cpu_microcode_blob.bin" | ||
CONFIG_HAVE_ME_BIN=y | ||
CONFIG_PAYLOAD_LINUX=y | ||
CONFIG_PAYLOAD_FILE="../../build/librem_mini/bzImage" | ||
CONFIG_LINUX_INITRD="../../build/librem_mini/initrd.cpio.xz" | ||
CONFIG_LINUX_COMMAND_LINE="intel_iommu=igfx_off quiet loglevel=2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -319,3 +319,4 @@ CONFIG_CRC8=m | |
CONFIG_XZ_DEC_TEST=m | ||
CONFIG_CORDIC=m | ||
CONFIG_IRQ_POLL=y | ||
# CONFIG_RETPOLINE is not set |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
modules-$(CONFIG_PURISM_BLOBS) += purism-blobs | ||
|
||
purism-blobs_base_dir := coreboot-$(CONFIG_COREBOOT_VERSION)/3rdparty/purism-blobs | ||
purism-blobs_version := f53d4074a81c70352d39839884caac20181274d1 | ||
purism-blobs_tar := purism-blobs-${purism-blobs_version}.tar.gz | ||
purism-blobs_tar_opt := --strip 1 | ||
purism-blobs_url := https://source.puri.sm/coreboot/purism-blobs/-/archive/${purism-blobs_version}/${purism-blobs_tar} | ||
purism-blobs_hash := f1abd419f085a6d519a2b9b141aee9900553aabf644f0fe1801618fb54157556 | ||
|
||
## there is nothing to be built | ||
purism-blobs_output := .built | ||
purism-blobs_configure := echo -e 'all:\n\ttouch .built' > Makefile |
31 changes: 31 additions & 0 deletions
31
patches/coreboot-4.12/0001-soc-cannonlake-me.c-Always-print-ME-status.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
From 32e60b698d33eec419bf0e4865ece7b86ea1355a Mon Sep 17 00:00:00 2001 | ||
From: Matt DeVillier <matt.devillier@puri.sm> | ||
Date: Fri, 19 Jun 2020 17:02:22 -0500 | ||
Subject: [PATCH] soc/cannonlake/me.c: Always print ME status | ||
|
||
Print the ME status even if the CSE device is disabled, so | ||
we know which disabled state it's in. | ||
|
||
Change-Id: I939333199aa699039fec727beb094e4eb2ad7149 | ||
Signed-off-by: Matt DeVillier <matt.devillier@puri.sm> | ||
--- | ||
src/soc/intel/cannonlake/me.c | 3 --- | ||
1 file changed, 3 deletions(-) | ||
|
||
diff --git a/src/soc/intel/cannonlake/me.c b/src/soc/intel/cannonlake/me.c | ||
index a51b702e6a..3fae0bf534 100644 | ||
--- a/src/soc/intel/cannonlake/me.c | ||
+++ b/src/soc/intel/cannonlake/me.c | ||
@@ -103,9 +103,6 @@ void dump_me_status(void *unused) | ||
union me_hfsts5 hfsts5; | ||
union me_hfsts6 hfsts6; | ||
|
||
- if (!is_cse_enabled()) | ||
- return; | ||
- | ||
hfsts1.data = me_read_config32(PCI_ME_HFSTS1); | ||
hfsts2.raw = me_read_config32(PCI_ME_HFSTS2); | ||
hfsts3.data = me_read_config32(PCI_ME_HFSTS3); | ||
-- | ||
2.20.1 | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MrChromebox We can chainload multiple if here for different board configurations?
etc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would need to be a single line I believe:
coreboot_depends := $(if $(CONFIG_PURISM_BLOBS), purism-blobs) $(if $(CONFIG_xx30_BLOBS),xx30-blobs)