linuxboot / heads

A minimal Linux that runs as a coreboot or LinuxBoot ROM payload to provide a secure, flexible boot environment for laptops, workstations and servers.
https://osresearch.net/
GNU General Public License v2.0
1.41k stars 185 forks source link

Generalize whiptail usage to all platforms #477

Open tlaurion opened 5 years ago

tlaurion commented 5 years ago

I think it might be a good time to replace generic-init by gui-init, and let the board configuration options define if FBWhiptail is desired but default to whiptail. I think that it would be a good base in improving the UX for everyone.

@kylerankin @osresearch @flammit : What do you think?

merge commented 5 years ago

So your issue is making this a common goal of the project? FWIW I think it should be one. IMO this is essential for being broadly usable; especially so during setup.

tlaurion commented 5 years ago

Comment deleted. Created #517 instead to track the issue.

tlaurion commented 5 years ago

@merge : Yes. But each board should be validated individually to have proper Linux config FB support first from people having the models.

For the x230 board to become compatible with FBWhiptail, here were the required changes. To have Whiptail (console based) instead of FBwhiptail (FB based):

#Whiptail
CONFIG_SLANG=y
CONFIG_NEWT=y
#FBWhiptail
#CONFIG_CAIRO=y
#CONFIG_FBWHIPTAIL=y

#BOOT SCRIPT SELECTION
#export CONFIG_BOOTSCRIPT=/bin/generic-init
export CONFIG_BOOTSCRIPT=/bin/gui-init
#export CONFIG_BOOTSCRIPT_NETWORK=/bin/network-init-recovery

This is the list of board owners i've gathered from board config changes "blames". Can you test the above changes on the board config on those boards and adapt linux config files to activate FB and report?

@osresearch : leopard, tioga @vejmarie : r630, s2600wf @jgrip @flammit @osresearch : x220

osresearch commented 5 years ago

leopard/tioga have no video cards at all, r630/s2600wf are almost always headless.

tlaurion commented 5 years ago

So something like for the kgpe-d16 for all those.

On February 8, 2019 4:17:05 PM EST, Trammell Hudson notifications@github.com wrote:

leopard/tioga have no video cards at all, r630/s2600wf are almost always headless.

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/osresearch/heads/issues/477#issuecomment-461949793

-- Sent from my Android device with K-9 Mail. Please excuse my brevity.

tlaurion commented 2 years ago

whiptail is generalized for a while on all coreboot based platforms depending on heads for payload (this project). kpe-d16 server board config is an example of this.

Otherwise, this issue is more related to linuxboot based boards which never really received any love here since linuxboot is based on u-root on its payload