<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 22, 2017 at 9:08 AM, Zoran Stojsavljevic <span dir="ltr"><<a href="mailto:zoran.stojsavljevic@gmail.com" target="_blank">zoran.stojsavljevic@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">You mean, this one (in <i><u><b><font color="#ff0000">RED</font></b></u></i>)?<div><br></div><div><div>[user@localhost coreboot]$ cat .config | grep SPI</div><div>CONFIG_BOOT_DEVICE_SPI_FLASH_<wbr>BUS=0</div><div># CONFIG_TPM_ON_FAST_SPI is not set</div><div># CONFIG_SPI_FLASH_INCLUDE_ALL_<wbr>DRIVERS is not set</div><div>CONFIG_SOC_INTEL_COMMON_SPI_<wbr>FLASH_PROTECT=y</div><div># CONFIG_BOOTBLOCK_DEBUG_<wbr>SPINLOOP is not set</div><div># CONFIG_VERSTAGE_DEBUG_SPINLOOP is not set</div><div># CONFIG_ROMSTAGE_DEBUG_SPINLOOP is not set</div><div><b><i><u><font color="#ff0000">CONFIG_SPI_FLASH=y</font></u></i></b></div><div>CONFIG_BOOT_DEVICE_SPI_FLASH_<wbr>RW_NOMMAP=y</div><div>CONFIG_BOOT_DEVICE_SPI_FLASH_<wbr>RW_NOMMAP_EARLY=y</div><div># CONFIG_SPI_FLASH_SMM is not set</div><div># CONFIG_SPI_FLASH_NO_FAST_READ is not set</div><div># CONFIG_SPI_FLASH_FAST_READ_<wbr>DUAL_OUTPUT_3B is not set</div><div># CONFIG_SPI_FLASH_HAS_VOLATILE_<wbr>GROUP is not set</div><div># CONFIG_HAVE_SPI_CONSOLE_<wbr>SUPPORT is not set</div><div># CONFIG_BOOT_DEVICE_NOT_SPI_<wbr>FLASH is not set</div><div><b><i><u><font color="#ff0000">CONFIG_BOOT_DEVICE_SPI_FLASH=y</font></u></i></b></div><div># CONFIG_HAVE_ROMSTAGE_CONSOLE_<wbr>SPINLOCK is not set</div><div># CONFIG_HAVE_ROMSTAGE_NVRAM_<wbr>CBFS_SPINLOCK is not set</div><div># CONFIG_HAVE_ROMSTAGE_<wbr>MICROCODE_CBFS_SPINLOCK is not set</div><div># CONFIG_DEBUG_SPI_FLASH is not set</div><div>[user@localhost coreboot]$ </div></div><div>Which one (but, anyway, I think you are on the wrong mental tread, unless <b><i><u><font color="#ff0000">you explicitly prove to me that I am wrong</font></u></i></b>)? <img src="cid:ii_15a665cac65fe519" alt="Inline image 1" width="26" height="23"></div><span class="gmail-HOEnZb"><font color="#888888"><div><br></div></font></span></div></blockquote><div><br></div><div>Where are you setting the descriptor to use during the build? Those settings highlighted in red have nothing to do with the flash descriptor settings. Please look in src/southbridge/intel/common/firmware/Kconfig for that list. Also, without the full details of your config it's impossible to know what you are or aren't doing. </div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><span class="gmail-HOEnZb"><font color="#888888"><div></div><div>Zoran</div></font></span></div><div class="gmail-HOEnZb"><div class="gmail-h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 22, 2017 at 3:39 PM, Aaron Durbin <span dir="ltr"><<a href="mailto:adurbin@google.com" target="_blank">adurbin@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-m_-4791412229022018701HOEnZb"><div class="gmail-m_-4791412229022018701h5">On Wed, Feb 22, 2017 at 1:12 AM, Zoran Stojsavljevic<br>
<<a href="mailto:zoran.stojsavljevic@gmail.com" target="_blank">zoran.stojsavljevic@gmail.com</a><wbr>> wrote:<br>
> Hello to community,<br>
><br>
> I finally, after 3 days of additional very hard struggle, found out why I<br>
> have (while I am in the last stage of building CBFS) nonsense while building<br>
> APL-I Coreboot coreboot.rom?!<br>
><br>
> Please, read carefully this announcement.<br>
><br>
> For last three days I came to hard stop because of this failure:<br>
><br>
> Just quick look into the final failure (all passed, but last stage - IFD<br>
> failed):<br>
><br>
>     Compile IFDTOOL<br>
>     HOSTCC     util/ifdfake/ifdfake<br>
>     DD         Adding Intel Firmware Descriptor<br>
>     IFDTOOL    Unlocking Management Engine<br>
> File build/coreboot.pre is 8388608 bytes<br>
> No Flash Descriptor found in this image<br>
> src/southbridge/intel/common/f<wbr>irmware/Makefile.inc:50: recipe for target<br>
> 'add_intel_firmware' failed<br>
> make: *** [add_intel_firmware] Error 1<br>
> [user@localhost coreboot]$<br>
><br>
> At first, I suspect that culprit my .config file, but I have checked it<br>
> several times (maybe > dozen), and I could NOT find any problem with it<br>
> (except minor doubts).<br>
><br>
> Then I switched to inspect -southbridge- setup, but these is none, since<br>
> (simplified explanation/view) APL-I is SoC.<br>
><br>
> The next phase was to inspect<br>
> src/southbridge/intel/common/f<wbr>irmware/Makefile.inc , but there (although my<br>
> make scripting is rusty) I could NOT find any problem...<br>
><br>
> Finally, somewhere around 2:00 AM I noticed/determined the root cause of the<br>
> problem: the util/ifdtool/ifdtool.c, line:<br>
>           if (*(uint32_t *) (image + i) == 0x0FF0A55A) {<br>
><br>
> YET another INTEL IOTG PED hidden road bomb: the latest APL-I FSP:<br>
> APL-I_FSP/ApolloLakeFspBinPkg/<wbr>FspBin/ApolloLakeFsp.fd does NOT have pattern<br>
> 0x0FF0A55A embedded in it (I have checked with HxD WIN tool).<br>
<br>
</div></div>So this device isn't supporting SPI boot? If so, then it's not<br>
surprise that there's no SPI descriptor. And you didn't add one it<br>
seems.<br>
<div class="gmail-m_-4791412229022018701HOEnZb"><div class="gmail-m_-4791412229022018701h5">><br>
> Then, modifying the C f-n static fdbar_t *find_fd(char *image, int size),<br>
> finally I've got success! :-(<br>
><br>
> Hello Martin,<br>
><br>
> Thank you for unselfish help.<br>
><br>
> Best Regards,<br>
> Zoran Stojsavljevic<br>
><br>
><br>
</div></div><span class="gmail-m_-4791412229022018701HOEnZb"><font color="#888888">> --<br>
> coreboot mailing list: <a href="mailto:coreboot@coreboot.org" target="_blank">coreboot@coreboot.org</a><br>
> <a href="https://www.coreboot.org/mailman/listinfo/coreboot" rel="noreferrer" target="_blank">https://www.coreboot.org/mailm<wbr>an/listinfo/coreboot</a><br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>