Hi Amin, Please note that the W25Q128FW is a 1.8V chip, while Raspberry PI IOs are 3.3V.
For Dediprog, pass in the `voltage` parameter, e.g. `flashrom -p dediprog:voltage=1.8 -r foo.bin` Also, as Mike mentioned it will help if we know the version of flashrom which you are trying to use. Some distributions provide very old versions. On Wed, Apr 22, 2020 at 1:33 AM Wu, Amin <[email protected]> wrote: > [AMD Official Use Only - Internal Distribution Only] > > > > Hi David Hendricks, > > “No EEPROM/flash device found” pop after I added below code to > flashchips.c and flashchips.h to install flashrom in Raspberry 4B. > > pi@raspberrypi:~ $ sudo flashrom -p > linux_spi:dev=/dev/spidev0.0,spispeed=4096 > > flashrom on Linux 4.19.57-v7l+ (armv7l) > > flashrom is free software, get the source code at https://flashrom.org > > > > Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns). > > No EEPROM/flash device found. > > Note: flashrom can never write if the flash chip isn't found automatically. > > > > Do you have any suggestions? Thanks 😊 > > > > flashchips.h > > #define WINBOND_NEX_W25Q128FW 0xef6018 /*W25Q128FW */ > > > > flashchips.c > > { > > .vendor = "Winbond", > > .name = "W25Q128FW", > > .bustype = BUS_SPI, > > .manufacture_id = WINBOND_NEX_ID, > > .model_id = WINBOND_NEX_W25Q128FW, > > .total_size = 16384, > > .page_size = 256, > > /* supports SFDP */ > > /* OTP: 1024B total, 256B reserved; read 0x48; write > 0x42, erase 0x44, read ID 0x4B */ > > .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | > FEATURE_QPI, > > .tested = TEST_OK_PREW, > > .probe = probe_spi_rdid, > > .probe_timing = TIMING_ZERO, > > .block_erasers = > > { > > { > > .eraseblocks = { {4 * 1024, 4096} }, > > .block_erase = spi_block_erase_20, > > }, { > > .eraseblocks = { {32 * 1024, 512} }, > > .block_erase = spi_block_erase_52, > > }, { > > .eraseblocks = { {64 * 1024, 256} }, > > .block_erase = spi_block_erase_d8, > > }, { > > .eraseblocks = { {16 * 1024 * 1024, 1} > }, > > .block_erase = spi_block_erase_60, > > }, { > > .eraseblocks = { {16 * 1024 * 1024, 1} > }, > > .block_erase = spi_block_erase_c7, > > } > > }, > > .printlock = spi_prettyprint_status_register_plain, /* > TODO: improve */ > > .unlock = spi_disable_blockprotect, > > .write = spi_chip_write_256, > > .read = spi_chip_read, > > .voltage = {1650, 1950}, > > }, > > > > > > BR > > AMIN > > *From:* Wu, Amin > *Sent:* Wednesday, April 22, 2020 2:55 PM > *To:* 'David Hendricks' <[email protected]>; ' > [email protected]' <[email protected]> > *Cc:* '[email protected]' <[email protected]> > *Subject:* RE: [flashrom] Do you have support for W25Q128FW and W25Q256.W? > > > > [AMD Official Use Only - Internal Distribution Only] > > > > Hi Winbond, > > Do you have a plan to support flash bios for W25Q128FW and W25Q256.W via > flashrom in Raspberry? > > > > > > BR > > AMIN > > *From:* Wu, Amin > *Sent:* Tuesday, April 21, 2020 1:32 PM > *To:* David Hendricks <[email protected]> > *Cc:* [email protected] > *Subject:* RE: [flashrom] Do you have support for W25Q128FW and W25Q256.W? > > > > [AMD Official Use Only - Internal Distribution Only] > > > > Hi David, Hendricks, > > Can you share the flashrom link to download which support W25Q128FW and > W25Q256.W? > > Now I used DediProg to flash these bioschip. I can try with raspberry to > flash when I get the flashrom from you. 😊 > > It is great help for me if flashrom support W25Q128FW and W25Q256.W. I > tried edit flashchip.c and flashchip.h, but flash fail and fail. ☹ > > Thank you flashrom developer. Good job! Flashrom~Yes~ > > > > > > BR > > AMIN > > > > *From:* David Hendricks <[email protected]> > *Sent:* Tuesday, April 21, 2020 1:06 PM > *To:* Wu, Amin <[email protected]> > *Cc:* [email protected] > *Subject:* Re: [flashrom] Do you have support for W25Q128FW and W25Q256.W? > > > > [CAUTION: External Email] > > Yes and yes :-) > > > > On Mon, Apr 20, 2020 at 10:05 PM Wu, Amin <[email protected]> wrote: > > [AMD Official Use Only - Internal Distribution Only] > > > > Hi > > Do you have support for W25Q128FW and W25Q256.W? Thanks > > > > > > BR > > AMIN > > _______________________________________________ > flashrom mailing list -- [email protected] > To unsubscribe send an email to [email protected] > >
_______________________________________________ flashrom mailing list -- [email protected] To unsubscribe send an email to [email protected]
