-
-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could we get rid of VGA BIOS binary? #4
Comments
I did try to do this, but, with seabios, I do not get any image until linux takes over. |
We can't just remove the vga bios. Native graphics init doesn't seem to work either. Did you try that? It's not all that bad having this as binary because of good coreboot integration and it seems to be identical for all X230 models. I just like to have this question open. It'd probably be a seperate project analyzing this vga bios. |
Dumb question as im relatively new to coreboot. (I did my first flash w/ this repo's build this weekend.) Is it possible to use native graphics int + SeaVGABios in lieu of the proprietary vendor vga rom? |
I guess it's always "native graphics init" or "run a VGA Bios binary". I didn't yet try to build a VGA bios using the seabios repo, and add that as "external" in coreboot. Do you want to try this? Also, it's been quite some time since I tried native graphics init, but last thing I heard was, to have graphics in a bootloader or payload, and also to support Windows, we need that extracted VGA bios. |
I wasn't sure how external it actually was. Coreboot wiki makes it sound like it's in the main tree just under a non obvious option:
I had planned on trying it unless someone told me it was a terrible idea, but it might be a few days before im ready to pop open the laptop again. I also don't know how I would test Windows compatibility. I mostly run NetBSD and sometimes dual boot Devuan. EDIT: Would booting the Win 10 installer, without going through installation be a sufficient test? |
x230 doesn't need vga bios and can be initiated by native VGA init code. Here is the x230 coreboot building configuration used by Heads to boot it's linux payload. Use that config and modify to use SeaBIOS. Ho. True that, maybe you're right. Maybe Seabios needs a VGA bios. Didn't try that. |
are you sure? last time I checked I didnt see seabios and grub, and had display only when my host linux started.
Am 29. April 2018 22:14:52 MESZ schrieb tlaurion <notifications@github.com>:
…x230 doesn't need vga bios and can be initiated by native init code.
Here is the [x230 coreboot building configuration
](https://github.com/osresearch/heads/blob/master/config/coreboot-x230.config)
used by Heads to boot it's linux payload. Use that config and modify to
use SeaBIOS.
--
Martin Kepplinger
http://martinkepplinger.com
sent from mobile
|
Thanks for the config link. Why do they have |
You can comment it out, since not used:
have you tested? |
I can confirm. I just flashed coreboot using the last source and compiled libgfxinit. Here is a gist of the make file |
Is this config based off the one in repo? There are quite a bit of changes... |
Ok. Thank you! Going to try it right now. |
Yeah, works! |
Thanks for testing this. We'll still use the blobs repo for microcode updates, but I'll test this soon and hope to be able to remove the vga file. great. |
Based on what @Thrilleratplay suggests I have the following config diff to the current one in our repo:
I don't have display in GRUB. SeaBIOS works though. The same goes for using thanks |
I do have display in GRUB. (even when using GRUB as payload) This is my config: .config: grub.cfg: |
you use GRUB as coreboot payload. You have display there, just like SeaBIOS has, using native vga init. What I'm talking about is GRUB on disk (or Windows on disk, which wouldn't work either, I think). Can you confirm having video in GRUB on disk? |
I am 80% sure I did. I will try it again later. You are using Grub 2.2? Do you have graphics module? Did you maybe set different graphics mode in grub.cfg? |
I use GRUB 2.0, a Debian stable default installation. |
As a reminder: my own tests reflect what is documented in the coreboot wiki: https://www.coreboot.org/Board:lenovo/x230#Proprietary_components.27_status So if any of you see this change, the page would need an update too. |
FWIW, the Video BIOS is owned by Intel, and they have some information on it
but in order to improve the situation, we'd have to get a statement from Intel about being allowed to distribute this. |
I can confirm I have GRUB working without VGA BIOS binary. |
I do as well using GRUB but I have only booted into Linux. Based on the how the Coreboot wikis for the x220 and x230 are worded, Windows or Windows bootloader may still require the VGA binary. |
Please post your coreboot config file. I've never found a configuration that worked, but I'd love to find one. |
I can confirm that this does not work for me. I don't see my GRUB menu with that config -.- what could I am be doing wrong? Did you install GRUB after flashing maybe? |
@merge If you using SeaBIOS, do you see the SeaBIOS output but not the GRUB menu? I mostly use GRUB to handle the disk encryption and hide the menu. Use the basic console but did not disable the graphical console.
These are the relevant lines from my grub config. If this does not provide enough information, I can post the whole thing in a gist. @nemanjan00 Are you using console output or graphical output for GRUB? |
I see seabios, but not GRUB, yes. I use Debian's default installation, which is what I always want to have supported, so trying to change grub configs doesn't really help for now. |
Part of my grub.cfg I think you are asking about:
|
thanks for your help! Indeed also Debian puts this in it's /etc/default/grub:
and when applying this (disabling the graphical terminal), seavgabios works, and shows my GRUB menu! So where to go from here? Of course we want a more free version. I don't know if this handles booting for Windows though. Also, we'd have to document the GRUB config visibly if we want to use this. I'd suggest maintaining a second configuration, and release 2 built images, one named "x230_coreboot_...._free.rom". Would this confuse people? |
…ntel's binary To make a GRUB bootloader installation (on the HDD) work, the graphical console has to be disabled in /etc/default/grub : GRUB_TERMINAL=console Remember to apply the change using update-grub. The menu is displayed in text mode. This is also discussed in #4
when configuring a linear "high resolution" framebuffer in coreboot, even the graphical GRUB console works. I don't see Linux' boot log afterwards though, so that's not yet a possible config. But still, we should find a way to add a text-based image, with a dependency on |
Glad you were able to get GRUB working without the VGA binary, even with the graphical menu. Not seeing the kernel boot messages is interesting. I do not see there either and thought it was because of the Nitrocaster mod in my x230. I noticed there have been updates in Coreboot lately that include the vbt.bin which may fix this. Although given how finicky the i915 can be, this is probably something that either a GRUB kernel parameter fix or will correct itself as libgfxinit matures |
What do you mean by kernel boot messages? I didn't notice anything
missing... I am getting messages from grub about loading kernel (from
grub.cfg) and then, I see systemd output...
…On Tue, May 22, 2018, 3:24 PM Tom Hiller ***@***.***> wrote:
Glad you were able to get GRUB working without the VGA binary, even with
the graphical menu.
Not seeing the kernel boot messages is interesting. I do not see there
either and thought it was because of the Nitrocaster mod
<https://forum.thinkpads.com/viewtopic.php?f=43> in my x230. I noticed
there have been updates in Coreboot lately that include the vbt.bin which
may fix this. Although given how finicky the i915 can be, this is probably
something that either a GRUB kernel parameter fix or will correct itself as
libgfxinit matures
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAbWl2olGcoOHZNZHprSIhzoHZNBLyg2ks5t1BGWgaJpZM4RkcRC>
.
|
I simply don't see early kernel log messages, when using |
going forward, there's #46 with the remaining problem I see |
Is there a configuration for having Video pre-Linux (in SeaBIOS and bootloader from HDD) without the binary VGA BIOS rom extracted from the vendor image?
The text was updated successfully, but these errors were encountered: