This is enabled by CONFIG_RAMPAYLOAD. The code will look for a ram payload and, if it is found, try to run it. If the load fails or the payload returns it will continue with ramstage. We also include a new payload, linuxcheck, which is intended to verify that linux can be loaded and run, e.g. as a LinuxBoot payload. Currently, it fails. This does not yet work but it makes sense as a foundation on which to build. For one thing, we need to build at least a few tables for Linux. The goal for LinuxBoot is to build as few as possible. To test with linuxcheck (linux is not even close to working): cd payloads/linuxcheck/ cp x86config .config make cd ../.. make ./build/cbfstool build/coreboot.rom add-payload -n fallback/rampayload -f payloads/linuxcheck/linuxcheck.elf qemu-system-x86_64 -nographic -m 8192 -bios build/coreboot.rom -monitor /dev/pts/$1 -s We need to change the payload menu so we can add a rampayload but it's a bit tricky as written, so that must come later. Note that I'm still creating a special purpose romselfboot. The idea of merging romselfboot and selfboot is probably a good idea -- in the future. I think until we know how this should look, such a merge is premature. Signed-off-by: Ronald G. Minnich <rminnich@gmail.com> Change-Id: I8199aae6776f6dee969b370b0e6a41ef96e854d8 clang-formatted-by: Ronald G. Minnich Reviewed-on: https://review.coreboot.org/28402 Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com> Tested-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
115 lines
2.9 KiB
Text
115 lines
2.9 KiB
Text
#
|
|
# Automatically generated file; DO NOT EDIT.
|
|
# Libpayload Configuration
|
|
#
|
|
|
|
#
|
|
# Generic Options
|
|
#
|
|
# CONFIG_LP_GPL is not set
|
|
# CONFIG_LP_EXPERIMENTAL is not set
|
|
# CONFIG_LP_DEVELOPER is not set
|
|
# CONFIG_LP_CHROMEOS is not set
|
|
CONFIG_LP_COMPILER_GCC=y
|
|
# CONFIG_LP_COMPILER_LLVM_CLANG is not set
|
|
# CONFIG_LP_MEMMAP_RAM_ONLY is not set
|
|
|
|
#
|
|
# Architecture Options
|
|
#
|
|
# CONFIG_LP_ARCH_ARM is not set
|
|
CONFIG_LP_ARCH_X86=y
|
|
# CONFIG_LP_ARCH_ARM64 is not set
|
|
# CONFIG_LP_ARCH_MIPS is not set
|
|
# CONFIG_LP_MULTIBOOT is not set
|
|
CONFIG_LP_HEAP_SIZE=262144
|
|
CONFIG_LP_STACK_SIZE=16384
|
|
CONFIG_LP_BASE_ADDRESS=0x00100000
|
|
# CONFIG_LP_USE_MARCH_586 is not set
|
|
|
|
#
|
|
# Standard Libraries
|
|
#
|
|
CONFIG_LP_LIBC=y
|
|
CONFIG_LP_CURSES=y
|
|
# CONFIG_LP_TINYCURSES is not set
|
|
CONFIG_LP_PDCURSES=y
|
|
CONFIG_LP_CBFS=y
|
|
CONFIG_LP_LZMA=y
|
|
CONFIG_LP_LZ4=y
|
|
|
|
#
|
|
# Console Options
|
|
#
|
|
# CONFIG_LP_SKIP_CONSOLE_INIT is not set
|
|
CONFIG_LP_CBMEM_CONSOLE=y
|
|
CONFIG_LP_SERIAL_CONSOLE=y
|
|
CONFIG_LP_8250_SERIAL_CONSOLE=y
|
|
# CONFIG_LP_S5P_SERIAL_CONSOLE is not set
|
|
# CONFIG_LP_IPQ806X_SERIAL_CONSOLE is not set
|
|
# CONFIG_LP_IPQ40XX_SERIAL_CONSOLE is not set
|
|
# CONFIG_LP_BG4CD_SERIAL_CONSOLE is not set
|
|
# CONFIG_LP_PL011_SERIAL_CONSOLE is not set
|
|
CONFIG_LP_SERIAL_IOBASE=0x3f8
|
|
# CONFIG_LP_SERIAL_SET_SPEED is not set
|
|
# CONFIG_LP_SERIAL_ACS_FALLBACK is not set
|
|
CONFIG_LP_VIDEO_CONSOLE=y
|
|
CONFIG_LP_VGA_VIDEO_CONSOLE=y
|
|
# CONFIG_LP_GEODELX_VIDEO_CONSOLE is not set
|
|
CONFIG_LP_COREBOOT_VIDEO_CONSOLE=y
|
|
CONFIG_LP_FONT_SCALE_FACTOR=0
|
|
CONFIG_LP_PC_I8042=y
|
|
CONFIG_LP_PC_MOUSE=y
|
|
CONFIG_LP_PC_KEYBOARD=y
|
|
CONFIG_LP_PC_KEYBOARD_LAYOUT_US=y
|
|
# CONFIG_LP_PC_KEYBOARD_LAYOUT_DE is not set
|
|
|
|
#
|
|
# Drivers
|
|
#
|
|
CONFIG_LP_PCI=y
|
|
CONFIG_LP_NVRAM=y
|
|
CONFIG_LP_MOUSE_CURSOR=y
|
|
# CONFIG_LP_RTC_PORT_EXTENDED_VIA is not set
|
|
CONFIG_LP_SPEAKER=y
|
|
CONFIG_LP_TIMER_RDTSC=y
|
|
# CONFIG_LP_TIMER_NONE is not set
|
|
# CONFIG_LP_TIMER_MCT is not set
|
|
# CONFIG_LP_TIMER_TEGRA_1US is not set
|
|
# CONFIG_LP_TIMER_IPQ806X is not set
|
|
# CONFIG_LP_TIMER_ARMADA38X is not set
|
|
# CONFIG_LP_TIMER_IPQ40XX is not set
|
|
# CONFIG_LP_TIMER_ARM64_ARCH is not set
|
|
# CONFIG_LP_TIMER_RK3288 is not set
|
|
# CONFIG_LP_TIMER_RK3399 is not set
|
|
# CONFIG_LP_TIMER_CYGNUS is not set
|
|
# CONFIG_LP_TIMER_IMG_PISTACHIO is not set
|
|
# CONFIG_LP_TIMER_MTK is not set
|
|
# CONFIG_LP_TIMER_MVMAP2315 is not set
|
|
CONFIG_LP_TIMER_GENERIC_HZ=0
|
|
CONFIG_LP_TIMER_GENERIC_REG=0x0
|
|
CONFIG_LP_TIMER_GENERIC_HIGH_REG=0x0
|
|
CONFIG_LP_STORAGE=y
|
|
# CONFIG_LP_STORAGE_64BIT_LBA is not set
|
|
CONFIG_LP_STORAGE_ATA=y
|
|
CONFIG_LP_STORAGE_ATAPI=y
|
|
CONFIG_LP_STORAGE_AHCI=y
|
|
CONFIG_LP_STORAGE_AHCI_ONLY_TESTED=y
|
|
CONFIG_LP_USB=y
|
|
CONFIG_LP_USB_UHCI=y
|
|
CONFIG_LP_USB_OHCI=y
|
|
CONFIG_LP_USB_EHCI=y
|
|
CONFIG_LP_USB_XHCI=y
|
|
# CONFIG_LP_USB_XHCI_MTK_QUIRK is not set
|
|
# CONFIG_LP_USB_DWC2 is not set
|
|
CONFIG_LP_USB_HID=y
|
|
CONFIG_LP_USB_HUB=y
|
|
# CONFIG_LP_USB_EHCI_HOSTPC_ROOT_HUB_TT is not set
|
|
CONFIG_LP_USB_MSC=y
|
|
CONFIG_LP_USB_GEN_HUB=y
|
|
CONFIG_LP_USB_PCI=y
|
|
# CONFIG_LP_UDC is not set
|
|
# CONFIG_LP_BIG_ENDIAN is not set
|
|
CONFIG_LP_LITTLE_ENDIAN=y
|
|
CONFIG_LP_IO_ADDRESS_SPACE=y
|
|
CONFIG_LP_ARCH_SPECIFIC_OPTIONS=y
|