Skip to content
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

X230 flash universal init #579

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
282 commits
Select commit Hold shift + click to select a range
928f003
config-gui: add 'Full Reset' option
MrChromebox Jul 9, 2019
29f89ae
gpg_flash_rom(): ensure files exist before adding to CBFS
MrChromebox Jul 9, 2019
5ff3849
kecec_select_boot: default to Y when setting new boot option
MrChromebox Jul 9, 2019
c33209a
confirm_gpg_card: prompt for retry on detection failure
MrChromebox Jul 9, 2019
e8e1032
gpg_add_key_reflash: handle user cancellation
MrChromebox Jul 9, 2019
a27affc
flash.sh: persist serial in cbfs
MrChromebox Aug 1, 2019
b532315
Merge branch 'msrtools'
osresearch Aug 11, 2019
c5999d9
Merge pull request #600 from MrChromebox/ux_tweaks_2
kylerankin Aug 21, 2019
4f54a97
etc/function: add detect_boot_device()
MrChromebox Aug 19, 2019
f067d9a
initrd/bin: add OEM Factory Reset
MrChromebox Aug 15, 2019
d8bcc7b
gui-init: add OEM Factory Reset to options menu
MrChromebox Aug 16, 2019
ba23fb7
gpg-gui: remove OEM factory reset option
MrChromebox Aug 16, 2019
aab9004
gui-init: add clean boot check
MrChromebox Aug 19, 2019
b7f2249
Merge pull request #606 from MrChromebox/oem-factory-reset
kylerankin Aug 23, 2019
5fa0631
blobs/librem_skl: update get_blobs script
MrChromebox Sep 30, 2019
71a2ddf
blobs/librem_kbl: update get_blobs script
MrChromebox Sep 30, 2019
5d91d6a
Merge pull request #612 from MrChromebox/patch-1
kylerankin Sep 30, 2019
4f0e778
musl-cross: update patch for recent git commits (#617)
osresearch Oct 29, 2019
56aa508
musl-cross: pin to a specific checkout (#617)
osresearch Oct 29, 2019
e5038e6
musl-cross: crossgcc binary changed names (#617)
osresearch Oct 29, 2019
2980eb0
pin msrtools and tpmtotp to current git heads
osresearch Oct 29, 2019
5a4cb4a
blobs/librem_*: update CPU microcode
MrChromebox Nov 13, 2019
0599ce9
config-gui: fix Save Config option
MrChromebox Nov 18, 2019
5dc9b0b
config-gui: mount new /boot after selection
MrChromebox Aug 29, 2019
c14c09b
flash-gui: clear boot signatures after flashing a cleaned ROM
MrChromebox Aug 28, 2019
018279b
Add ability to enter custom password for OEM reset
kylerankin Nov 7, 2019
4d32b4a
functions: fix handling of checksum update fail
MrChromebox Nov 13, 2019
7998e96
functions: check both grub/grub2 dirs for boot files
MrChromebox Nov 13, 2019
858f027
config/coreboot-librem*: drop secondary payloads
MrChromebox Nov 19, 2019
5d28532
board/librem*.config: set default boot device to NVMe
MrChromebox Aug 28, 2019
b9fd6e2
gui-init: update TOTP error prompt
MrChromebox Aug 21, 2019
0dbc748
unseal-hotp: ensure /boot mounted before checking HOTP secret
MrChromebox May 19, 2019
e8fb231
config/coreboot-librem*: disable iGPU IOMMU for Linux payload
MrChromebox Nov 21, 2019
c55c36b
Merge pull request #624 from MrChromebox/purism_resync
kylerankin Nov 25, 2019
ac987a2
Merge pull request #626 from MrChromebox/librem_cfgs
kylerankin Nov 25, 2019
9576a42
Merge pull request #627 from MrChromebox/totp_error_prompt
kylerankin Nov 25, 2019
8110b61
Merge pull request #628 from MrChromebox/hotp_check_boot
kylerankin Nov 25, 2019
4db6fbd
oem-factory-reset: enforce 8-char min on custom password
MrChromebox Nov 20, 2019
bd8d1c3
Merge pull request #632 from MrChromebox/password_min
kylerankin Nov 25, 2019
81df949
oem-factory-reset: Fix description for rebooting when finished
merge Nov 26, 2019
61dd9ce
Merge pull request #633 from merge/anykey_text
tlaurion Nov 28, 2019
81e7c1b
Merge pull request #575 from merge/remove_keylime
tlaurion Nov 28, 2019
b4a647c
Merge pull request #461 from osresearch/debug-linux
tlaurion Nov 28, 2019
7370b75
update musl-cross to 1952975
rofl0r Dec 2, 2019
2874001
Merge pull request #635 from rofl0r/musl-cross-pin
tlaurion Dec 3, 2019
027ae39
modules: add module_tar_opt to allow different strip options
osresearch Dec 3, 2019
8af849c
Merge pull request #618 from osresearch/musl-cross-pin
tlaurion Dec 6, 2019
f0f6e80
Add option to choose GnuPG userinfo during OEM reset
alex-nitrokey Jan 2, 2020
69f3cc4
libksba: fix qsort handler to sort the string table in a reproducible…
osresearch Jan 7, 2020
6c93a5e
libksba: fix name of patch file
osresearch Jan 8, 2020
791d064
musl-cross-make: replace all cross compilers with musl-cross-make
osresearch Jan 8, 2020
fed0858
circleci: try using the osresearch/musl-cross docker image
osresearch Jan 8, 2020
35ddd3e
circleci: pre-build edk2 for linuxboot
osresearch Jan 8, 2020
c069901
circleci: no tabs!
osresearch Jan 8, 2020
97402ed
circleci: replace -j4 with --load 2
osresearch Jan 8, 2020
31f021e
circleci: enable V=1 to produce more output and avoid timing out
osresearch Jan 8, 2020
1e77a72
circleci: skip linuxboot steps for now
osresearch Jan 8, 2020
6962bfd
lvm2: turn off buffering, which prevents segfault with new musl (#651)
osresearch Jan 9, 2020
a78034d
Merge pull request #649 from osresearch/libksba-reproducibile
tlaurion Jan 15, 2020
a5f4d7d
Merge pull request #652 from osresearch/lvm-segfault
tlaurion Jan 15, 2020
8e4b109
Merge pull request #653 from osresearch/musl-cross-make
tlaurion Jan 15, 2020
23d0126
kexec: update to 2.0.20
flammit Jan 16, 2020
d63d5b4
modules: update to use full commit id
flammit Jan 16, 2020
c3213e1
initrd: update distro keys
flammit Jan 16, 2020
ed3602f
modules: maintain reproducibility by removing rpath
flammit Jan 16, 2020
6b485ed
Merge pull request #655 from flammit/fix-kexec-and-repro
tlaurion Jan 17, 2020
ad2395d
libremkey-hotp-verification: toolchain adjustments
MrChromebox Jan 22, 2020
a3bbdba
blobs/librem*: update hashes for FSP and VBT
MrChromebox Nov 26, 2019
ac71f29
Merge pull request #660 from MrChromebox/update-librem-blobs
kylerankin Jan 22, 2020
92e706b
init: fix invalid GPG_TTY variable
flammit Jan 26, 2020
ceda2d3
Merge pull request #663 from flammit/fix-gpg-tty
tlaurion Jan 28, 2020
4977650
Merge pull request #657 from MrChromebox/fix-librem-hotp
tlaurion Jan 28, 2020
132dcb2
flash-gui: set unset variable USB_FAILED
MrChromebox Jan 29, 2020
bcf522c
Merge pull request #666 from MrChromebox/flash_gui-fixup
kylerankin Jan 29, 2020
6c85d7a
Add ability to change CMOS values for X230
flawedworld Feb 1, 2020
e341f40
Update coreboot-x230.config
flawedworld Feb 3, 2020
f0d85ba
Flash.sh cleanup : flashrom specifics now in board configs (#592)
snmcmillan Feb 19, 2020
6b5adcc
init: load usb modules for devices using USB keyboard
MrChromebox Feb 19, 2020
21faf52
T420 initial support + X220 FBWhiptail Support (#578)
snmcmillan Feb 19, 2020
8e23a54
Merge pull request #677 from MrChromebox/usb_keyboard
tlaurion Feb 19, 2020
28fedf9
modules/libremkey-hotp-verification: make reproducible
MrChromebox Feb 19, 2020
62f180d
Flash.sh cleanup: Fix FLASHROM_OPTIONS -> CONFIG_FLASHROM_OPTIONS to …
Feb 19, 2020
30b098b
gui-init: fix checking librem key card-status
MrChromebox Feb 19, 2020
c684d6b
Merge pull request #681 from tlaurion/flash_sh-config_export_fix
tlaurion Feb 19, 2020
83a67d2
oem-factory-reset: fix GPG key backup filename
MrChromebox Feb 19, 2020
e5c7f73
Merge pull request #682 from MrChromebox/clean_boot_detect_fix
tlaurion Feb 19, 2020
76ac9d2
Merge pull request #683 from MrChromebox/oem-reset-fix
tlaurion Feb 19, 2020
3165ba6
Update coreboot-t420.config
snmcmillan Feb 20, 2020
65e718b
Merge pull request #684 from SebastianMcMillan/patch-2
tlaurion Feb 20, 2020
508034b
Merge pull request #680 from MrChromebox/libremkey_hotp_reproducible
tlaurion Feb 20, 2020
1bd93d6
Eliminate use of CONFIG_USB_BOOT_DEV
MrChromebox Feb 20, 2020
f42b338
Merge pull request #478 from flammit/coreboot-kgpe-d16
tlaurion Feb 22, 2020
801bbed
Update coreboot-x230.config
flawedworld Feb 23, 2020
ad84c38
Merge pull request #685 from MrChromebox/fix_iso_boot
tlaurion Mar 5, 2020
f62364f
Update README.md
tlaurion Mar 9, 2020
b1471d9
Update coreboot-x220.config
snmcmillan Mar 9, 2020
cc2eb8f
Update coreboot-t420.config
snmcmillan Mar 9, 2020
58cb8df
coreboot-4.8.1: acpica-unix2 cannot be downloaded per www.acpica.org …
tlaurion Mar 15, 2020
83c22f3
Merge pull request #696 from tlaurion/acpica-unix2_fix
tlaurion Mar 17, 2020
a16b97b
Add more input validation
alex-nitrokey Mar 26, 2020
b29447e
modules/flashrom: update to v1.2 release
MrChromebox Jul 31, 2019
01dabe1
network-init-recovery: do DHCP, then ask NTP from DNS server before a…
tlaurion Apr 22, 2020
ba68c72
qemu-coreboot: Now useful to debug something through make BOARD=qemu-…
tlaurion Apr 23, 2020
00a1a2b
Merge pull request #679 from MrChromebox/flashrom_1.2
tlaurion May 1, 2020
15e19d0
coreboot patch: remove acpica-unix2-20180531.tar.gz url change fix si…
tlaurion May 4, 2020
59b65d1
Merge pull request #713 from tlaurion/acpica-unix2_revert_url_change
tlaurion May 4, 2020
a2d50a1
mount-usb: replace fixed timeout with drive detection
MrChromebox Jan 14, 2020
8d6f47f
mount-usb: suppress error output from calls to `stat`
MrChromebox Jan 29, 2020
040e358
CIs: pass CircleCI to debian:bullseye docker image, provide logs.tar.…
tlaurion May 4, 2020
df89d16
Merge pull request #707 from tlaurion/useful_qemu-coreboot_board
tlaurion May 4, 2020
31a103f
Working config to do make BOARD=qemu-coreboot-fbwhiptail and then mak…
tlaurion Apr 23, 2020
29e2800
qemu-coreboot-fbwhiptail: removing of unneeded comments
tlaurion May 5, 2020
950acf9
Merge pull request #708 from tlaurion/qemu-coreboot-fbwhiptail_board
tlaurion May 15, 2020
5a033fa
T430 TPM Backport
flawedworld May 15, 2020
23735d7
Add T430 board support
flawedworld May 15, 2020
762e59e
Merge pull request #693 from SebastianMcMillan/patch-4
tlaurion May 15, 2020
2ee51d8
Merge pull request #656 from fibreblazer/master
tlaurion May 15, 2020
fa35b3c
Merge pull request #715 from tlaurion/circle_ci_based_on_debian_bulls…
tlaurion May 15, 2020
241b0bc
upgrade gpg toolstack to latest versions
tlaurion May 19, 2020
d5083f4
x230-hotp-verification: Add x230-hotp-verification board to have a HO…
tlaurion May 16, 2020
2d50e01
Make hotp-verification hashes same across two CIs
szszszsz May 21, 2020
577fd80
Merge pull request #722 from tlaurion/x230-hotp-verification
tlaurion May 22, 2020
6916069
Merge pull request #724 from szszszsz/repro-gitlab-circleci-pr-upstream
tlaurion May 22, 2020
fdbac66
Add gitlab-ci CI configuration which builds for x230-hotp-verificatio…
tlaurion May 22, 2020
83f2a20
Merge branch 'master' of https://github.com/osresearch/heads into add…
tlaurion May 22, 2020
69c7b20
Merge pull request #714 from tlaurion/gawk_test_over_latest_debian
tlaurion May 22, 2020
0cd1a0d
Revert "GPG toolstack upgrade to latest available versions (Fixes Gaw…
tlaurion May 22, 2020
183007e
Merge pull request #725 from osresearch/revert-714-gawk_test_over_lat…
tlaurion May 22, 2020
972c25d
upgrade gpg toolstack to latest versions
tlaurion May 22, 2020
f1f92a0
Merge pull request #726 from tlaurion/gawk_test_over_latest_debian_redo
tlaurion May 22, 2020
b88daa7
Add Fedora 30 gitlab-ci CI configuration building x230-hotp-verification
tlaurion May 22, 2020
4245aec
Merge pull request #706 from tlaurion/network-init-recovery_dhcp-ntp
tlaurion May 24, 2020
b1840e8
Merge pull request #727 from tlaurion/add_gitlabci_ci_integration
tlaurion May 24, 2020
c66fed1
Merge branch 'master' into add_gitlabci_ci_integration
tlaurion May 24, 2020
3895318
Merge pull request #728 from tlaurion/add_gitlabci_ci_integration
tlaurion May 24, 2020
488d652
Merge pull request #670 from flawedworld/patch-1
tlaurion May 24, 2020
7600ce4
GitlabCI: restrict cache, store cleaned build artifacts for x230* and…
tlaurion May 24, 2020
78053b9
Merge pull request #729 from tlaurion/CIs-cache_restriction-artifacts…
tlaurion May 25, 2020
9090f1a
libpng : moving archive download from sourceforge to github
tlaurion Jun 3, 2020
f095ab0
Merge pull request #736 from tlaurion/libpng_download_from_github
tlaurion Jun 3, 2020
dcbeb26
CIs: move qemu-coreboot to be built last, add t430 and t430-flash boa…
tlaurion Jun 6, 2020
9311eec
Merge pull request #738 from tlaurion/CIs_add_t430
tlaurion Jun 7, 2020
11a0fdc
CIs: Replace cache fingerprint with username of the user launching th…
tlaurion Jun 7, 2020
27fe438
Merge pull request #742 from tlaurion/CIs_reusable_cache
tlaurion Jun 7, 2020
7941dac
CIs: Replace cache fingerprints so cache is reusable between builds (…
tlaurion Jun 7, 2020
872ac38
Merge pull request #743 from tlaurion/CIs_reusable_cache_fix
tlaurion Jun 8, 2020
53071ce
CircleCI: fix typos (save_cache and restore_cache not identical)
tlaurion Jun 8, 2020
3dbf1f5
Merge pull request #744 from tlaurion/CIs_reusable_cache_typo_fix
tlaurion Jun 8, 2020
0cae2d7
kexec-save-default: guard TPM LUKS usage with config option
MrChromebox Nov 21, 2019
0e349c5
Update hotp-verification
alex-nitrokey Jun 9, 2020
cbad9b6
oem-factory-reset: Handle non-TPM case
MrChromebox Apr 23, 2020
1ba73ac
Rename CONFIG_LIBREMKEY to CONFIG_HOTPKEY
alex-nitrokey Jun 11, 2020
3424317
Quick fix to build
alex-nitrokey Jun 11, 2020
fc8c7b0
Merge branch 'hotp-verification-update' into hotp-neutral
alex-nitrokey Jun 11, 2020
4069619
Rename libremkey-hotp-verification module
alex-nitrokey Jun 11, 2020
28735a8
Add CONFIG_HOTP_BRANDING
alex-nitrokey Jun 11, 2020
fab6031
Merge pull request #646 from alex-nitrokey/custom-userinfo
tlaurion Jun 17, 2020
05c8547
Merge pull request #625 from MrChromebox/tpm_luks
tlaurion Jun 19, 2020
9798cf9
x230-htop-verification: coreboot CBFS_SIZE changed to 0x710000
tlaurion Jun 20, 2020
2763711
Add option to export pubkey
alex-nitrokey Jun 23, 2020
6d29ab7
dd partition Label to menu list
alex-nitrokey Jun 24, 2020
c07f3b7
Add systeminfo menu option
alex-nitrokey Jun 24, 2020
53b67d2
Prepare usage of /boot/kexec_hotp_key as branding
alex-nitrokey Jun 24, 2020
407778e
Remove unintented paranthesis
alex-nitrokey Jun 24, 2020
38ba257
Include upstream updates of hotp_verification
alex-nitrokey Jun 24, 2020
aab2c32
Fix warning box title
alex-nitrokey Jun 24, 2020
92b1826
/boot needs to get mounted first
alex-nitrokey Jun 24, 2020
5867fc5
Store HOTP USB Security Key branding in /boot
alex-nitrokey Jun 24, 2020
3236f0e
Change name seal-libremkey -> seal-hotpkey
alex-nitrokey Jun 24, 2020
2fe946c
Fix termonology
alex-nitrokey Jun 24, 2020
fecb9cf
Rename CONFIG_HOTP_BRANDING to HOTP_BRANDING
alex-nitrokey Jun 24, 2020
73c9d6e
Merge branch 'hotp-verification-update' into hotp-neutral-merge
alex-nitrokey Jun 24, 2020
c2a2134
Merge remote-tracking branch 'upstream/master' into hotp-neutral
alex-nitrokey Jun 24, 2020
20b07dd
swap label and device and minor formatting change
alex-nitrokey Jun 25, 2020
481082f
Include adaption of @MrChromebox
alex-nitrokey Jun 25, 2020
e418ecb
Fix MEMTOTAL calculation
alex-nitrokey Jun 25, 2020
53dc659
Replace libremkey_htop_* by hotp_*
alex-nitrokey Jun 25, 2020
e6037a2
Merge pull request #760 from Nitrokey/menu-systeminfo
tlaurion Jun 28, 2020
cc572f4
Merge pull request #758 from Nitrokey/gpg-export
tlaurion Jun 28, 2020
94476bb
Merge pull request #747 from MrChromebox/factory_reset_no_tpm
tlaurion Jun 28, 2020
d579e73
Merge pull request #659 from MrChromebox/mount-usb-status
tlaurion Jun 28, 2020
8dc5b76
Merge pull request #756 from tlaurion/x230-hotp-verification_CBFS_fix
tlaurion Jun 28, 2020
84b2f9b
Re-arrange the order of label and device
alex-nitrokey Jun 30, 2020
d3d4529
GitlabCI: reset cache, and investigate
szszszsz Jun 30, 2020
9c9edb0
Remove pkg-config and git version use
szszszsz Jun 30, 2020
e0f0655
Merge branch 'hotp-neutral' into storage-factoryreset
alex-nitrokey Jun 30, 2020
30236ff
Delete AES keys of Nitrokey Storage after reset
alex-nitrokey Jun 30, 2020
19cd15c
Remove gnupg pubkey export in oem-factory-reset
alex-nitrokey Jun 30, 2020
cdbd0fc
gui-init: Fix RAM and firmware version strings
MrChromebox Jul 1, 2020
54cb664
Merge pull request #767 from MrChromebox/sysinfo_fixes
tlaurion Jul 1, 2020
43971dc
Make export to USB drive an option
techge Jul 7, 2020
6fe409a
Still need the exported pubkey file
techge Jul 7, 2020
5cb45bb
Revert "upgrade gpg toolstack to latest versions"
MrChromebox Jul 7, 2020
268d9d6
Merge pull request #773 from MrChromebox/revert_gpg_toolstack
tlaurion Jul 10, 2020
5f067ea
coreboot: 4.8.1 fixed in Makefile, coreboot module and board configs …
tlaurion Jul 10, 2020
f7c4cae
*gui.sh: move common ops to gui_functions
MrChromebox Jul 10, 2020
9719510
Merge pull request #776 from tlaurion/coreboot_481
tlaurion Jul 12, 2020
c2c45da
Encapsulate changes to working directory inside subshells
MrChromebox Jul 13, 2020
d472c43
Fix quoting of variable
techge Jul 15, 2020
d5262f1
Merge pull request #759 from Nitrokey/usb_label
tlaurion Jul 19, 2020
ba4fcef
usb-scan/mount: Improve USB handling
MrChromebox Jul 10, 2020
d6ea02d
flash-gui: Improve readability of prompts
MrChromebox Jul 10, 2020
ffedd3a
configs/busybox: include 'fold' utility
MrChromebox Jul 10, 2020
5005c92
oem-factory-reset: Improve readability of error output
MrChromebox Jul 10, 2020
2dbe6c9
gui-init: Improve readability of checksum dialogs
MrChromebox Jul 10, 2020
7ea13ee
Merge pull request #761 from Nitrokey/hotp-neutral
tlaurion Jul 23, 2020
efe30b7
modules/hotp-verification: update to upstream master
MrChromebox Jul 7, 2020
a89d5a2
seal-hotp: Fix HOTP key identification
MrChromebox Jul 24, 2020
c89f670
Merge pull request #781 from MrChromebox/fix_hotp_id
tlaurion Jul 26, 2020
1d6460a
Merge pull request #774 from MrChromebox/update_lk_hotp_verification
tlaurion Jul 26, 2020
302f044
patches: Add patch to fix hotp-verification
MrChromebox Jul 28, 2020
fbbdf67
Merge pull request #783 from MrChromebox/fix_hotp_verification
tlaurion Jul 28, 2020
009c104
oem-factory-reset: Parse BLS format grub files
MrChromebox Jul 29, 2020
4c64ca6
oem-factory-reset: Fix index used for default boot option
MrChromebox Jul 29, 2020
9714395
Fix check for valid boot options
MrChromebox Jul 29, 2020
b9f487a
Merge pull request #779 from MrChromebox/pwd_fix
tlaurion Jul 30, 2020
624faa1
Merge pull request #778 from MrChromebox/usb_gui_tweaks
tlaurion Jul 30, 2020
d629201
modules/hotp-verification: Update and drop patch
MrChromebox Jul 30, 2020
3c551cc
Merge pull request #784 from MrChromebox/default_boot_fixes
tlaurion Jul 30, 2020
5d641ee
gui-init: Guard TPM reset function with CONFIG_TPM
MrChromebox Jul 24, 2020
83cac9e
Fix kexec to work with Debian Installer (fixes #699)
alex-nitrokey Jul 30, 2020
fb98d0e
Merge pull request #786 from MrChromebox/drop_hotp_patch
tlaurion Aug 1, 2020
116787f
Merge pull request #788 from Nitrokey/kexec-debian
tlaurion Aug 1, 2020
06656c4
Merge pull request #787 from MrChromebox/guard_tpm_reset
tlaurion Aug 1, 2020
244de9d
gui-init: remove double-prompt for checksum update
MrChromebox Dec 10, 2019
0afa599
Fix eval of DEV_NUM_PARTITIONS
MrChromebox Feb 27, 2020
0b970b7
config-gui: clean up boot device selection
MrChromebox Feb 29, 2020
c725f86
Merge branch 'master' into gpgexport-factoryreset
alex-nitrokey Aug 5, 2020
a224c43
Add PID for Storage
alex-nitrokey Aug 5, 2020
872a4b0
Merge remote-tracking branch 'upstream/master' into storage-factoryreset
alex-nitrokey Aug 5, 2020
5dc65f6
Merge pull request #766 from Nitrokey/gpgexport-factoryreset
tlaurion Aug 6, 2020
3aa919a
Merge pull request #791 from MrChromebox/gui_boot_tweaks
tlaurion Aug 6, 2020
ae9fb74
Merge pull request #763 from Nitrokey/storage-factoryreset
tlaurion Aug 6, 2020
63b400c
CircleCI : specialized caches (#798)
tlaurion Aug 11, 2020
28d3b7c
patches/coreboot-4.8.1: Measure firmware into PCR2 (#793)
PatrickRudolph Aug 11, 2020
c6a82a2
CircleCI: mitigate issue #799 (#800)
tlaurion Aug 12, 2020
5f9e59a
modules/coreboot: Add option to build with coreboot 4.12
MrChromebox May 13, 2020
9eff5c5
Merge pull request #721 from MrChromebox/coreboot-4.12
tlaurion Aug 17, 2020
b14e564
Fix CircleCI build problems (#808)
tlaurion Aug 20, 2020
f23ced0
Support Multiple Kernel Options (#805)
MrChromebox Aug 20, 2020
a075347
kexec-parse-boot/bls: Strip boot dir from front of grub entries (#804)
MrChromebox Aug 24, 2020
cde6e24
xx30 boards: fixing CONFIG_CBFS_SIZE=0x710000 for x230 and t430 board…
tlaurion Sep 1, 2020
268fb90
Add new board: Purism Librem Mini (#806)
MrChromebox Sep 2, 2020
480a2e1
modules/fbwhiptail: fixate to latest commit ID to make sure Heads com…
tlaurion Sep 2, 2020
8067efc
CircleCI: bring recent failing logs on CI output (#822)
tlaurion Sep 2, 2020
ef96d64
Merge pull request #821 from tlaurion/x230_t430-CBFS_fix
tlaurion Sep 2, 2020
b2c49e8
CircleCI: removing librem_mini board under CircleCI (#825)
tlaurion Sep 4, 2020
843d4ad
blobs/*: Fix extract script (#792)
PatrickRudolph Sep 4, 2020
5d95158
Update and rename x230-flash.init to install.init
snmcmillan Jun 7, 2019
d6ebc5b
Merge branch 'x230-flash-universal-init' of https://github.com/Sebast…
snmcmillan Sep 4, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
203 changes: 146 additions & 57 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,97 +2,186 @@ version: 2
jobs:
build:
docker:
- image: osresearch/heads-ubuntu:16.04
- image: debian:10
steps:
- run:
name: Install dependencies
command: |
apt update
apt install -y \
build-essential \
zlib1g-dev \
uuid-dev \
libdigest-sha-perl \
libelf-dev \
bc \
bzip2 \
bison \
flex \
git \
gnupg \
iasl \
m4 \
nasm \
patch \
python \
wget \
gnat \
cpio \
ccache \
lzma \

apt install -y build-essential zlib1g-dev uuid-dev libdigest-sha-perl libelf-dev bc bzip2 bison flex git gnupg iasl m4 nasm patch python wget gnat cpio ccache pkg-config cmake libusb-1.0-0-dev autoconf texinfo ncurses-dev
- checkout

- run:
name: Bootstrap make
name: git reset
command: |
make -j4 bootstrap
git reset --hard "$CIRCLE_SHA1" \

- run:
name: Bootstrap coreboot-gcc
name: Creating all modules and patches digest
command: |
./build/make-4.2.1/make \
TOOLCHAIN=/home/builder/heads \
V=1 \
BOARD=qemu-coreboot \
coreboot-gcc

find ./patches/ ./modules/ -type f | sort -h |xargs sha256sum > /tmp/all_modules_and_patches.sha256sums \

- run:
name: qemu-coreboot
name: Creating musl-cross-make and musl-cross-make patches digest
command: |
./build/make-4.2.1/make \
TOOLCHAIN=/home/builder/heads \
V=1 \
-j4 \
BOARD=qemu-coreboot \
find ./patches/musl-cross-* modules/musl-cross* -type f | sort -h | xargs sha256sum > /tmp/musl-cross_module_and_patches.sha256sums \

- store-artifacts:
path: build/qemu-coreboot/coreboot.rom
- store-artifacts:
path: build/qemu-coreboot/hashes.txt

- restore_cache:
keys:
#Restore existing cache for modules checksums validated to be exactly the same as in github current commit
- heads-modules-and-patches-{{ checksum "/tmp/all_modules_and_patches.sha256sums" }}{{ .Environment.CACHE_VERSION }}
#If precedent fails. Restore cache for musl-cross module checksum validated to be exactly the same as in github current commit
- heads-cross-musl-{{ checksum "/tmp/musl-cross_module_and_patches.sha256sums" }}{{ .Environment.CACHE_VERSION }}

# linuxboot steps need something to pass in the kernel header path
# skipping for now
# - run:
# name: qemu-linuxboot-edk2
# command: |
# ./build/make-4.2.1/make \
# CROSS=/cross/bin/x86_64-linux-musl- \
# BOARD=qemu-linuxboot \
# `/bin/pwd`/build/linuxboot-git/build/qemu/.configured \
# # Run first to avoid too many processes
#
# - run:
# name: qemu-linuxboot
# command: |
# ./build/make-4.2.1/make \
# CROSS=/cross/bin/x86_64-linux-musl- \
# --load 2 \
# V=1 \
# BOARD=qemu-linuxboot \
#
# - store-artifacts:
# path: build/qemu-linuxboot/linuxboot.rom
# - store-artifacts:
# path: build/qemu-linuxboot/hashes.txt

- run:
name: qemu-linuxboot
name: x230-flash
#We delete build/make-4.2.1/ directory until issue #799 is fixed.
command: |
./build/make-4.2.1/make \
TOOLCHAIN=/home/builder/heads \
rm -rf build/x230-flash/* build/log/* && make --load 2 \
V=1 \
-j4 \
BOARD=qemu-linuxboot \

BOARD=x230-flash || (find ./build/log/ -cmin 1|xargs tail; exit 1) \
no_output_timeout: 3h
- run:
name: Ouput x230-flash hashes
command: |
cat build/x230-flash/hashes.txt \
- run:
name: Archiving build logs for x230-flash
command: |
tar zcvf build/x230-flash/logs.tar.gz build/log/*
- store-artifacts:
path: build/qemu-linuxboot/linuxboot.rom
path: build/x230-flash

- run:
name: t430-flash
command: |
rm -rf build/t430-flash/* build/log/* && make --load 2 \
V=1 \
BOARD=t430-flash || (find ./build/log/ -cmin 1|xargs tail; exit 1) \
no_output_timeout: 3h
- run:
name: Ouput t430-flash hashes
command: |
cat build/t430-flash/hashes.txt \
- run:
name: Archiving build logs for t430-flash
command: |
tar zcvf build/t430-flash/logs.tar.gz build/log/*
- store-artifacts:
path: build/qemu-linuxboot/hashes.txt
path: build/t430-flash

- run:
name: t430
command: |
rm -rf build/t430/* build/log/* && make --load 2 \
V=1 \
BOARD=t430 || (find ./build/log/ -cmin 1|xargs tail; exit 1) \
no_output_timeout: 3h
- run:
name: Ouput t430 hashes
command: |
cat build/t430/hashes.txt \
- run:
name: Archiving build logs for t430
command: |
tar zcvf build/t430/logs.tar.gz build/log/*
- store-artifacts:
path: build/t430

- run:
name: x230
command: |
./build/make-4.2.1/make \
TOOLCHAIN=/home/builder/heads \
-j4 \
rm -rf build/x230/* build/log/* && make --load 2 \
V=1 \
BOARD=x230 \
BOARD=x230 || (find ./build/log/ -cmin 1|xargs tail; exit 1) \
no_output_timeout: 3h
- run:
name: Ouput x230 hashes
command: |
cat build/x230/hashes.txt \
- run:
name: Archiving build logs for x230
command: |
tar zcvf build/x230/logs.tar.gz build/log/*
- store-artifacts:
path: build/x230

- run:
name: x230-hotp-verification
command: |
rm -rf build/x230-hotp-verification/* build/log/* && make --load 2 \
V=1 \
BOARD=x230-hotp-verification || (find ./build/log/ -cmin 1|xargs tail; exit 1) \
no_output_timeout: 3h
- run:
name: Ouput x230-hotp-verification hashes
command: |
cat build/x230-hotp-verification/hashes.txt \
- run:
name: Archiving build logs for x230-hotp-verification
command: |
tar zcvf build/x230-hotp-verification/logs.tar.gz build/log/*
- store-artifacts:
path: build/x230/coreboot.rom
path: build/x230-hotp-verification

- run:
name: qemu-coreboot
command: |
rm -rf build/qemu-coreboot/* build/log/* && make --load 2 \
V=1 \
BOARD=qemu-coreboot || (find ./build/log/ -cmin 1|xargs tail; exit 1) \
no_output_timeout: 3h
- run:
name: Output qemu-coreboot hashes
command: |
cat build/qemu-coreboot/hashes.txt \
- run:
name: Archiving build logs for qemu-coreboot
command: |
tar zcvf build/qemu-coreboot/logs.tar.gz build/log/*
- store-artifacts:
path: build/x230/hashes.txt
path: build/qemu-coreboot

- save_cache:
#Generate cache for the same musl-cross module definition if hash is not previously existing
key: heads-cross-musl-{{ checksum "/tmp/musl-cross_module_and_patches.sha256sums" }}{{ .Environment.CACHE_VERSION }}
paths:
- crossgcc
- build/musl-cross-*

- save_cache:
#Generate cache for the exact same modules definitions if hash is not previously existing
key: heads-modules-and-patches-{{ checksum "/tmp/all_modules_and_patches.sha256sums" }}{{ .Environment.CACHE_VERSION }}
paths:
- packages
- crossgcc
- build
workflows:
version: 2
build_and_test:
Expand Down
87 changes: 87 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
image: fedora:30

variables:
DOCKER_DRIVER: overlay2

stages:
- build

build:
stage: build
retry: 1
cache:
paths:
- packages
- crossgcc
- build
key: "heads-$GITLAB_USER_LOGIN-2"
script:
- dnf install -y @development-tools gcc-c++ gcc-gnat zlib-devel perl-Digest-MD5 perl-Digest-SHA uuid-devel pcsc-tools ncurses-devel lbzip2 libuuid-devel lzma elfutils-libelf-devel bc bzip2 bison flex git gnupg iasl m4 nasm patch python wget libusb-devel cmake automake pv bsdiff autoconf libtool cpio texinfo
- git fetch origin
- git reset --hard origin/$CI_COMMIT_REF_NAME
- echo "Removing old x230-flash artifacts..."
- rm -rf ./build/x230-flash/*
- rm -rf ./build/log/*
- echo "Building BOARD=x230-flash board..."
- make BOARD=x230-flash || (find ./build/log/ -cmin 1|xargs tail; exit 1)
- echo "x230-flash hashes:"
- cat ./build/x230-flash/hashes.txt
- echo "Archiving x230-flash logs..."
- tar zcvf ./build/x230-flash/logs.tar.gz ./build/log/*
- echo "Removing old t430-flash artifacts..."
- rm -rf ./build/t430-flash/*
- rm -rf ./build/log/*
- echo "Building BOARD=t430-flash board..."
- make BOARD=t430-flash || (find ./build/log/ -cmin 1|xargs tail; exit 1)
- echo "t430-flash hashes:"
- cat ./build/t430-flash/hashes.txt
- echo "Archiving t430-flash logs..."
- tar zcvf ./build/t430-flash/logs.tar.gz ./build/log/*
- echo "Removing old x230-hotp-verification artifacts..."
- rm -rf ./build/x230-hotp-verification/*
- rm -rf ./build/log/*
- echo "Building BOARD=x230-hotp-verification board..."
- make BOARD=x230-hotp-verification || (find ./build/log/ -cmin 1|xargs tail; exit 1)
- echo "x230-hotp-verification hashes:"
- cat ./build/x230-hotp-verification/hashes.txt
- echo "Archiving x230-hotp-verification logs..."
- tar zcvf ./build/x230-hotp-verification/logs.tar.gz ./build/log/*
- echo "Removing old x230 artifacts..."
- rm -rf ./build/x230/*
- rm -rf ./build/log/*
- echo "Building BOARD=x230 board..."
- make BOARD=x230 || (find ./build/log/ -cmin 1|xargs tail; exit 1)
- echo "x230 hashes:"
- cat ./build/x230/hashes.txt
- echo "Archiving x230 logs..."
- tar zcvf ./build/x230/logs.tar.gz ./build/log/*

- echo "Removing old t430 artifacts..."
- rm -rf ./build/t430/*
- rm -rf ./build/log/*
- echo "Building BOARD=t430 board..."
- make BOARD=t430 || (find ./build/log/ -cmin 1|xargs tail; exit 1)
- echo "t430 hashes:"
- cat ./build/t430/hashes.txt
- echo "Archiving t430 logs..."
- tar zcvf ./build/t430/logs.tar.gz ./build/log/*

- echo "Removing old qemu-coreboot artifacts..."
- rm -rf ./build/qemu-coreboot/*
- rm -rf ./build/log/*
- echo "Building BOARD=qemu-coreboot board..."
- make BOARD=qemu-coreboot || (find ./build/log/ -cmin 1|xargs tail; exit 1)
- echo "qemu-coreboot hashes:"
- cat ./build/qemu-coreboot/hashes.txt
- echo "Archiving qemu-coreboot logs..."
- tar zcvf ./build/qemu-coreboot/logs.tar.gz ./build/log/*
- echo "Calculate used space for cache"
- du -shc packages crossgcc build
artifacts:
paths:
- ./build/qemu-coreboot
- ./build/x230-flash
- ./build/t430-flash
- ./build/x230-hotp-verification
- ./build/x230
- ./build/t430
Loading