> trying to add a new chip GigaDevices into flashchips.c, without success. 

 

What did you try? What fails? Some more details are required…

 

 

Von: Igor Omelchenko <odinigoromel@gmail.com>
Gesendet: Donnerstag, 19. Mai 2022 14:14
An: flashrom@flashrom.org
Betreff: [flashrom] new chip - GD25LR256E

 

Hello guys, 

trying to add a new chip GigaDevices into flashchips.c, without success. 

Can someone help me to add it. 

Thanks.

 

trying something like this:

{

.vendor = "GigaDevice",
.name = "GD25LR256E",
.bustype = BUS_SPI,
.manufacture_id = GIGADEVICE_ID,
.model_id = GIGADEVICE_GD25LR256E,
.total_size = 32768,
.page_size = 256,
/* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */
.feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP,
.tested = TEST_UNTESTED,
.probe = probe_spi_rdid,
.probe_timing = TIMING_ZERO,
.block_erasers =
{
{
.eraseblocks = { {4 * 1024, 8192} },
.block_erase = spi_block_erase_20,
}, {
.eraseblocks = { {32 * 1024, 1024} },
.block_erase = spi_block_erase_52,
}, {
.eraseblocks = { {64 * 1024, 512} },
.block_erase = spi_block_erase_d8,
}, {
.eraseblocks = { {32 * 1024 * 1024, 1} },
.block_erase = spi_block_erase_60,
}, {
.eraseblocks = { {32 * 1024 * 1024, 1} },
.block_erase = spi_block_erase_c7,
}
},
.printlock = spi_prettyprint_status_register_bp4_srwd,
.unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */
.write = spi_chip_write_256,
.read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */
.voltage = {1695, 1950},}

--

Omelchenko Igor

0543-066-855