Hello, Thank you for prompt feedback.
10 марта 2012 г. 14:26 пользователь Stefan Tauner < [email protected]> написал: > On Fri, 9 Mar 2012 23:13:24 +0400 > "Andrey V. Bondarenko" <[email protected]> wrote: > > > Hello, > > > > 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? > > > > Log: > > > > Checking for a C compiler... found. > > Target arch is x86 > > Target OS is Linux > > Checking for libpci headers... found. > > Checking if libpci is present and sufficient... yes. > > Checking for FTDI support... not found. > > Checking for utsname support... found. > > 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 > > linux_spi.c:27:30: error: linux/spi/spidev.h: No such file or directory > > linux_spi.c: In function 'linux_spi_init': > > linux_spi.c:62: error: 'SPI_MODE_0' undeclared (first use in this > function) > > linux_spi.c:62: error: (Each undeclared identifier is reported only once > > linux_spi.c:62: error: for each function it appears in.) > > linux_spi.c:93: error: 'SPI_IOC_WR_MAX_SPEED_HZ' undeclared (first use in > > this function) > > linux_spi.c:102: error: 'SPI_IOC_WR_MODE' undeclared (first use in this > > function) > > linux_spi.c:108: error: 'SPI_IOC_WR_BITS_PER_WORD' undeclared (first use > in > > this function) > > linux_spi.c: In function 'linux_spi_send_command': > > linux_spi.c:134: error: array type has incomplete element type > > linux_spi.c:136: error: field name not in record or union initializer > > linux_spi.c:136: error: (near initialization for 'msg') > > linux_spi.c:137: error: field name not in record or union initializer > > linux_spi.c:137: error: (near initialization for 'msg') > > linux_spi.c:140: error: field name not in record or union initializer > > linux_spi.c:140: error: (near initialization for 'msg') > > linux_spi.c:141: error: field name not in record or union initializer > > linux_spi.c:141: error: (near initialization for 'msg') > > cc1: warnings being treated as errors > > linux_spi.c:155: warning: implicit declaration of function > 'SPI_IOC_MESSAGE' > > linux_spi.c:134: warning: unused variable 'msg' > > make: *** [linux_spi.o] Error 1 > > > > P.S. Was the problem solved with Asus P8B-E/4 (see email in end)? > > hello, > > sorry! we did merge the linux_spi support without adding a proper check > for the linux headers. we will fix that soonish until then you can > compile flashrom with the following command without linux_spi support > but with all other programmers that are enabled by default: > 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 > > the problem with the locked ME is not solved yet, sorry. > -- > Kind regards/Mit freundlichen Grüßen, Stefan Tauner >
_______________________________________________ flashrom mailing list [email protected] http://www.flashrom.org/mailman/listinfo/flashrom
