mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-24 07:06:42 +00:00
x230-flash configuration and initialization
This commit is contained in:
parent
51ecbdc8cb
commit
8c57ac59e7
@ -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
|
BOARD=x230.flash
|
||||||
|
|
||||||
CONFIG_FLASHROM=y
|
CONFIG_FLASHROM=y
|
||||||
CONFIG_PCIUTILS=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_USB=y
|
||||||
CONFIG_LINUX_E1000E=y
|
CONFIG_LINUX_E1000E=y
|
||||||
|
21
initrd/bin/x230-flash.init
Executable file
21
initrd/bin/x230-flash.init
Executable 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
|
Loading…
Reference in New Issue
Block a user