From a7cb24f774e37a58a862de8756b1492e6cb5c320 Mon Sep 17 00:00:00 2001 From: Bin Meng Date: Tue, 3 Aug 2021 20:50:03 +0800 Subject: x86: crownbay: Enable SeaBIOS support Enable SeaBIOS support for any kernel that requires legacy BIOS services. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- configs/crownbay_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/crownbay_defconfig b/configs/crownbay_defconfig index d7ee0fe45e8..1923f89b9ab 100644 --- a/configs/crownbay_defconfig +++ b/configs/crownbay_defconfig @@ -12,6 +12,7 @@ CONFIG_DISABLE_IGD=y CONFIG_SMP=y CONFIG_GENERATE_PIRQ_TABLE=y CONFIG_GENERATE_MP_TABLE=y +CONFIG_SEABIOS=y CONFIG_FIT=y CONFIG_SHOW_BOOT_PROGRESS=y CONFIG_USE_BOOTARGS=y -- cgit v1.2.3 From 85c052cc48c62d6b183a2b093814850b35858e9d Mon Sep 17 00:00:00 2001 From: Bin Meng Date: Tue, 3 Aug 2021 20:50:04 +0800 Subject: doc: x86: Update SeaBIOS build instructions Update SeaBIOS build instructions using exact command that involves "make olddefconfig", and mention SeaBIOS release 1.14.0 has been used for testing. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- doc/arch/x86.rst | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/doc/arch/x86.rst b/doc/arch/x86.rst index 0fdd43be803..5494155a519 100644 --- a/doc/arch/x86.rst +++ b/doc/arch/x86.rst @@ -379,24 +379,19 @@ Booting SeaBIOS is done via U-Boot's bootelf command, like below:: Using e1000#0 device TFTP from server 10.10.0.100; our IP address is 10.10.0.108 ... - Bytes transferred = 122124 (1dd0c hex) - ## Starting application at 0x000ff06e ... - SeaBIOS (version rel-1.9.0) + Bytes transferred = 128748 (1f6ec hex) + ## Starting application at 0x000fd269 ... + SeaBIOS (version rel-1.14.0-0-g155821a) ... -bios.bin.elf is the SeaBIOS image built from SeaBIOS source tree. -Make sure it is built as follows:: - - $ make menuconfig - -Inside the "General Features" menu, select "Build for coreboot" as the -"Build Target". Inside the "Debugging" menu, turn on "Serial port debugging" -so that we can see something as soon as SeaBIOS boots. Leave other options -as in their default state. Then:: +bios.bin.elf is the SeaBIOS image built from SeaBIOS source tree. At the time +being, SeaBIOS release 1.14.0 has been tested. To build the SeaBIOS image:: + $ echo -e 'CONFIG_COREBOOT=y\nCONFIG_COREBOOT_FLASH=n\nCONFIG_DEBUG_SERIAL=y\nCONFIG_DEBUG_COREBOOT=n' > .config + $ make olddefconfig $ make ... - Total size: 121888 Fixed: 66496 Free: 9184 (used 93.0% of 128KiB rom) + Total size: 128512 Fixed: 69216 Free: 2560 (used 98.0% of 128KiB rom) Creating out/bios.bin.elf Currently this is tested on QEMU x86 target with U-Boot chain-loading SeaBIOS -- cgit v1.2.3 From cedd754484eb929b6f90c60d5d7e6ee458440152 Mon Sep 17 00:00:00 2001 From: Bin Meng Date: Wed, 4 Aug 2021 11:53:39 +0800 Subject: x86: crownbay: Enable CONFIG_SPI_FLASH_SMART_HWCAPS Now that the spi-nor fix has been made in u-boot/master via: commit 87e7219f9c6a ("mtd: spi-nor: Respect flash's hwcaps in spi_nor_adjust_hwcaps()") enable CONFIG_SPI_FLASH_SMART_HWCAPS on Intel Crown Bay again. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- configs/crownbay_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/crownbay_defconfig b/configs/crownbay_defconfig index 1923f89b9ab..58c370a9893 100644 --- a/configs/crownbay_defconfig +++ b/configs/crownbay_defconfig @@ -47,7 +47,6 @@ CONFIG_TFTP_TSIZE=y CONFIG_REGMAP=y CONFIG_SYSCON=y CONFIG_CPU=y -# CONFIG_SPI_FLASH_SMART_HWCAPS is not set CONFIG_E1000=y CONFIG_SOUND=y CONFIG_SOUND_I8254=y -- cgit v1.2.3