mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-18 20:47:55 +00:00
split the x230 ROM image into 8MB and 4MB pieces (issue #375)
This commit is contained in:
parent
0eff9914ea
commit
4fe148a19b
@ -15,3 +15,12 @@ CONFIG_LINUX_USB=y
|
||||
CONFIG_LINUX_E1000E=y
|
||||
|
||||
export CONFIG_BOOTSCRIPT=/bin/x230-flash.init
|
||||
|
||||
# This board is "special" in that we only want the top 4 MB of the ROM
|
||||
# for flashing into SPI flash 1 on the mainboard. This is enough to
|
||||
# allow the board to boot into a minimal Heads and read the full
|
||||
# ROM from an external USB media.
|
||||
all: $(build)/$(BOARD)/$(BOARD).rom
|
||||
$(build)/$(BOARD)/$(BOARD).rom: $(build)/$(BOARD)/coreboot.rom
|
||||
dd of=$@ if=$< bs=65536 count=64 skip=128
|
||||
sha256sum $@
|
||||
|
@ -28,3 +28,19 @@ export CONFIG_BOOT_KERNEL_ADD="intel_iommu=on"
|
||||
export CONFIG_BOOT_KERNEL_REMOVE="quiet"
|
||||
export CONFIG_BOOT_DEV="/dev/sda1"
|
||||
export CONFIG_USB_BOOT_DEV="/dev/sdb1"
|
||||
|
||||
# This board has two SPI flash chips, an 8 MB that holds the IFD,
|
||||
# the ME image and part of the coreboot image, and a 4 MB one that
|
||||
# has the rest of the coreboot and the reset vector.
|
||||
#
|
||||
# When flashing via an external programmer it is easiest to have
|
||||
# to separate files for these pieces.
|
||||
all: $(build)/$(BOARD)/$(BOARD)-8.rom
|
||||
$(build)/$(BOARD)/$(BOARD)-8.rom: $(build)/$(BOARD)/coreboot.rom
|
||||
dd of=$@ if=$< bs=65536 count=128 skip=0
|
||||
sha256sum $@
|
||||
|
||||
all: $(build)/$(BOARD)/$(BOARD)-4.rom
|
||||
$(build)/$(BOARD)/$(BOARD)-4.rom: $(build)/$(BOARD)/coreboot.rom
|
||||
dd of=$@ if=$< bs=65536 count=64 skip=128
|
||||
sha256sum $@
|
||||
|
Loading…
Reference in New Issue
Block a user