diff --git a/config/x230-flash.config b/config/x230-flash.config index e9207bda..37e88253 100644 --- a/config/x230-flash.config +++ b/config/x230-flash.config @@ -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 diff --git a/initrd/bin/x230-flash.init b/initrd/bin/x230-flash.init new file mode 100755 index 00000000..9f081b2e --- /dev/null +++ b/initrd/bin/x230-flash.init @@ -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