Skip to content

Commit 449977b

Browse files
authored
Merge pull request #1561 from Nitrokey/up-v2.4
Bump Dasharo Coreboot / hotp-verification; fix nitropad-nxx ec-powerdown
2 parents 07db2dd + 5e43bcd commit 449977b

12 files changed

+24
-428
lines changed

config/coreboot-nitropad-ns50.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ CONFIG_CRB_TPM_BASE_ADDRESS=0xfed40000
560560
# CONFIG_ELOG is not set
561561
CONFIG_CACHE_MRC_SETTINGS=y
562562
CONFIG_MRC_SETTINGS_PROTECT=y
563-
# CONFIG_SMMSTORE is not set
563+
CONFIG_SMMSTORE=y
564564
CONFIG_SPI_FLASH=y
565565
CONFIG_BOOT_DEVICE_SPI_FLASH_RW_NOMMAP=y
566566
CONFIG_BOOT_DEVICE_SPI_FLASH_RW_NOMMAP_EARLY=y

config/coreboot-nitropad-nv41.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ CONFIG_CRB_TPM_BASE_ADDRESS=0xfed40000
560560
# CONFIG_ELOG is not set
561561
CONFIG_CACHE_MRC_SETTINGS=y
562562
CONFIG_MRC_SETTINGS_PROTECT=y
563-
# CONFIG_SMMSTORE is not set
563+
CONFIG_SMMSTORE=y
564564
CONFIG_SPI_FLASH=y
565565
CONFIG_BOOT_DEVICE_SPI_FLASH_RW_NOMMAP=y
566566
CONFIG_BOOT_DEVICE_SPI_FLASH_RW_NOMMAP_EARLY=y

initrd/bin/poweroff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if [ "$CONFIG_TPM" = "y" ]; then
99
fi
1010

1111
# Run special EC-based poweroff for Nitropad-Nxx
12-
if [ "${CONFIG_BOARD%_*}" = nitropad-nv41 || "${CONFIG_BOARD%_*}" = nitropad-ns51 ]; then
12+
if [ "$CONFIG_BOARD" = "nitropad-nv41" ] || [ "$CONFIG_BOARD" = "nitropad-ns50" ]; then
1313
/bin/nitropad-shutdown.sh
1414
fi
1515

initrd/bin/reboot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if [ "$CONFIG_TPM" = "y" ]; then
1818
fi
1919

2020
# Run special EC-based poweroff for Nitropad-Nxx
21-
if [ "${CONFIG_BOARD%_*}" = nitropad-nv41 ] || [ "${CONFIG_BOARD%_*}" = nitropad-ns51 ]; then
21+
if [ "$CONFIG_BOARD" = "nitropad-nv41" ] || [ "$CONFIG_BOARD" = "nitropad-ns50" ]; then
2222
/bin/nitropad-shutdown.sh
2323
fi
2424

modules/coreboot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ $(eval $(call coreboot_module,purism,))
8888
#Nitrokey nv41/ns50 are based on Dasharo coreboot port,
8989
# with patches staging under coreboot-clevo_release
9090
coreboot-nitrokey_repo := https://github.com/dasharo/coreboot
91-
coreboot-nitrokey_commit_hash := ae10b20f5c6abc9c23f709b65c46be6525da8c13
91+
coreboot-nitrokey_commit_hash := 1bcb338682b612cfcca8bba02846f78139b2e0c8
9292
coreboot-nitrokey_patch_version := clevo_release
9393
#We use clevo_release's crossgcc for now, unshared but between nitropad nv41/ns50
9494
$(eval $(call coreboot_module,nitrokey,))

modules/hotp-verification

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ modules-$(CONFIG_HOTPKEY) += hotp-verification
22

33
hotp-verification_depends := libusb $(musl_dep)
44

5-
# v1.4
6-
hotp-verification_version := b69bb20119d3cea5ec5c13d11b213dd80dfd8334
5+
# v1.5
6+
hotp-verification_version := 70c04f51387eee8f777e943ba83b6405764a3cd2
77
hotp-verification_dir := hotp-verification-$(hotp-verification_version)
88
hotp-verification_tar := nitrokey-hotp-verification-$(hotp-verification_version).tar.gz
99
hotp-verification_url := https://github.com/Nitrokey/nitrokey-hotp-verification/archive/$(hotp-verification_version).tar.gz
10-
hotp-verification_hash := ee6bcb7fc48bd5e7c290b2b344ce50713f4199425b1a6b324d0b27c80257241d
10+
hotp-verification_hash := 5244b6b514117f955a03be2363fd51567a125cb8dc904d1bd89351be27eb8bb3
1111

1212
hotp-verification_target := \
1313
$(MAKE_JOBS) \

patches/coreboot-nitrokey-clevo_release/0001-change_acpica-unix2_location_to_a_mirror.patch

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
diff -ur dasharo_cb.org/src/vendorcode/dasharo/options.c dasharo_cb/src/vendorcode/dasharo/options.c
2+
--- dasharo_cb.org/src/vendorcode/dasharo/options.c 2023-12-18 21:57:46.915582991 +0100
3+
+++ dasharo_cb/src/vendorcode/dasharo/options.c 2023-12-19 19:16:13.077019389 +0100
4+
@@ -189,7 +189,12 @@
5+
6+
uint8_t get_sleep_type_option(void)
7+
{
8+
+
9+
+#if CONFIG(BOARD_NOVACUSTOM_NV4X_ADLP)
10+
+ uint8_t sleep_type = SLEEP_TYPE_OPTION_S3;
11+
+#else
12+
uint8_t sleep_type = SLEEP_TYPE_OPTION_S0IX;
13+
+#endif
14+
15+
if (CONFIG(DRIVERS_EFI_VARIABLE_STORE))
16+
read_u8_var("SleepType", &sleep_type);

patches/coreboot-nitrokey-clevo_release/0002-libgfxinit-center_bootsplash_on_bigger_framebuffers.patch

Lines changed: 0 additions & 150 deletions
This file was deleted.

patches/coreboot-nitrokey-clevo_release/0002-s3-sleep-hardcode.patch

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)