Skip to content

Commit

Permalink
WiP: io386 on top of coreboot 4.13. Revamps #326
Browse files Browse the repository at this point in the history
  • Loading branch information
tlaurion committed Sep 7, 2021
1 parent 0f31c3b commit 3343f8d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
1 change: 1 addition & 0 deletions boards/x230-hotp-maximized/x230-hotp-maximized.config
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ CONFIG_UTIL_LINUX=y
CONFIG_LVM2=y
CONFIG_MBEDTLS=y
CONFIG_PCIUTILS=y
CONFIG_IO386=y

#Remote attestation support
#TPM based requirements
Expand Down
2 changes: 2 additions & 0 deletions config/coreboot-x230-hotp-maximized.config
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ CONFIG_HAVE_IFD_BIN=y
CONFIG_BOARD_LENOVO_X230=y
CONFIG_LINUX_COMMAND_LINE="intel_iommu=igfx_off quiet"
CONFIG_UART_PCI_ADDR=0
# CONFIG_INTEL_CHIPSET_LOCKDOWN is not set
CONFIG_HAVE_ME_BIN=y
CONFIG_HAVE_GBE_BIN=y
CONFIG_NO_GFX_INIT=y
CONFIG_DRIVERS_PS2_KEYBOARD=y
CONFIG_TPM_MEASURED_BOOT=y
CONFIG_BOOTMEDIA_LOCK_CONTROLLER=y
CONFIG_CONSOLE_CBMEM_BUFFER_SIZE=0x80000
CONFIG_PAYLOAD_LINUX=y
CONFIG_PAYLOAD_FILE="../../build/x230-hotp-maximized/bzImage"
Expand Down
9 changes: 0 additions & 9 deletions initrd/bin/generic-init
Original file line number Diff line number Diff line change
Expand Up @@ -40,28 +40,19 @@ while true; do
fi

if [ "$totp_confirm" = "u" ]; then
if [ "$CONFIG_IO386" = y ]; then
lock_chip
fi
exec /bin/usb-init
continue
fi

if [ "$totp_confirm" = "m" ]; then
# Try to select a kernel from the menu
if [ "$CONFIG_IO386" = y ]; then
lock_chip
fi
mount_boot
kexec-select-boot -m -b /boot -c "grub.cfg"
continue
fi

if [ "$totp_confirm" = "y" -o -n "$totp_confirm" ]; then
# Try to boot the default
if [ "$CONFIG_IO386" = y ]; then
lock_chip
fi
mount_boot
kexec-select-boot -b /boot -c "grub.cfg" \
|| recovery "Failed default boot"
Expand Down
4 changes: 4 additions & 0 deletions initrd/bin/kexec-boot
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ fi

if [ "$dryrun" = "y" ]; then exit 0; fi

if [ "$CONFIG_IO386" = y ]; then
lock_chip
fi

echo "Loading the new kernel:"
echo "$kexeccmd"
eval "$kexeccmd" \
Expand Down

0 comments on commit 3343f8d

Please sign in to comment.