Hello,<br><br>Thank you for prompt feedback.<br><br><div class="gmail_quote">10 марта 2012 г. 14:26 пользователь 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 Fri, 9 Mar 2012 23:13:24 +0400<br>
"Andrey V. Bondarenko" <<a href="mailto:avbondarenko@gmail.com">avbondarenko@gmail.com</a>> wrote:<br>
<br>
> Hello,<br>
><br>
> I downloaded flashrom-0.9.5.2.tar.bz2. The flashrom does not compile. I<br>
> think the problem is in SPI of kernel CentOS 5, the log of compilation is<br>
> below. The kernel is 2.6.18-274.18.1.el5. I didn't find the file<br>
> 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'<br>
> -D'CONFIG_SERPROG=1' -D'CONFIG_RAYER_SPI=1' -D'CONFIG_BITBANG_SPI=1'<br>
> -D'CONFIG_NIC3COM=1' -D'CONFIG_GFXNVIDIA=1' -D'CONFIG_SATASII=1'<br>
> -D'CONFIG_DUMMY=1' -D'CONFIG_DRKAISER=1' -D'CONFIG_NICREALTEK=1'<br>
> -D'CONFIG_NICINTEL=1' -D'CONFIG_NICINTEL_SPI=1' -D'CONFIG_OGP_SPI=1'<br>
> -D'CONFIG_BUSPIRATE_SPI=1' -D'CONFIG_SATAMV=1' -D'CONFIG_LINUX_SPI=1'<br>
> -D'NEED_PCI=1' -D'HAVE_UTSNAME=1' -D'FLASHROM_VERSION="0.9.5.2-r1515"' -o<br>
> 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<br>
> this function)<br>
> linux_spi.c:102: error: 'SPI_IOC_WR_MODE' undeclared (first use in this<br>
> function)<br>
> linux_spi.c:108: error: 'SPI_IOC_WR_BITS_PER_WORD' undeclared (first use in<br>
> 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>
hello,<br>
<br>
sorry! we did merge the linux_spi support without adding a proper check<br>
for the linux headers. we will fix that soonish until then you can<br>
compile flashrom with the following command without linux_spi support<br>
but with all other programmers that are enabled by default:<br>
make CONFIG_INTERNAL=yes CONFIG_SERPROG=yes CONFIG_RAYER_SPI=yes CONFIG_BITBANG_SPI=yes CONFIG_NIC3COM=yes CONFIG_GFXNVIDIA=yes CONFIG_SATASII=yes CONFIG_FT2232_SPI=yes CONFIG_DUMMY=yes CONFIG_DRKAISER=yes CONFIG_NICREALTEK=yes CONFIG_NICINTEL=yes CONFIG_NICINTEL_SPI=yes CONFIG_OGP_SPI=yes CONFIG_BUSPIRATE_SPI=yes CONFIG_SATAMV=yes CONFIG_LINUX_SPI=no<br>


<br>
the problem with the locked ME is not solved yet, sorry.<br>
<span class="HOEnZb"><font color="#888888">--<br>
Kind regards/Mit freundlichen Grüßen, Stefan Tauner<br>
</font></span></blockquote></div><br>