<div>Hello Nico,<br></div><div><br></div><div>> you might have to accept that adding VGA compatibility for Windows may<br></div><div>> break compatibility with the secondary payloads. That"s not generally<br></div><div>> the case but about the last thing that gets tested.<br></div><div><br></div><div>From what I have learned so far it seems that the usecase Coreboot + Windows is that common which I can understand as it may sound strange to reduce the possible attacks via BIOS/AMT but then use an OS like Windows.<br></div><div><br></div><div>> If you don"t get this setup with SeaBIOS running, there are alterna-<br></div><div>> tives. One that comes to mind: Do native GFX init in coreboot, add the<br></div><div>> VGA blob (so far your config below) but use GRUB as primary payload and<br></div><div>> run SeaBIOS as secondary. You"d have to hand-craft your grub.cfg, some-<br></div><div>> thing like four choices: 1. Run your favorite open source OS 2. SeaBIOS<br></div><div>> for legacy compatibility 3. coreinfo 4. nvramcui<br></div><div><br></div><div>using grub as primary payload (instead of SeaBIOS) means that I have small linux running from my BIOS?<br></div><div>honestly this sounds like this is something that can be done by Coreboot Pro's to which I wouldn't count myself yet.<br></div><div>As my current Coreboot installation (SeaBIOS + VGA.rom) has not only break secondary payloads but also standby/resume, I want to rebuild my BIOS from scratch - unfortunately I need to wait until I have a new Clip for flashing as my old broke.<br></div><div><br></div><div>>> I"ve seen the following option in make nconfig for coreboot under<br></div><div>>> "General Setup": │    [*] Include the coreboot .config file into the ROM<br></div><div>>> image                │ <br></div><div>>> QUESTION: How can I extract this .config file? <br></div><div><br></div><div>> You can do that with cbfstool, e.g.<br></div><div> > $ build/cbfstool build/coreboot.rom extract -n config -f config.txt<br></div><div>> where your replace `build/coreboot.rom` with the path of your image and<br></div><div>> `config.txt` with the path to the output file.<br></div><div><br></div><div>I've done this but the resulting config is very short and doesn't include all settings which have been made in the first place.<br></div><div>A good approach might be:<br></div><div>1) Use a recommended config for X230 which will run Linux as OS and 2ndary payloads and Standby/Resume running<br>2) Change the config slightly to get windows boot running (adding a vga.rom)</div><div>Then do troubleshooting in case that the boot of secondary payloads and/or Standby/Resume is broken (with an included VGA.rom).<br></div><div>This is the config for Coreboot on a X230 which is in the coreboot wiki.<br></div><div>Is this the "best practise" configuration or just "a" configuration which has been stored there?<br></div><div><a href="https://review.coreboot.org/cgit/board-status.git/tree/lenovo/x230/4.6-938-gb08d73b845/2017-08-01T23_05_52Z/config.txt">https://review.coreboot.org/cgit/board-status.git/tree/lenovo/x230/4.6-938-gb08d73b845/2017-08-01T23_05_52Z/config.txt</a><br></div><div>I tried to build a rom with this config but run into errors when building the ROM.<br></div><div><br></div><div>> Another question about your setup, do you configure anything in SeaBIOS<br></div><div>> that is not visible from your coreboot .config? Anything GFX related?<br></div><div>> splashscreen? VESA mode?<br></div><div><br></div><div>I haven't configured SeaBIOS I've just git'ed coreboot, run make nconfig and added SeaBIOS as Payload there.<br></div><div>Haven't tweaked any SeaBIOS configs.<br></div><div>I have seen that I can also get Seabios via GIT and then use nconfig to adapt that configuration, but this wasn't covered in the wiki for the x230 and as such I have only used the coreboot configuration screen.<br></div><div>Any guidance how to build a specific SeaBIOS and how to include this in coreboot?<br></div><div><br></div><div>>> [Devices]<br></div><div>>> │     Graphics initialization (Use native graphics init)<br></div><div>> With this option you let coreboot initialize GFX. But you also let Sea-<br></div><div>> BIOS run the VGA BIOS. The former will be completely overrun. I doubt<br></div><div>> that it causes your secondary payload trouble, though.<br></div><div><br></div><div>Ok, as soon as I have a new flash clip, I will try to investigate this.<br></div><div>Which settings to you suggest in "Devices > Graphics initialization"?<br></div><div><br></div><div>>> |       --> Framebuffer mode (Legacy VGA text mode)<br></div><div>>> │     Display<br></div><div>>> │ -*- Enable PCIe Common Clock                                               │<br></div><div>>> │ -*- Enable PCIe ASPM<br></div><div>>> [*] Add a VGA BIOS image<br></div><div>>> │     (./3rdparty/blobs/mainboard/lenovo/x230/pci8086,0166.rom) VGA BIOS<br></div><div>>> │     (8086,0166) VGA device PCI IDs<br></div><div>>> <br></div><div>>> [Generic Drivers]<br></div><div>>> │           [*] Serial port on SuperIO<br></div><div><br></div><div>> WTF?<br></div><div><br></div><div>What is the problem here? Is this a bad choice?<br></div><div>I took this from existing documentation without knowing what the last option is.<br></div><div>All other optiions<br></div><div><br></div><div>>> │           [*] Support Intel PCI-e WiFi adapters<br></div><div>>> │           [*] PS/2 keyboard init<br></div><div><br></div><div>> Is this required? It"s odd to set it when using SeaBIOS.<br></div><div><br></div><div>The PS/2 Keyboard init was suggested in one of the howtos.<br></div><div>regarding Intel PCI-e Wifi, I am not sure - I can make a test without this option and look if this has impact to my wifi card.<br></div><div><br></div><div><br></div><div>>> │           [*] Enable TPM support<br></div><div>>> <br></div><div>>> [Console]<br></div><div>>> │       [*] Squelch AP CPUs from early console.<br></div><div>>> │       [*] Send console output to a CBMEM buffer<br></div><div>>> │           (0x20000) Room allocated for console output in CBMEM<br></div><div>>> │       [*]   Send POST codes to an external device<br></div><div>>> │               Device to send POST codes to (None)<br></div><div>>> │       [*]   Send POST codes to an IO port<br></div><div>>> │           (0x80)  IO port for POST codes<br></div><div>>> <br></div><div>>> [System tables]<br></div><div>>> │       [*] Generate SMBIOS tables<br></div><div>>> <br></div><div>>> [Payload]<br></div><div>>> │     Add a payload (SeaBIOS)  --->                                          │<br></div><div>>> │     SeaBIOS version (1.10.2)  --->                                         │<br></div><div>>> │     (0) PS/2 keyboard controller initialization timeout (milliseconds)     │<br></div><div><br></div><div>> Why override the default? If it works that"s just fine. I"m just wondering<br></div><div>> if we should have different defaults then.<br></div><div><br></div><div>What do you mean with overriding? Which option is not correct or might be optimized?<br></div><div>Will there coreboot configuration file be optimized for all settings when choosing the mainboard?<br></div><div>If so this would mean that I start from scratch to look what is working with the default settings and then slowly modify the configuration to get windows running and see what breaks at which point (2ndary payloads / standby resume etc).<br></div><div><br></div><div>[799]<br></div>