Rizwan Qureshi has uploaded this change for review. ( https://review.coreboot.org/c/vboot/+/32679
Change subject: vboot: Fix build error related to VB2_SHARED_DATA_VERSION_MINOR
......................................................................
vboot: Fix build error related to VB2_SHARED_DATA_VERSION_MINOR
vboot fails to compile with the error
"error: comparison is always false due to limited range
of data type [-Werror=type-limits]"
since struct_version_minor is uint16_t and can never be less than
VB2_SHARED_DATA_VERSION_MINOR (0)
Signed-off-by: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Change-Id: I0e68981fbecafe7ba40e00ee657e82c024a89325
---
M firmware/2lib/2misc.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/vboot refs/changes/79/32679/1
diff --git a/firmware/2lib/2misc.c b/firmware/2lib/2misc.c
index 95cbae3..195a0f9 100644
--- a/firmware/2lib/2misc.c
+++ b/firmware/2lib/2misc.c
@@ -128,7 +128,7 @@
return VB2_ERROR_SHARED_DATA_MAGIC;
if (sd->struct_version_major != VB2_SHARED_DATA_VERSION_MAJOR ||
- sd->struct_version_minor < VB2_SHARED_DATA_VERSION_MINOR)
+ sd->struct_version_minor != VB2_SHARED_DATA_VERSION_MINOR)
return VB2_ERROR_SHARED_DATA_VERSION;
return VB2_SUCCESS;
--
To view, visit https://review.coreboot.org/c/vboot/+/32679
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: vboot
Gerrit-Branch: master
Gerrit-Change-Id: I0e68981fbecafe7ba40e00ee657e82c024a89325
Gerrit-Change-Number: 32679
Gerrit-PatchSet: 1
Gerrit-Owner: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-MessageType: newchange
Pablo Moyano has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/34105 )
Change subject: payloads/external/GRUB2/Makefile: Add ./bootstrap to fix build
......................................................................
payloads/external/GRUB2/Makefile: Add ./bootstrap to fix build
At some point between Grub 2.02 and 2.04, something was added
and it refuses to build without it.
Change-Id: Ia8fca13fe58be55aa4569ff58bbfd76ab7a67cdd
Signed-off-by: Pablo <42.pablo.ms(a)gmail.com>
---
M payloads/external/GRUB2/Makefile
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/05/34105/1
diff --git a/payloads/external/GRUB2/Makefile b/payloads/external/GRUB2/Makefile
index 31c4066..b036aeb 100644
--- a/payloads/external/GRUB2/Makefile
+++ b/payloads/external/GRUB2/Makefile
@@ -28,7 +28,7 @@
echo " CONFIG GRUB2 $(NAME-y)"
rm -rf grub2/build
mkdir grub2/build
- cd grub2 && ./autogen.sh
+ cd grub2 && ./bootstrap && ./autogen.sh
cd grub2/build && ../configure CC="$(HOSTCC)" LD="$(LD)" \
FREETYPE="pkg-config freetype2" BUILD_FREETYPE="pkg-config freetype2" \
TARGET_CC="$(CC)" TARGET_OBJCOPY="$(OBJCOPY)" TARGET_STRIP="$(STRIP)" \
--
To view, visit https://review.coreboot.org/c/coreboot/+/34105
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ia8fca13fe58be55aa4569ff58bbfd76ab7a67cdd
Gerrit-Change-Number: 34105
Gerrit-PatchSet: 1
Gerrit-Owner: Pablo Moyano <42.pablo.ms(a)gmail.com>
Gerrit-MessageType: newchange
Patrick Rudolph has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/49218 )
Change subject: [WIP]device/Kconfig: Introduce separate graphics menu for Aspeed
......................................................................
[WIP]device/Kconfig: Introduce separate graphics menu for Aspeed
Allows to select which graphics initialisation to do for Aspeed graphics.
Change-Id: I63e58dfacd6cd0b8fab188e27d34ade9b1344a48
Signed-off-by: Patrick Rudolph <patrick.rudolph(a)9elements.com>
---
M src/device/Kconfig
A src/device/graphics/Kconfig
A src/device/graphics/aspeed/Kconfig
M src/drivers/aspeed/ast2050/ast2050.c
M src/drivers/aspeed/common/Kconfig
5 files changed, 69 insertions(+), 19 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/18/49218/1
diff --git a/src/device/Kconfig b/src/device/Kconfig
index a176f0a..ca1b4c77 100644
--- a/src/device/Kconfig
+++ b/src/device/Kconfig
@@ -46,13 +46,6 @@
Selected by mainboards / drivers that provide native graphics
init for Intel GPUs within coreboot.
-config MAINBOARD_HAS_NATIVE_ASPEED_VGA_INIT
- def_bool n
- select MAINBOARD_HAS_NATIVE_VGA_INIT
- help
- Selected by mainboards / drivers that provide native graphics
- init for Aspeed GPUs within coreboot.
-
config MAINBOARD_HAS_NATIVE_RK3288_VGA_INIT
def_bool n
select MAINBOARD_HAS_NATIVE_VGA_INIT
@@ -73,6 +66,8 @@
Selected by mainboards that implement support for `libgfxinit`.
Usually this requires a list of ports to be probed for displays.
+source "src/device/graphics/Kconfig"
+
choice
prompt "Graphics initialization"
default NO_GFX_INIT if VGA_BIOS && PAYLOAD_SEABIOS
diff --git a/src/device/graphics/Kconfig b/src/device/graphics/Kconfig
new file mode 100644
index 0000000..f45bf30
--- /dev/null
+++ b/src/device/graphics/Kconfig
@@ -0,0 +1,3 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
+source "src/device/graphics/aspeed/Kconfig"
diff --git a/src/device/graphics/aspeed/Kconfig b/src/device/graphics/aspeed/Kconfig
new file mode 100644
index 0000000..1f26629
--- /dev/null
+++ b/src/device/graphics/aspeed/Kconfig
@@ -0,0 +1,46 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
+config MAINBOARD_HAS_NATIVE_ASPEED_VGA_INIT
+ def_bool n
+ select MAINBOARD_HAS_NATIVE_VGA_INIT
+ help
+ Selected by mainboards / drivers that provide native graphics
+ init for Aspeed GPUs within coreboot.
+
+config MAINBOARD_FORCE_NATIVE_ASPEED_VGA_INIT
+ def_bool n
+ depends on MAINBOARD_HAS_NATIVE_ASPEED_VGA_INIT
+ help
+ Selected by mainboards / chipsets whose graphics driver can't or
+ shouldn't be disabled.
+
+choice
+ prompt "Aspeed graphics initialization"
+ default DO_NATIVE_ASPEED_VGA_INIT if MAINBOARD_FORCE_NATIVE_ASPEED_VGA_INIT
+ default NO_ASPEED_VGA_INIT if VGA_BIOS && PAYLOAD_SEABIOS
+ default VGA_ROM_RUN_ASPEED_VGA_INIT if VGA_BIOS
+ default DO_NATIVE_ASPEED_VGA_INIT
+
+config DO_NATIVE_ASPEED_VGA_INIT
+ bool "Native"
+ depends on MAINBOARD_HAS_NATIVE_ASPEED_VGA_INIT
+ help
+ Selected by mainboards / drivers that do native graphics
+ init for Aspeed GPUs within coreboot.
+
+config VGA_ROM_RUN_ASPEED_VGA_INIT
+ bool "Legacy VGA Option ROM"
+ depends on !MAINBOARD_FORCE_NATIVE_ASPEED_VGA_INIT
+ depends on VGA_ROM_RUN
+ help
+ FIXME: This won't work unless VGA_ROM_RUN is selected as well
+ Selected by mainboards / drivers that do include a Aspeed VBIOS in
+ the CBFS for Aspeed GPUs within coreboot.
+
+config NO_ASPEED_VGA_INIT
+ bool "None"
+ depends on !MAINBOARD_FORCE_NATIVE_ASPEED_VGA_INIT
+ help
+ Select this to not perform any graphics initialization in
+ coreboot on the Aspeed GPU.
+endchoice
diff --git a/src/drivers/aspeed/ast2050/ast2050.c b/src/drivers/aspeed/ast2050/ast2050.c
index 5cb7198..17d5439 100644
--- a/src/drivers/aspeed/ast2050/ast2050.c
+++ b/src/drivers/aspeed/ast2050/ast2050.c
@@ -36,18 +36,24 @@
outb(0xa6, 0x3d4); outb(0x2f, 0x3d5);
outb(0xa7, 0x3d4); outb(0x3f, 0x3d5);
- if (CONFIG(VGA_TEXT_FRAMEBUFFER)) {
- /* Initialize standard VGA text mode */
- vga_io_init();
+ if (CONFIG(VGA_ROM_RUN_ASPEED_VGA_INIT)) {
+ pci_dev_init(dev);
+ } else if (CONFIG(DO_NATIVE_ASPEED_VGA_INIT)) {
+ if (CONFIG(VGA_TEXT_FRAMEBUFFER)) {
+ /* Initialize standard VGA text mode */
+ vga_io_init();
- vga_textmode_init();
- printk(BIOS_INFO, "ASpeed VGA text mode initialized\n");
+ vga_textmode_init();
+ printk(BIOS_INFO, "ASpeed VGA text mode initialized\n");
- /* if we don't have console, at least print something... */
- vga_line_write(0, "ASpeed VGA text mode initialized");
- } else if (CONFIG(GENERIC_LINEAR_FRAMEBUFFER)) {
- ast_driver_framebuffer_init(&drm_dev, 0);
- printk(BIOS_INFO, "ASpeed high resolution framebuffer initialized\n");
+ /* if we don't have console, at least print something... */
+ vga_line_write(0, "ASpeed VGA text mode initialized");
+ } else if (CONFIG(GENERIC_LINEAR_FRAMEBUFFER)) {
+ ast_driver_framebuffer_init(&drm_dev, 0);
+ printk(BIOS_INFO, "ASpeed high resolution framebuffer initialized\n");
+ }
+ } else {
+ printk(BIOS_INFO, "ASpeed: Skipping graphics init.\n");
}
}
diff --git a/src/drivers/aspeed/common/Kconfig b/src/drivers/aspeed/common/Kconfig
index 79c4c75..50d4a38 100644
--- a/src/drivers/aspeed/common/Kconfig
+++ b/src/drivers/aspeed/common/Kconfig
@@ -1,6 +1,6 @@
config DRIVERS_ASPEED_AST_COMMON
bool
- select HAVE_LINEAR_FRAMEBUFFER if MAINBOARD_DO_NATIVE_VGA_INIT
- select HAVE_VGA_TEXT_FRAMEBUFFER if MAINBOARD_DO_NATIVE_VGA_INIT
+ select HAVE_LINEAR_FRAMEBUFFER if DO_NATIVE_ASPEED_VGA_INIT
+ select HAVE_VGA_TEXT_FRAMEBUFFER if DO_NATIVE_ASPEED_VGA_INIT
select VGA if VGA_TEXT_FRAMEBUFFER
select SOFTWARE_I2C if GENERIC_LINEAR_FRAMEBUFFER
--
To view, visit https://review.coreboot.org/c/coreboot/+/49218
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I63e58dfacd6cd0b8fab188e27d34ade9b1344a48
Gerrit-Change-Number: 49218
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-MessageType: newchange