-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
X230 - working fbwhiptail support #377
Conversation
Does this change the startup time significantly? I recall testing with the x230 i915 driver and seeing five seconds before anything was displayed. |
Also need to check the size of the resulting kernel against the x230 flasher image -- it shares the same |
EDIT: This is functioning now. Not sure just enabling DRM is the good way to do it.
|
@@ -1505,7 +1505,7 @@ CONFIG_DRM_FBDEV_EMULATION=y | |||
# ACP (Audio CoProcessor) Configuration | |||
# | |||
# CONFIG_DRM_NOUVEAU is not set | |||
# CONFIG_DRM_I915 is not set | |||
CONFIG_DRM_I915=y |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is a module not enough? Because no initrd is used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly.
Nice, but could you please elaborate on the commit Reduce required changes to minimum to x230 Linux config. It says Reduce, but the configuration is extended. Additionally, it’d be great if you could statements as the commit message summaries, that means, start with a verb in imperative mood. But that’s only my preference. |
Those additional config parameters are added when i915 DRM is activated. This is what I meant by "reduced Linux changes to minimum" for fbwhiptail to function, with glitches I do not know how to fix. @kakaroto told there was a fb module in fbwhiptail that could work? As previously said, this adds a total of 15 seconds and garbage on the screen. If there is no way of passing the fb from linux payload to kexec'd one, i'm not sure this is better then going with the console based whiptail option (based on NEWT and SLANG options). |
I just added back the linux FB support in fbwhiptail @da306967 |
Failing attempts to date: https://github.com/tlaurion/heads/tree/x230_fbwhiptail |
@tlaurion How does it fail exactly ? Do you get a /dev/dri/card0 device in heads or not? if not, do you get a /dev/fb? What errors does it print when you run fbwhiptail ? |
@kakaroto Difficult to say, cause there is no screen at all :) My last attempt of today was to add FB_SIMPLE into linux.
While using high-resolution frame-buffer support with native VGA init of coreboot.
Any suggestion into linux FB/DRI configuration options I should try? Or any troubleshooting path? |
@tlaurion what do you mean there's no screen at all? You should still have a configured screen. Just don't use gui-init as your start script and use the old generic-init script instead and in the recovery shell you should be able to see if /dev/fb exists or /dev/dri/card0. Also, if you run fbwhiptail manually in the recovery shell, you should see what errors it prints. |
coreboot 4.7 initializing VGA FB with libgfx or native high res, without linux having i915 driver doesn't bring any console up. There is only screen trash. On slack: There is some advancement, though. |
@osresearch @flammit : any idea why this screen corruption takes places? Can you guys test it? |
3ac8d4c
to
ee64a33
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@osresearch @flammit: this is working now, no flicker.
@@ -1505,7 +1505,7 @@ CONFIG_DRM_FBDEV_EMULATION=y | |||
# ACP (Audio CoProcessor) Configuration | |||
# | |||
# CONFIG_DRM_NOUVEAU is not set | |||
# CONFIG_DRM_I915 is not set | |||
CONFIG_DRM_I915=y |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly.
This is now working, no flicker at all but a small screen freeze while the FB gets rewritten. |
Combined with #404, I think this is ready to be UX tested in training environments. @osresearch Would you guys be ready to reach out? |
@tlaurion yes, coreboot doesn't need to do any kind of graphics init. On the librem with heads, there was no vgabios and no vbt, and coreboot graphics initialization was set to "None" (I eventually added the VBT back into coreboot only because without it, the OS wasn't able to control the screen brightness). |
@osresearch @flammit : This is ready to merge. |
This is why boards/x230-flash/x230-flash.config depends on config/linux-x230-flash.config so that i915 is not included since unnecessary. |
In an ideal world, x230-flash should boot gui-init (through FBWHIPTAIL) without TPMTOTP and other dependencies, which should be cherry-pickable from a config perspective. With FBWHIPTAIL, GPG, FLASHROM and FLASHTOOLS, the user could add his keys through the GUI to downloaded reproducible build rom in one single step prior to flashing the 12mb rom, from a minimalist and trusted environment. |
Smaller change set under #465. Closing. |
Changes required for the x230 to boot fbwhiptail.