x230-flash configuration and initialization

This commit is contained in:
Trammell Hudson 2017-04-11 07:16:20 -04:00
parent 51ecbdc8cb
commit 8c57ac59e7
Failed to extract signature
2 changed files with 26 additions and 2 deletions

View File

@ -1,9 +1,12 @@
# Minimal configuration for a x230 to support flashrom and USB
# Minimal configuration for a x230 to support flashrom, USB and networking
BOARD=x230.flash
CONFIG_FLASHROM=y
CONFIG_PCIUTILS=y
CONFIG_TPM=y
CONFIG_MBEDTLS=y
CONFIG_QRENCODE=y
CONFIG_TPMTOTP=y
CONFIG_DROPBEAR=y
CONFIG_LINUX_USB=y
CONFIG_LINUX_E1000E=y

21
initrd/bin/x230-flash.init Executable file
View File

@ -0,0 +1,21 @@
#!/bin/sh
# Initialize the USB device drivers, invoke a recovery shell
insmod /lib/modules/ehci-hcd.ko
insmod /lib/modules/ehci-pci.ko
insmod /lib/modules/xhci-hcd.ko
insmod /lib/modules/xhci-pci.ko
insmod /lib/modules/e1000e.ko
tpm extend -ix 4 -ic recovery
sleep 2
echo '***** Starting recovery shell'
echo ''
echo 'To install from flash drive:'
echo ''
echo ' mount -o ro /dev/sdb1 /media'
echo ' flashrom-x230.sh /media/x230.rom'
echo ''
exec /bin/ash