Hi Idwer
I had fixed the compilation issues and could generate the binary. I tried to read the bios chip first, but it does not seem to recognize S25FL128S
(1) It lists the chip as supported: flashrom# ./flashrom --list-supported | grep S25FL128S Spansion S25FL128S......0 16384 SPI Spansion S25FL128S......1 16384 SPI
(2) However when it is specified with --chip options, it says not supported or unknown.
flashrom# ./flashrom --chip S25FL128S flashrom v0.9.8-rc1-r1883 on Linux 3.14.0-rc8 (x86_64) flashrom is free software, get the source code at http://www.flashrom.org
Error: Unknown chip 'S25FL128S' specified. Run flashrom -L to view the hardware supported in this flashrom version.
(3) Tried to read the chip first. It could not determine the chip type.
./flashrom -p internal:laptop=this_is_not_a_laptop -r file_name.bin flashrom v0.9.8-rc1-r1883 on Linux 3.14.0-rc8 (x86_64) flashrom is free software, get the source code at http://www.flashrom.org
Calibrating delay loop... OK. ======================================================================== WARNING! You may be running flashrom on an unsupported laptop. We could not detect this for sure because your vendor has not setup the SMBIOS tables correctly. You can enforce execution by adding '-p internal:laptop=this_is_not_a_laptop' to the command line, but please read the following warning if you are not sure.
Laptops, notebooks and netbooks are difficult to support and we recommend to use the vendor flashing utility. The embedded controller (EC) in these machines often interacts badly with flashing. See the manpage and http://www.flashrom.org/Laptops for details.
If flash is shared with the EC, erase is guaranteed to brick your laptop and write may brick your laptop. Read and probe may irritate your EC and cause fan failure, backlight failure and sudden poweroff. You have been warned. ======================================================================== Proceeding anyway because user forced us to. Found chipset "Intel Avoton/Rangeley". This chipset is marked as untested. If you are using an up-to-date version of flashrom *and* were (not) able to successfully update your firmware with it, then please email a report to flashrom@flashrom.org including a verbose (-V) log. Thank you! Enabling flash write... Warning: SPI Configuration Lockdown activated. OK. Found Spansion flash chip "S25FL127S-64kB" (16384 kB, SPI) mapped at physical address 0x00000000ff000000. Found Spansion flash chip "S25FL127S-256kB" (16384 kB, SPI) mapped at physical address 0x00000000ff000000. Found Spansion flash chip "S25FL128P......0" (16384 kB, SPI) mapped at physical address 0x00000000ff000000. Found Spansion flash chip "S25FL128P......1" (16384 kB, SPI) mapped at physical address 0x00000000ff000000. Found Spansion flash chip "S25FL128S......0" (16384 kB, SPI) mapped at physical address 0x00000000ff000000. Found Spansion flash chip "S25FL128S......1" (16384 kB, SPI) mapped at physical address 0x00000000ff000000. Found Spansion flash chip "S25FL129P......0" (16384 kB, SPI) mapped at physical address 0x00000000ff000000. Found Spansion flash chip "S25FL129P......1" (16384 kB, SPI) mapped at physical address 0x00000000ff000000. Multiple flash chip definitions match the detected chip(s): "S25FL127S-64kB", "S25FL127S-256kB", "S25FL128P......0", "S25FL128P......1", "S25FL128S......0", "S25FL128S......1", "S25FL129P......0", "S25FL129P......1" Please specify which chip definition to use with the -c <chipname> option.
regards lakesh ________________________________________ From: Sharma, Lakesh Sent: Monday, February 16, 2015 3:42 PM To: Idwer Vollering Cc: flashrom; Taylor, Ron; Natarajan, Kannan Subject: RE: [flashrom] flashrom support for Spansion S25FL128S
Dell - Internal Use - Confidential
Hi Idwer I could not access the svn based link. Also the changeset link is not accessible.
So instead I have download it from https://github.com/jhcloos/flashrom as it stated that “Mirror of svn://flashrom.org/flashrom”
Once I try to compile it, I see following error. Can you pls help.
flashrom > make
Replacing all version templates with 0.9.8-rc1-r1883.
Package libftdi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libftdi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libftdi' found
Package libusb was not found in the pkg-config search path.
Perhaps you should add the directory containing `libusb.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libusb' found
Checking for a C compiler... found.
Target arch is x86
Target OS is Linux
Checking for libpci headers... found.
Checking version of pci_get_dev... new version (including PCI domain parameter).
Checking if libpci is present and sufficient... yes.
Checking for libusb-0.1/libusb-compat headers... .test.c:5:17: fatal error: usb.h: No such file or directory
#include <usb.h>
^
compilation terminated.
not found.
Please install libusb-0.1 headers or libusb-compat headers.
See README for more information.
make: *** [hwlibs] Error 1
-----Original Message----- From: Idwer Vollering [mailto:vidwer@gmail.com] Sent: Monday, February 16, 2015 3:09 PM To: Sharma, Lakesh Cc: flashrom; Taylor, Ron; Natarajan, Kannan Subject: Re: [flashrom] flashrom support for Spansion S25FL128S
2015-02-16 22:19 GMT+01:00 :
Dell - Internal Use - Confidential
This disclaimer is useless on a public mailing list ;)
Hello flashrom team.
We are trying to access Spansion S25FL128S chip using flashrom (ver 0.9.7).
It is connected to Rangeley cpu using SPI i/f.
It seems that this chip is not supported in current version of flashrom ?
Support for that particular chip is present in development code, see subversion revision r1858 ( http://tracker.coreboot.org/trac/flashrom/changeset/1858 ). You can obtain the development code through the steps mentioned here: http://flashrom.org/Downloads#Installation_from_source
Pls see the errors seen during read and write in attachments.
Do we need to import patch listed in url below for suppothing this chip:
http://flashrom.flashrom.narkive.com/zDxnVzWn/s25fl128s-0-on-usbblaste r-spi
regards
lakesh
HTH,
Idwer
flashrom mailing list flashrom@flashrom.org http://www.flashrom.org/mailman/listinfo/flashrom