mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
x230-flash depends on independent and minimal linux-x230-flash.config. ash_history content replaced with usefull commands. Everything is there to generate keys from Yubikey/Nitrokey, export armored versions to external media and cbfs them into reproducible rom and flash resulting rom with flashrom-x230.sh.
This commit is contained in:
parent
2ede0b355d
commit
3d23cadd15
@ -3,17 +3,19 @@ BOARD=x230.flash
|
|||||||
|
|
||||||
export CONFIG_COREBOOT=y
|
export CONFIG_COREBOOT=y
|
||||||
CONFIG_FLASHROM=y
|
CONFIG_FLASHROM=y
|
||||||
|
CONFIG_GPG=y
|
||||||
CONFIG_FLASHTOOLS=y
|
CONFIG_FLASHTOOLS=y
|
||||||
CONFIG_PCIUTILS=y
|
CONFIG_PCIUTILS=y
|
||||||
CONFIG_MBEDTLS=y
|
#CONFIG_MBEDTLS=y
|
||||||
CONFIG_QRENCODE=y
|
#CONFIG_QRENCODE=y
|
||||||
CONFIG_TPMTOTP=y
|
#CONFIG_TPMTOTP=y
|
||||||
CONFIG_DROPBEAR=y
|
CONFIG_DROPBEAR=y
|
||||||
|
|
||||||
CONFIG_LINUX_CONFIG=config/linux-x230.config
|
CONFIG_LINUX_CONFIG=config/linux-x230-flash.config
|
||||||
CONFIG_LINUX_USB=y
|
CONFIG_LINUX_USB=y
|
||||||
CONFIG_LINUX_E1000E=y
|
CONFIG_LINUX_E1000E=y
|
||||||
|
|
||||||
|
export CONFIG_USB_BOOT_DEV="/dev/sdb1"
|
||||||
export CONFIG_BOOTSCRIPT=/bin/x230-flash.init
|
export CONFIG_BOOTSCRIPT=/bin/x230-flash.init
|
||||||
|
|
||||||
# This board is "special" in that we only want the top 4 MB of the ROM
|
# This board is "special" in that we only want the top 4 MB of the ROM
|
||||||
|
2667
config/linux-x230-flash.config
Normal file
2667
config/linux-x230-flash.config
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,15 @@
|
|||||||
/boot/start-xen
|
mount /dev/sda1 /boot
|
||||||
mount -o ro /dev/sda2 /boot
|
mount -o remount,rw /boot
|
||||||
unsealtotp.sh
|
rm /boot/kexec_*
|
||||||
|
usb-scan
|
||||||
|
mount -o rw $CONFIG_USB_BOOT_DEV /media
|
||||||
|
mkdir /media/gpg_keys
|
||||||
|
gpg --home=/media/gpg_keys --edit-card
|
||||||
|
gpg --home=/media/gpg_keys --export --armor e@mail.address > /media/gpg_keys/public.key
|
||||||
|
gpg --home=/media/gpg_keys --export-secret-keys --armor e@mail.address > /media/gpg_keys/private.key
|
||||||
|
cbfs -o /media/coreboot.rom -a "heads/initrd/.gnupg/keys/public.key" -f /media/gpg_keys/public.key
|
||||||
|
cbfs -o /media/coreboot.rom -a "heads/initrd/.gnupg/keys/private.key" -f /media/gpg_keys/private.key
|
||||||
|
flashrom-x230.sh /media/coreboot.com
|
||||||
|
umount /media
|
||||||
cbmem --console | grep '^ME'
|
cbmem --console | grep '^ME'
|
||||||
cbmem --console | less
|
cbmem --console | less
|
||||||
|
Loading…
Reference in New Issue
Block a user