Skip to content

Commit 45245fe

Browse files
qemu-*: Show how to enable restricted/basic in board config
For iterating, enabling these in the board config is easiest. It's also possible to manually inject config.user ahead of time, or enable at runtime without flashing, but the normal enable/flash/reboot path does not work in qemu since it is unable to flash. Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
1 parent 47e9e4c commit 45245fe

8 files changed

Lines changed: 32 additions & 0 deletions

File tree

boards/qemu-coreboot-fbwhiptail-tpm1-hotp/qemu-coreboot-fbwhiptail-tpm1-hotp.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ export CONFIG_COREBOOT=y
88
export CONFIG_COREBOOT_VERSION=4.19
99
export CONFIG_LINUX_VERSION=5.10.5
1010

11+
#Enable only one RESTRICTED/BASIC boot modes below to test them manually (we cannot inject config under QEMU (no internal flashing)
12+
#export CONFIG_RESTRICTED_BOOT=y
13+
#export CONFIG_BASIC_BOOT=y
14+
1115
#Enable DEBUG output
1216
export CONFIG_DEBUG_OUTPUT=y
1317
export CONFIG_ENABLE_FUNCTION_TRACING_OUTPUT=y

boards/qemu-coreboot-fbwhiptail-tpm1/qemu-coreboot-fbwhiptail-tpm1.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ export CONFIG_COREBOOT=y
66
export CONFIG_COREBOOT_VERSION=4.19
77
export CONFIG_LINUX_VERSION=5.10.5
88

9+
#Enable only one RESTRICTED/BASIC boot modes below to test them manually (we cannot inject config under QEMU (no internal flashing)
10+
#export CONFIG_RESTRICTED_BOOT=y
11+
#export CONFIG_BASIC_BOOT=y
12+
913
#Enable DEBUG output
1014
export CONFIG_DEBUG_OUTPUT=y
1115
export CONFIG_ENABLE_FUNCTION_TRACING_OUTPUT=y

boards/qemu-coreboot-fbwhiptail-tpm2-hotp/qemu-coreboot-fbwhiptail-tpm2-hotp.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ export CONFIG_COREBOOT=y
77
export CONFIG_COREBOOT_VERSION=4.19
88
export CONFIG_LINUX_VERSION=5.10.5
99

10+
#Enable only one RESTRICTED/BASIC boot modes below to test them manually (we cannot inject config under QEMU (no internal flashing)
11+
#export CONFIG_RESTRICTED_BOOT=y
12+
#export CONFIG_BASIC_BOOT=y
13+
1014
#Enable DEBUG output
1115
export CONFIG_DEBUG_OUTPUT=y
1216
export CONFIG_ENABLE_FUNCTION_TRACING_OUTPUT=y

boards/qemu-coreboot-fbwhiptail-tpm2/qemu-coreboot-fbwhiptail-tpm2.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ export CONFIG_COREBOOT=y
66
export CONFIG_COREBOOT_VERSION=4.19
77
export CONFIG_LINUX_VERSION=5.10.5
88

9+
#Enable only one RESTRICTED/BASIC boot modes below to test them manually (we cannot inject config under QEMU (no internal flashing)
10+
#export CONFIG_RESTRICTED_BOOT=y
11+
#export CONFIG_BASIC_BOOT=y
12+
913
#Enable DEBUG output
1014
export CONFIG_DEBUG_OUTPUT=y
1115
export CONFIG_ENABLE_FUNCTION_TRACING_OUTPUT=y

boards/qemu-coreboot-whiptail-tpm1-hotp/qemu-coreboot-whiptail-tpm1-hotp.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ export CONFIG_COREBOOT=y
88
export CONFIG_COREBOOT_VERSION=4.19
99
export CONFIG_LINUX_VERSION=5.10.5
1010

11+
#Enable only one RESTRICTED/BASIC boot modes below to test them manually (we cannot inject config under QEMU (no internal flashing)
12+
#export CONFIG_RESTRICTED_BOOT=y
13+
#export CONFIG_BASIC_BOOT=y
14+
1115
#Enable DEBUG output
1216
export CONFIG_DEBUG_OUTPUT=y
1317
export CONFIG_ENABLE_FUNCTION_TRACING_OUTPUT=y

boards/qemu-coreboot-whiptail-tpm1/qemu-coreboot-whiptail-tpm1.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ export CONFIG_COREBOOT=y
66
export CONFIG_COREBOOT_VERSION=4.19
77
export CONFIG_LINUX_VERSION=5.10.5
88

9+
#Enable only one RESTRICTED/BASIC boot modes below to test them manually (we cannot inject config under QEMU (no internal flashing)
10+
#export CONFIG_RESTRICTED_BOOT=y
11+
#export CONFIG_BASIC_BOOT=y
12+
913
#Enable DEBUG output
1014
export CONFIG_DEBUG_OUTPUT=y
1115
export CONFIG_ENABLE_FUNCTION_TRACING_OUTPUT=y

boards/qemu-coreboot-whiptail-tpm2-hotp/qemu-coreboot-whiptail-tpm2-hotp.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ export CONFIG_COREBOOT=y
77
export CONFIG_COREBOOT_VERSION=4.19
88
export CONFIG_LINUX_VERSION=5.10.5
99

10+
#Enable only one RESTRICTED/BASIC boot modes below to test them manually (we cannot inject config under QEMU (no internal flashing)
11+
#export CONFIG_RESTRICTED_BOOT=y
12+
#export CONFIG_BASIC_BOOT=y
13+
1014
#Enable DEBUG output
1115
export CONFIG_DEBUG_OUTPUT=y
1216
export CONFIG_ENABLE_FUNCTION_TRACING_OUTPUT=y

boards/qemu-coreboot-whiptail-tpm2/qemu-coreboot-whiptail-tpm2.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ export CONFIG_COREBOOT=y
66
export CONFIG_COREBOOT_VERSION=4.19
77
export CONFIG_LINUX_VERSION=5.10.5
88

9+
#Enable only one RESTRICTED/BASIC boot modes below to test them manually (we cannot inject config under QEMU (no internal flashing)
10+
#export CONFIG_RESTRICTED_BOOT=y
11+
#export CONFIG_BASIC_BOOT=y
12+
913
#Enable DEBUG output
1014
export CONFIG_DEBUG_OUTPUT=y
1115
export CONFIG_ENABLE_FUNCTION_TRACING_OUTPUT=y

0 commit comments

Comments
 (0)