mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-11 01:38:25 +02:00
grub2: disable vga (640x350) fallback driver.
This mode is incompatible on bay-trail.
This commit is contained in:
1
lfs/grub
1
lfs/grub
@@ -77,6 +77,7 @@ $(subst %,%_MD5,$(objects)) :
|
|||||||
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||||
@$(PREBUILD)
|
@$(PREBUILD)
|
||||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
|
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
|
||||||
|
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/grub-2.00_disable_vga_fallback.patch
|
||||||
cd $(DIR_APP) && \
|
cd $(DIR_APP) && \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
|
|||||||
15
src/patches/grub-2.00_disable_vga_fallback.patch
Normal file
15
src/patches/grub-2.00_disable_vga_fallback.patch
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
We have to remove the vga fallback because this not work on bay-trail and other
|
||||||
|
new intel onboard graphics.
|
||||||
|
|
||||||
|
diff -Naur grub-2.00.org/grub-core/video/i386/pc/vga.c grub-2.00/grub-core/video/i386/pc/vga.c
|
||||||
|
--- grub-2.00.org/grub-core/video/i386/pc/vga.c 2012-06-06 23:21:02.000000000 +0200
|
||||||
|
+++ grub-2.00/grub-core/video/i386/pc/vga.c 2014-09-05 21:41:04.790870375 +0200
|
||||||
|
@@ -122,7 +122,7 @@
|
||||||
|
{
|
||||||
|
grub_err_t err;
|
||||||
|
|
||||||
|
- if ((width && width != VGA_WIDTH) || (height && height != VGA_HEIGHT))
|
||||||
|
+// if ((width && width != VGA_WIDTH) || (height && height != VGA_HEIGHT))
|
||||||
|
return grub_error (GRUB_ERR_UNKNOWN_DEVICE, "no matching mode found");
|
||||||
|
|
||||||
|
framebuffer.temporary_buffer = grub_malloc (VGA_HEIGHT * VGA_WIDTH);
|
||||||
Reference in New Issue
Block a user