Hello,<br><br>I downloaded flashrom-0.9.5.2.tar.bz2. The flashrom does not compile. I think the problem is in SPI of kernel CentOS 5, the log of compilation is below. The kernel is 2.6.18-274.18.1.el5. I didn't find the file linux/spi/spidev.h. How can I compile flashrom without SPI?<br>

<br>Log:<br><br>Checking for a C compiler... found.<br>Target arch is x86<br>Target OS is Linux<br>Checking for libpci headers... found.<br>Checking if libpci is present and sufficient... yes.<br>Checking for FTDI support... not found.<br>

Checking for utsname support... found.<br>cc -MMD -Os -Wall -Wshadow -Werror  -D'CONFIG_INTERNAL=1' -D'CONFIG_SERPROG=1' -D'CONFIG_RAYER_SPI=1' -D'CONFIG_BITBANG_SPI=1' -D'CONFIG_NIC3COM=1' -D'CONFIG_GFXNVIDIA=1' -D'CONFIG_SATASII=1'  -D'CONFIG_DUMMY=1' -D'CONFIG_DRKAISER=1' -D'CONFIG_NICREALTEK=1' -D'CONFIG_NICINTEL=1' -D'CONFIG_NICINTEL_SPI=1' -D'CONFIG_OGP_SPI=1' -D'CONFIG_BUSPIRATE_SPI=1' -D'CONFIG_SATAMV=1' -D'CONFIG_LINUX_SPI=1' -D'NEED_PCI=1' -D'HAVE_UTSNAME=1' -D'FLASHROM_VERSION="0.9.5.2-r1515"' -o linux_spi.o -c linux_spi.c<br>

linux_spi.c:27:30: error: linux/spi/spidev.h: No such file or directory<br>linux_spi.c: In function 'linux_spi_init':<br>linux_spi.c:62: error: 'SPI_MODE_0' undeclared (first use in this function)<br>linux_spi.c:62: error: (Each undeclared identifier is reported only once<br>

linux_spi.c:62: error: for each function it appears in.)<br>linux_spi.c:93: error: 'SPI_IOC_WR_MAX_SPEED_HZ' undeclared (first use in this function)<br>linux_spi.c:102: error: 'SPI_IOC_WR_MODE' undeclared (first use in this function)<br>

linux_spi.c:108: error: 'SPI_IOC_WR_BITS_PER_WORD' undeclared (first use in this function)<br>linux_spi.c: In function 'linux_spi_send_command':<br>linux_spi.c:134: error: array type has incomplete element type<br>

linux_spi.c:136: error: field name not in record or union initializer<br>linux_spi.c:136: error: (near initialization for 'msg')<br>linux_spi.c:137: error: field name not in record or union initializer<br>linux_spi.c:137: error: (near initialization for 'msg')<br>

linux_spi.c:140: error: field name not in record or union initializer<br>linux_spi.c:140: error: (near initialization for 'msg')<br>linux_spi.c:141: error: field name not in record or union initializer<br>linux_spi.c:141: error: (near initialization for 'msg')<br>

cc1: warnings being treated as errors<br>linux_spi.c:155: warning: implicit declaration of function 'SPI_IOC_MESSAGE'<br>linux_spi.c:134: warning: unused variable 'msg'<br>make: *** [linux_spi.o] Error 1<br>

<br>P.S. Was the problem solved with Asus P8B-E/4 (see email in end)?<br><br>Thank you.<br><br><div class="gmail_quote">13 октября 2011 г. 1:57 пользователь Stefan Tauner <span dir="ltr"><<a href="mailto:stefan.tauner@student.tuwien.ac.at">stefan.tauner@student.tuwien.ac.at</a>></span> написал:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, 12 Oct 2011 22:01:01 +0400<br>
"Andrey V. Bondarenko" <<a href="mailto:avbondarenko@gmail.com">avbondarenko@gmail.com</a>> wrote:<br>
<br>
> Hello,<br>
><br>
> Verbose output is in the attachment file for chipset Intel C204. I sent this<br>
> e-mail because it was suggested to send report.<br>
><br>
> # ./flashrom --read ./P8B-E-4L-ASUS-0602.ROM<br>
> flashrom v0.9.4-r1395 on Linux 2.6.18-274.3.1.el5.028stab094.3 (x86_64),<br>
> built with libpci 3.1.7, GCC 4.1.2 20080704 (Red Hat 4.1.2-51), little<br>
> endian<br>
> flashrom is free software, get the source code at <a href="http://www.flashrom.org" target="_blank">http://www.flashrom.org</a><br>
><br>
> Calibrating delay loop... OK.<br>
> Found chipset "Intel C204".<br>
> This chipset is marked as untested. If you are using an up-to-date version<br>
> of flashrom please email a report to <a href="mailto:flashrom@flashrom.org">flashrom@flashrom.org</a> including a<br>
> verbose (-V) log. Thank you!<br>
> Enabling flash write... OK.<br>
> This chipset supports the following protocols: FWH, SPI.<br>
> Found Winbond flash chip "W25Q64" (8192 kB, SPI) at physical address<br>
> 0xff800000.<br>
> Reading flash... Transaction error!<br>
> Read operation failed!<br>
> FAILED.<br>
<br>
hello and thanks for your report.<br>
<br>
this is another case of a locked Management Engine (ME) region, which<br>
we can't unlock yet.<br>
i have added the P8B-E/4L to our list of boards with a note about the<br>
problem for now and will commit that later.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Kind regards/Mit freundlichen Grüßen, Stefan Tauner<br>
</font></span></blockquote></div><br>