Skip to content
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: use fbwhiptail and gui-init instead of generic-init #465

Merged
merged 1 commit into from
Feb 8, 2019

Conversation

merge
Copy link
Contributor

@merge merge commented Oct 11, 2018

NOTE: This is nothing new. It takes things from #452 and #377 applied to today's master branch, reduced to one simple change. This is what I'm running for some time now. I like it, so I thought about making this a little easier to merge or discuss:

This changes Heads' bootscript for the x230 to gui-init and adds config
options needed for it. The config is very similar to the librem13v2 config.

My comparison of startup-time from a power-button press shows 2.5 seconds
more until I see the menu to use, with these changes applied.

That said, the experience is smooth, the GUI is beautiful and easier to use
than the shell and text menu, especially during setup. That's what we
buy with startup time here.

@merge
Copy link
Contributor Author

merge commented Oct 18, 2018

please don't quite merge this: I see the exact same UI glitches described here: #215 and describe the details over there.

@tlaurion
Copy link
Collaborator

tlaurion commented Oct 18, 2018

coreboot-x230.config is missing a change.
See here

@merge
Copy link
Contributor Author

merge commented Oct 19, 2018

Adding

--- a/config/coreboot-x230.config
+++ b/config/coreboot-x230.config
@@ -637,7 +637,7 @@ CONFIG_PAYLOAD_LINUX=y
 CONFIG_PAYLOAD_FILE="../../build/x230/bzImage"
 CONFIG_PAYLOAD_OPTIONS=""
 # CONFIG_PXE is not set
-CONFIG_LINUX_COMMAND_LINE="quiet"
+CONFIG_LINUX_COMMAND_LINE="intel_iommu=igfx_off quiet"
 CONFIG_LINUX_INITRD="../../build/x230/initrd.cpio.xz"
 # CONFIG_PAYLOAD_IS_FLAT_BINARY is not set
 

still leads to the same glitches that make dm-crypt booting impossible...

@tlaurion
Copy link
Collaborator

@merge then I guess I'll test ubuntu. Same happens with the installer, right?

@tlaurion
Copy link
Collaborator

Having issues booting up from iso and running out of free sdcards to dd.
#470

@merge
Copy link
Contributor Author

merge commented Nov 19, 2018

UI glitches seem to be fixed now and I think that this is the minimal change for switching to gui-init on the x230.

@tlaurion
Copy link
Collaborator

@merge : check #480 which includes @flammit i915 fixes he proposed a while back and have always worked. :)

@merge
Copy link
Contributor Author

merge commented Nov 20, 2018

@tlaurion thanks! I tested your/flammit's settings and they work just fine. I've updated this PR. Do you still see anything wrong with it?

@flammit
Copy link
Collaborator

flammit commented Nov 21, 2018

@merge what do you think about having this be a new x230-gui board? my hesitation is that last I checked whiptail or its libs are not built reproducibly right now, which would make me hesitate making it the default x230 rom that is released. I do think having this around as a easy option instead of individual's branches everywhere would be nicer.

@osresearch any thoughts?

@merge
Copy link
Contributor Author

merge commented Nov 21, 2018

I'd say no to a x230-gui board: The x230 board still has the useless 4M and 8M artifacts and there's the (actually optional) x230-flash board which all makes the X230 already a pretty complicated thing for users; worth simplifying. IMO adding x230-gui would make things worse and might slow down having a stable gui.

Thanks for bringing reproducibility up. I'll test.

@flammit
Copy link
Collaborator

flammit commented Nov 21, 2018

@merge makes sense and I'm down for cleaning things up. I'll update and test on my x230s as well.

@merge
Copy link
Contributor Author

merge commented Nov 22, 2018

Is the following test sufficient to verify reprocuibility (needs #483 applied first)?

make BAORD=x230                                                                 
(save build/x230/coreboot.rom's hash)                                           
make real.clean                                                                 
make BAORD=x230                                                                 
(compare, save)                                                                 
make real.clean                                                                 
make BAORD=x230                                                                 
(compare, save, and so on)                                                      

In the above sense, the build is reproducible for me.
I have this PR applied on today's master, and #483 on top of it.

But out of interest: @kylerankin how do you build reproducibly for the Librem 13?
Any scirpts or changes involved? After all we basically want to build the same
thing for the x230 here.

@kylerankin
Copy link
Collaborator

kylerankin commented Nov 22, 2018 via email

@flammit
Copy link
Collaborator

flammit commented Nov 22, 2018

@merge I usually just test the build on a variety of machines/distros combinations (locally and with the help of cloud servers). IIRC, I saw binary differences in libslang between Ubuntu 16.04 and Fedora 28.

@flammit
Copy link
Collaborator

flammit commented Nov 24, 2018

@merge sorry I misspoke, the problem was in cairo and this seems to fix it: #486

@tlaurion tlaurion mentioned this pull request Jan 17, 2019
@merge
Copy link
Contributor Author

merge commented Feb 7, 2019

FWIW, this is exactly what I've been running and demostrating on my laptop at the coreboot stand at FOSDEM. It definitely was an eye-catcher. thanks @kylerankin and others who did the gui.

I'll rebase this soon, if at all necessary.

This changes Heads' bootscript for the x230 to gui-init and adds config
options needed for it. The config is very similar to the librem13v2 config.

My comparison of startup-time from a power-button press shows 2.5 seconds
more with these changes applied.

That said, the experience is smooth, the GUI is beautiful and easier to use
than the shell and text menu, especially during setup. That's what we
buy with startup time here.
@tlaurion tlaurion merged commit 98598e7 into linuxboot:master Feb 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants