[flashrom] FlashRom and Intel C204 chipset.

Andrey V. Bondarenko avbondarenko at gmail.com
Fri Mar 9 20:13:24 CET 2012


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)?

Thank you.

13 октября 2011 г. 1:57 пользователь Stefan Tauner <
stefan.tauner at student.tuwien.ac.at> написал:

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


More information about the flashrom mailing list