mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-23 14:52:27 +00:00
065cbfda7b
Those boards now produce 4MB coreboot ROM and according CBFS small size, and remove the logic to extract 4Mb ROM out of the 12Mb rom which for some reason, was now misaligned. config/coreboot-xx30-flash : remove all unnneded stuff to xx30-flash boards. config/linux-x230-flash: used commonly for all xx30-flash boards, this is now finally saved with savedeconfig, and removes another bunch of unneeded stuff. Tested working. Fixes #1095
40 lines
1.4 KiB
Plaintext
40 lines
1.4 KiB
Plaintext
# Minimal configuration for a x230 to support flashrom and USB
|
|
|
|
export CONFIG_COREBOOT=y
|
|
export CONFIG_COREBOOT_VERSION=4.13
|
|
export CONFIG_LINUX_VERSION=4.14.62
|
|
|
|
CONFIG_FLASHROM=y
|
|
#CONFIG_GPG=y
|
|
#CONFIG_FLASHTOOLS=y
|
|
CONFIG_PCIUTILS=y
|
|
#CONFIG_MBEDTLS=y
|
|
#CONFIG_QRENCODE=y
|
|
#CONFIG_TPMTOTP=y
|
|
#CONFIG_DROPBEAR=y
|
|
|
|
CONFIG_LINUX_CONFIG=config/linux-x230-flash.config
|
|
CONFIG_LINUX_USB=y
|
|
#CONFIG_LINUX_E1000E=y
|
|
|
|
export CONFIG_BOOTSCRIPT=/bin/x230-flash.init
|
|
export CONFIG_BOARD_NAME="ThinkPad X230-flash"
|
|
export CONFIG_FLASHROM_OPTIONS="--force --noverify-all -p internal --ifd --image bios"
|
|
|
|
# This board is "special" in that we need a 4MB top SPI flashable ROM.
|
|
# This is enough to allow the board to boot into a minimal Heads and read the full Legacy
|
|
# ROM from an external USB media.
|
|
#
|
|
# No tools outside of flashrom are provided here as you can see per activated modules above.
|
|
# Everything Heads is now delegated to the Legacy ROM to be flashed
|
|
# from xx30-flash ROMs.
|
|
#
|
|
# Instructions to mount USB thumb drive and flash legacy 12Mb image will be given on screen
|
|
# per CONFIG_BOOTSCRIPT script above.
|
|
#
|
|
# Below, we just move produced ROM with a name appended with -top.rom for clarity.
|
|
all: $(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom
|
|
$(build)/$(BOARD)/heads-$(BOARD)-$(HEADS_GIT_VERSION)-top.rom: $(build)/$(BOARD)/$(CB_OUTPUT_FILE)
|
|
$(call do,MV 4MB top ROM,$@, mv $< $@)
|
|
@sha256sum $@
|