[flashrom] dlink-dir615 F25L32PA

C Cooper chriscooper at coopertronix.com
Wed May 28 23:16:29 CEST 2014


Hi Stefan

Sorry i did not get back to you sooner. I have been really busy lately
but i did briefly try the patch against the latest source 0.9.7 but the
patch failed to apply.

I did not have much time to look into it too deeply but the files it
failed to apply to were chipdrivers.h and flashchips.h

All the c files patched successfully it was just the header files that
had failed.

I manually edited the header files to apply the failed errors on the
patching.
Built the new version of code and tried it against the flash rom.

I have attached the two log files. It looks like the spi flash chip
maybe different in size than 4096

I have tried to write the dlink rom image downloaded from their website
and also run a erase on the chip both logs are attached.

Sorry for the delay, the patch failed and i new i had to debug it and
ran out of time as i had to run off to do some work.
i finally got back to it.

The patch fails on the chipdrivers.h because "void
spi_prettyprint_status_register_bit(uint8_t status, int bit);" does not
exist in the source files.

flashchips.h has the similar problem so i manually inserted the #define
chip ID for the F25L32PA.

This is the patching output from the terminal.


patching file chipdrivers.h
Hunk #1 FAILED at 39.
1 out of 1 hunk FAILED -- saving rejects to file chipdrivers.h.rej
patching file flashchips.c
Hunk #1 succeeded at 2830 (offset -256 lines).
patching file flashchips.h
Hunk #1 FAILED at 176.
1 out of 1 hunk FAILED -- saving rejects to file flashchips.h.rej
patching file spi25_statusreg.c
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 322 with fuzz 1.


Thanks

On 05/27/2014 10:26 PM, Stefan Tauner wrote:
> On Sat, 3 May 2014 12:24:28 +0200
> Stefan Tauner <stefan.tauner at alumni.tuwien.ac.at> wrote:
> 
>> Hello Chris,
>>
>> sorry it took a while *again*. I wanted to integrate all the other
>> small changes to flashchips.c due to the pileup of reports in the last
>> months. But they are too many so I have created the patch on top of the
>> last committed state, i.e. r1782.
>>
>> The attached patch should apply cleanly to said revision which is
>> easily obtainable and buildable, see
>> http://flashrom.org/Downloads#Installation_from_source
>>
>> It should just work. Please report back with the flashrom log of a
>> write operation that actually does change the content of the chip (i.e.
>> which writes an image different to the existing data on the chip), e.g.
>> flashrom -p ft2232_spi... -w <filename> -o F25L32PA-write.log
>> Thanks!
> 
> Hi Chris,
> 
> I have committed the patch now without your testing in r1801. If you
> have tested it already or will test it in the future, please report
> back, thanks.
> 

-- 
Kind Regards

C Cooper
M6_FCZ
IT Electronics Specialist

Tel: 01509 551995
Mob: 07528 846694
-------------- next part --------------
A non-text attachment was scrubbed...
Name: F25L32PA-write.log
Type: text/x-log
Size: 24268 bytes
Desc: not available
URL: <http://www.flashrom.org/pipermail/flashrom/attachments/20140528/9bd0c208/attachment.log>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: F25L32PA-erase.log
Type: text/x-log
Size: 25980 bytes
Desc: not available
URL: <http://www.flashrom.org/pipermail/flashrom/attachments/20140528/9bd0c208/attachment-0001.log>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: chriscooper.vcf
Type: text/x-vcard
Size: 382 bytes
Desc: not available
URL: <http://www.flashrom.org/pipermail/flashrom/attachments/20140528/9bd0c208/attachment.vcf>


More information about the flashrom mailing list