<div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hi Cameron, coreboot,<div><br></div><div>Yes I did indeed intend to reply to all in my previous mail, apologies :) So the previous two messages are now also included in this thread.</div><div><br></div><div>I've gone through the U-Boot readme and I see what you mean. However, with the uboot patch that Intel provides, the CONFIG_OF_EMBED option is enabled instead of CONFIG_OF_SEPARATE, like the U-Boot instructions suggest. The Intel-provided patch however does not change the manner in which the coreboot payload is included, i.e. the patch does not cause this command to be issued during coreboot build:<br><div><table class="m_-3625481997109459053m_-5648090906140422560gmail-highlight m_-3625481997109459053m_-5648090906140422560gmail-tab-size m_-3625481997109459053m_-5648090906140422560gmail-js-file-line-container" style="box-sizing:border-box;border-collapse:collapse;color:rgb(36,41,46);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px"><tbody style="box-sizing:border-box"><tr style="box-sizing:border-box"><td id="m_-3625481997109459053m_-5648090906140422560gmail-LC412" class="m_-3625481997109459053m_-5648090906140422560gmail-blob-code m_-3625481997109459053m_-5648090906140422560gmail-blob-code-inner m_-3625481997109459053m_-5648090906140422560gmail-js-file-line" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;box-sizing:border-box;padding:0px 10px;line-height:20px;vertical-align:top;overflow:visible;font-size:12px;word-wrap:normal;white-space:pre-wrap">./build/util/cbfstool/cbfstool build/coreboot.rom add-flat-binary -f u-boot-dtb.bin -n fallback/payload -c lzma -l 0x1110000 -e 0x1110000</td></tr></tbody></table></div></div><div><br></div><div>So after tweaking my U-Boot build to force the include of the coreboot video framebuffer (which I don't think was a problem previously, but it's included explicitly now, just for in case), I built U-Boot and it only produces u-boot.bin, but not u-boot-dtb.bin (contrary to expected result from readme). Thereafter I built coreboot with payload set to "None" via make menuconfig, and thereafter ran the above CBFS command (but using u-boot.bin instead of u-boot-dtb.bin). This build of coreboot + U-Boot still does not detect any USB controller, and I also get the same SPI bus error that you do after running "sf probe", as follows:</div><div><br></div><div><div>=> usb start</div><div>starting USB...</div><div>No controllers found</div><div>=> sf probe 0</div><div>Invalid bus 0 (err=-19)</div><div>Failed to initialize SPI flash at 0:0 (error -19)</div></div><div><div>=> sf probe 1</div><div>Invalid bus 0 (err=-19)</div><div>Failed to initialize SPI flash at 0:1 (error -19)</div></div><div><br></div><div>So from what I can tell, I did everything the instructions said to propagate the coreboot device tree to U-Boot. Can anybody tell me how do I know whether my coreboot device tree was propagated correctly to my U-Boot payload?</div><div><br></div><div>Many thanks!</div><span class="HOEnZb"><font color="#888888"><div>Tahnia</div><div><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 10, 2017 at 1:43 PM, Cameron Craig <span dir="ltr"><<a href="mailto:Cameron.Craig@exterity.com" target="_blank">Cameron.Craig@exterity.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">







<div lang="EN-GB" link="blue" vlink="purple">
<p class="m_-3625481997109459053m_5697756105484681483ImprintUniqueID"></p>
<div class="m_-3625481997109459053m_5697756105484681483WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Tahnia,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Did you mean to reply without including
<a href="mailto:coreboot@coreboot.org" target="_blank">coreboot@coreboot.org</a>? If you did mean to include them I would just reply to my message again, except hit Reply All
</span><span style="font-size:11.0pt;font-family:Wingdings;color:#1f497d">J</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> The mailing list may have advice on this
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">In the meantime, this is what led me to believe it is a device tree issue:
<a href="https://github.com/u-boot/u-boot/blob/master/doc/README.x86#L405" target="_blank">https://github.com/u-boot/u-bo<wbr>ot/blob/master/doc/README.x86#<wbr>L405</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">“With the default configuration, U-Boot is set up to use a separate Device Tree Blob (dtb).”<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">We are booting from SPI flash and U-Boot also fails to find it
</span><span style="font-size:11.0pt;font-family:Wingdings;color:#1f497d">L</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> See log attached (not that it’s that interesting)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">It’s still early days, haven’t looked into this in depth yet. I’m not ruling out anything at the moment<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Cheers,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Cameron<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div></div>
</div>
</div>
<p></p>
<p class="m_-3625481997109459053m_5697756105484681483ImprintUniqueID"> </p>
<p class="m_-3625481997109459053m_5697756105484681483ImprintUniqueID"><span><font style="font-family:Arial;font-size:12pt;color:#005cab;font-weight:bold">Cameron Craig</font><font color="#005cab" face="Arial"> |
</font><font style="font-family:Arial;font-size:12pt;color:#005cab">Graduate Software Engineer</font><font color="#005cab" face="Arial"> |
</font><font style="font-family:Arial;font-size:12pt;color:#005cab;font-weight:bold">Exterity Limited</font><br>
<font color="#005cab" size="2" face="Arial">tel: </font><font style="font-family:Arial;font-size:10pt;color:#005cab;font-weight:normal"><a href="tel:+44%201383%20828250" value="+441383828250" target="_blank">+44 1383 828 250</a></font><font color="#005cab" size="2" face="Arial"> | fax:
</font><font color="#005cab" size="2" face="Arial"> </font> <font style="font-family:Arial;font-size:10pt;color:#005cab"></font> <br>
</span><font color="#005cab" size="2" face="Arial">e: </font><font style="font-family:Arial;font-size:10pt;color:#005cab"><a href="mailto:Cameron.Craig@exterity.com" target="_blank">Cameron.Craig@exterity.com</a></font><font color="#005cab" size="2" face="Arial"> | w:
</font><font style="font-family:Arial;font-size:10pt;color:#005cab"><a href="http://www.exterity.com" target="_blank">www.exterity.com</a></font> <font style="font-family:Arial;font-size:10pt;color:#005cab"></font>  <br>
<font style="font-family:Arial;font-size:8pt;color:#005cab"></font><br>
 <br>
<font style="font-family:Arial;font-size:8pt;color:#005cab"></font><br>
<font face="Arial"><font size="1"><font color="#005cab"><font style="font-family:Arial;font-size:8pt;color:#005cab"></font><br>
</font></font></font></p>
<div class="m_-3625481997109459053m_5697756105484681483WordSection1">
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Tahnia Lichtenstein [mailto:<a href="mailto:unlich@gmail.com" target="_blank">unlich@gmail.com</a>]
<br>
<b>Sent:</b> 10 October 2017 10:06<br>
<b>To:</b> Cameron Craig<span><br>
<b>Subject:</b> Re: [coreboot] Intel Leaf Hill Coreboot Trouble<u></u><u></u></span></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hi Cameron,<u></u><u></u></p><div><div class="m_-3625481997109459053h5">
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I may be wrong, but I don't think it is related to the device tree . <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">The reason is because there is a device tree configured in the coreboot release (see coreboot\src\mainboard\in<wbr>tel\leafhill\devicetree.cb) and to the best of my understanding, the device tree information gets passed from coreboot to the
 payload during run-time. So I think U-Boot has access to this device tree.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Another reason is because I connected a SATA SDD to the board, and this drive is detected by U-Boot... If U-Boot had no device tree, then it would not be able to detect the SSD, I think. (See attached log for U-Boot serial output.)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">So my thoughts are that it is a USB specific problem in U-Boot... judging from some U-Boot posts it seems that other people also struggle to get USB working. So yes, I think you are correct in saying the U-Boot mailing list is a better
 place to try solve this USB-related problem :)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I also tried some other self-compiled payloads in the meantime, which I had different trouble with, and started a new thread for those.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Tahnia<u></u><u></u></p>
</div>
</div></div></div><div><div class="m_-3625481997109459053h5">
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Fri, Oct 6, 2017 at 5:42 PM, Cameron Craig <<a href="mailto:Cameron.Craig@exterity.com" target="_blank">Cameron.Craig@exterity.com</a>> wrote:<u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi Tahnia,<br>
<br>
> I am unfortunately not able to help you, since I myself am still new to coreboot (and to BIOS development in general).<br>
No worries, we'll get there eventually :)<br>
<br>
> When you ran the Intel-provided version (stitched with the Windows tool), did you experience any similar problems with the USB controller in U-Boot? If so, did you manage to solve it?<br>
We are looking at this at the moment. Early investigation suggests that U-Boot needs a device tree for Leaf Hill. Without that, U-Boot isn't aware of ant USB controllers, SPI Flash, PCI devices or anything.<br>
That's all I know at the moment, you might be better asking in the U-Boot mailing list.<br>
<br>
Unfortunately it looks like Intel don't bother providing a device tree for Leafhill. So we may end up writing our own, which I hear is a bit pernickety.<br>
<br>
<span class="m_-3625481997109459053m_5697756105484681483im">Cheers,</span><br>
<span class="m_-3625481997109459053m_5697756105484681483im">Cameron</span><br>
<br>
<br>
<span class="m_-3625481997109459053m_5697756105484681483im">Cameron Craig | Graduate Software Engineer | Exterity Limited</span><br>
<span class="m_-3625481997109459053m_5697756105484681483im">tel: <a href="tel:%2B44%201383%20828%20250" target="_blank">+44 1383 828 250</a> | fax:  | mobile:</span><br>
<span class="m_-3625481997109459053m_5697756105484681483im">e: <a href="mailto:Cameron.Craig@exterity.com" target="_blank">Cameron.Craig@exterity.com</a> | w:
<a href="http://www.exterity.com" target="_blank">www.exterity.com</a></span><br>
<br>
<br>
<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">______________________________<wbr>______________________________<wbr>__________<br>
This email has been scanned by the Symantec Email Security.cloud service.<br>
For more information please visit <a href="http://www.symanteccloud.com" target="_blank">
http://www.symanteccloud.com</a><br>
______________________________<wbr>______________________________<wbr>__________<u></u><u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal"><br>
______________________________<wbr>______________________________<wbr>__________<br>
This email has been scanned by the Symantec Email Security.cloud service.<br>
For more information please visit <a href="http://www.symanteccloud.com" target="_blank">http://www.symanteccloud.com</a><br>
______________________________<wbr>______________________________<wbr>__________<u></u><u></u></p>
</div></div></div>
</div><div><div class="m_-3625481997109459053h5">

<p></p>
<br clear="both">
______________________________<wbr>______________________________<wbr>__________<br>
This email has been scanned by the Symantec Email Security.cloud service.<br>
For more information please visit <a href="http://www.symanteccloud.com" target="_blank">http://www.symanteccloud.com</a><br>
______________________________<wbr>______________________________<wbr>__________<br>
</div></div></div>


</blockquote></div><br></div>
</div></div></div><br></div>