Skip to main content
Topic: Flashrom Winbound 25Q128CS16 Support (Read 3540 times) previous topic - next topic

Flashrom Winbound 25Q128CS16 Support

Hi all,

I am trying to read the memory of a Winbound 25Q128CS16. I see that there is a Winbound W25Q128.V in the list, but not 25Q128CS16. Is there plan for support for this chip later on, or am I missing something?

Thanks!

Re: Flashrom Winbound 25Q128CS16 Support

Reply #1
[quote author="testaccount"]I am trying to read the memory of a Winbound 25Q128CS16. I see that there is a Winbound W25Q128.V in the list, but not 25Q128CS16. Is there plan for support for this chip later on, or am I missing something?[/quote]
It seems to be a new chip which could be met only inside TL-WR842N v3 wireless router,
almost no google results and no datasheet as well. So you better try adding this support by yourself:

1) try probing for a device in order to get ID number of your chip
2) add a new #define line to flashchips.h file, after line 902 maybe:
#define WINBOND_NEX_W25Q128_V   0x4018 /* W25Q128BV; W25Q128FV in SPI mode (default) */
#define WINBOND_NEX_W25Q256_V   0x4019 /* W25Q256FV */
#define WINBOND_HEX_W25Q128CS16 0xYOURIDHEXCODE
3) open flashchips.c file and look at 14550 line, here is a structure for W25Q128.V chip
(.vendor = "Winbond", .name = "W25Q128.V", etc). for the first try, you just copy-paste this structure somewhere below and change only the name
4) rebuild a flashrom and try again
I could have missed something but here is a primary idea: although we can't know for sure (because no datasheet) but maybe your 25Q128CS16 is nearly identical to W25Q128.V and works in the same way, so it could be enough to just copy-paste W25Q128.V code with the changes of ID / chip name.
Hopefully it would work, but in case it doesn't you could play with some settings inside this structure and maybe ask for more ideas at the official flashrom mailing list - http://https://www.flashrom.org/Mailinglist

Re: Flashrom Winbound 25Q128CS16 Support

Reply #2
I am really feeling good to be here Thank You for Help :)