2017-10-18 17:56:32 +00:00
|
|
|
# Configuration for a Winterfell OCP node
|
2018-02-13 20:47:31 +00:00
|
|
|
# and it uses LinuxBoot, not coreboot.
|
2018-02-05 16:27:45 +00:00
|
|
|
CONFIG_LINUXBOOT=y
|
|
|
|
CONFIG_LINUXBOOT_ROM=blobs/winterfell.rom
|
2018-02-05 20:59:26 +00:00
|
|
|
CONFIG_LINUX_CONFIG=config/linux-linuxboot.config
|
2018-02-05 16:27:45 +00:00
|
|
|
|
2020-08-20 23:26:48 +00:00
|
|
|
export CONFIG_LINUX_VERSION=4.14.62
|
|
|
|
|
2018-02-13 22:46:48 +00:00
|
|
|
# If you want to build with the go-based u-root instead of Heads
|
2018-02-28 07:46:14 +00:00
|
|
|
CONFIG_UROOT ?= y
|
2018-02-13 20:47:31 +00:00
|
|
|
|
2018-02-13 22:46:48 +00:00
|
|
|
ifeq "$(CONFIG_UROOT)" "y"
|
|
|
|
# The busybox will likely be redundant and can be trimmed for space.
|
|
|
|
CONFIG_BUSYBOX=n
|
|
|
|
CONFIG_ZLIB=n
|
|
|
|
CONFIG_MUSL=n
|
|
|
|
else
|
|
|
|
# These don't fit if u-root is turned on
|
2018-05-02 15:38:39 +00:00
|
|
|
#CONFIG_CRYPTSETUP=y
|
2024-09-01 19:02:42 +00:00
|
|
|
#CONFIG_FLASHPROG=y
|
2018-02-28 07:46:14 +00:00
|
|
|
CONFIG_FLASHTOOLS=y
|
2018-02-13 22:46:48 +00:00
|
|
|
CONFIG_GPG=y
|
2017-10-18 17:56:32 +00:00
|
|
|
CONFIG_KEXEC=y
|
|
|
|
CONFIG_UTIL_LINUX=y
|
2018-05-02 15:38:39 +00:00
|
|
|
#CONFIG_LVM2=y
|
|
|
|
#CONFIG_MBEDTLS=y
|
2017-10-18 17:56:32 +00:00
|
|
|
CONFIG_PCIUTILS=y
|
|
|
|
CONFIG_POPT=y
|
2018-02-08 00:05:56 +00:00
|
|
|
#CONFIG_QRENCODE=y
|
|
|
|
#CONFIG_TPMTOTP=y
|
2017-10-18 17:56:32 +00:00
|
|
|
CONFIG_DROPBEAR=y
|
2018-02-13 22:46:48 +00:00
|
|
|
endif
|
2017-10-18 17:56:32 +00:00
|
|
|
|
2018-02-13 20:47:31 +00:00
|
|
|
# Linux modules will still be linked into the u-root tree
|
2017-10-18 17:56:32 +00:00
|
|
|
CONFIG_LINUX_USB=y
|
2018-02-02 21:27:13 +00:00
|
|
|
CONFIG_LINUX_MLX4=y
|
2018-02-08 00:05:56 +00:00
|
|
|
CONFIG_LINUX_ATA=y
|
|
|
|
CONFIG_LINUX_AHCI=y
|
|
|
|
CONFIG_LINUX_E1000E=y
|
2018-02-28 19:06:53 +00:00
|
|
|
CONFIG_LINUX_NVME=y
|
2017-10-18 17:56:32 +00:00
|
|
|
|
2018-02-28 19:57:46 +00:00
|
|
|
export CONFIG_BOOTSCRIPT=/bin/generic-init
|
|
|
|
export CONFIG_TPM=n
|
|
|
|
export CONFIG_BOOT_REQ_HASH=n
|
|
|
|
export CONFIG_BOOT_REQ_ROLLBACK=n
|
2018-02-08 00:05:56 +00:00
|
|
|
|
2021-07-22 22:24:55 +00:00
|
|
|
#$(board_build)/linuxboot.rom: $(build)/$(linuxboot_dir)/
|
2018-02-08 00:05:56 +00:00
|
|
|
|
|
|
|
# No 0x on these since the flasher doesn't handle that
|
|
|
|
dxe_offset := 860000
|
|
|
|
dxe_size := 6a0000
|
2021-07-22 22:24:55 +00:00
|
|
|
flash-dxe: $(board_build)/linuxboot.rom
|
2018-02-08 00:05:56 +00:00
|
|
|
( echo u$(dxe_offset) $(dxe_size) ; \
|
|
|
|
pv $(build)/linuxboot-git/build/$(BOARD)/dxe.vol \
|
|
|
|
) > /dev/ttyACM0
|
|
|
|
|
2021-07-22 22:24:55 +00:00
|
|
|
flash: $(board_build)/linuxboot.rom
|
2018-02-08 00:05:56 +00:00
|
|
|
( echo u0 1000000 ; \
|
|
|
|
pv $< \
|
|
|
|
) > /dev/ttyACM0
|