<div dir="ltr"><div dir="ltr" style="font-size:12.8px">Hello Matt,<div><br></div><div>I'll try to help you... Please, do understand that I did not get well what really you are trying to do. Let us do one step at the time.</div><div><br></div><div>This step: <span style="font-size:12.8px">2) video output works properly for SeaBIOS and grub/syslinux, but output is disabled once the OS / kernel driver loads.</span></div><div><span style="font-size:12.8px">_______</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">What I am getting from this email is the following (correct me if I am wrong): </span><span style="font-size:12.8px">BYT-FSP -> Coreboot -> (payload) SeaBIOS -> grub (2.0???) -> Linux kernel 3/4.x.y (?).</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Now. If you use as payload SeaBIOS, my best understanding is that you'll use CSM (Compatibility Support Mode). So, in other words, you'll use (if you will?) in Coreboot vBIOS (not GOP driver). Now, furthermore, you MUST use vBIOS, since you are using SeaBIOS. And Linux will use vBIOS (not GOP driver), since you'll pass INT 0x15 mechanisms for Linux GFX (using mandatory vBIOS passed from Coreboot), enforced from SeaBIOS - CSM?!</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">The question here is the following: why, for the change, you do not use as payload TianoCore? This one is UEFI compatible, and very well suits UEFI compliant Linux? In other words, you will use Linux as UEFI compliant/compatible OS. Compliant to Tiano Core, which brings to you UEFI features (initialized by default with Linux). Simply and plain... And see what will happen?</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Final line: I suspect, you did not built-in in Coreboot vBIOS package and vBIOS init (just serial output), which is, using SeaBIOS payload (CSM mechanism), I guess, mandatory (for Linux to overtake/inherit legacy, to work with GFX).</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thank you,</span></div><div><span style="font-size:12.8px">Zoran</span></div></div><div class="" style="margin:2px 0px 0px;font-size:12.8px"><div id=":mg" class="" tabindex="0"><img class="" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif" style=""></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 15, 2016 at 12:19 AM, Matt DeVillier <span dir="ltr"><<a href="mailto:matt.devillier@gmail.com" target="_blank">matt.devillier@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Greetings all!  Currently I'm working on getting upstream coreboot + SeaBIOS working on a Baytrail-based ChromeOS device (NINJA / AOpen Chromebox commerical).  After resolving some config issues which prevented the board from booting, I'm left with two issues on which I'm stuck:<br>
<br>
1) the internal emmc / sdhci controller fails to initialize, and is unavailable for boot or OS installation<br>
2) video output works properly for SeaBIOS and grub/syslinux, but output is disabled once the OS / kernel driver loads<br>
<br>
For the emmc, cbmem shows that the sdhci controller is timing out after setting the initial frequency, somewhere after line 410 of seabios/src/hw/sdcard.c.  Since the same exact SeaBIOS payload works properly with the stock ChromeOS firmware (in both the RW_LEGACY and BOOT_STUB slots), I suspect that the issue is with coreboot, but the SoC init is pretty much identical between upstream and NINJA's CrOS branch (save for a few base addresses and offset calculations), so not sure where to start looking.  I've also tried putting the sdhci controller back into PCI mode (vs ACPI) which had no effect.<br>
<br>
For the video output, the same vgabios file is being used as stock CrOS, and same SeaBIOS payload.  The i915 kernel driver reports that no displays are connected, and there are some errors in the drm module just prior.  I tested with a few different flavors of linux as well as Windows 10, to be certain it wasn't driver-related.<br>
<br>
Attached are the cbmem and kernel logs from both working (stock CroS firmware + upstream SeaBIOS/BOOT_STUB) and non-working (upstream coreboot+SeaBIOS) cases.<br>
<br>
As the board hasn't been officially upstreamed yet (something I will do once these issues are resolved), source can be found in my github repo here (it's just 3 commits on top of the current master branch): <a href="https://github.com/MattDevo/coreboot/tree/ninja_upstream" rel="noreferrer" target="_blank">https://github.com/MattDevo/coreboot/tree/ninja_upstream</a><br>
<br>
Hopefully someone can point me in the right direction here :)<br>
<br>
cheers,<br>
Matt<br>
<br>--<br>
coreboot mailing list: <a href="mailto:coreboot@coreboot.org">coreboot@coreboot.org</a><br>
<a href="https://www.coreboot.org/mailman/listinfo/coreboot" rel="noreferrer" target="_blank">https://www.coreboot.org/mailman/listinfo/coreboot</a><br></blockquote></div><br></div>