hold: a positivo wp: a positivo para activar “write latch enable IS SET”.
Conectar raspberry pi a 25q64 por SPI:
https://tomvanveen.eu/flashing-bios-chip-raspberry-pi/
tras instalar raspbian lite (y crear un “touch ssh” en el raiz de la tarjeta sd), se necesita:
raspi-config → enable SPI interface reboot?
apt-get update apt-get install pciutils libpci-dev libusb-1.0 libusb-dev git git clone https://github.com/flashrom/flashrom.git cd flashrom make && make install
flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=1000
flashrom -p linux_spi:dev=/dev/spidev0.1
spispeed es en KHz
los cables, cortitos (con 10 cm funciona, pero igual con los 25 tipicos de bus pirate o similar falla por las interferencias)
fallo observado
root@raspflashrom:/home/pi# flashrom -p linux_spi:dev=/dev/spidev0.0 -w new.bin flashrom p1.0-69-g3f7e341 on Linux 4.9.35+ (armv6l) flashrom is free software, get the source code at https://flashrom.org
Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns). Found GigaDevice flash chip “GD25Q64(B)” (8192 kB, SPI) on linux_spi. Reading old flash chip contents… done. Erasing and writing flash chip… FAILED at 0x00000000! Expected=0xff, Found=0x00, failed byte count from 0x00000000-0x00000fff: 0xfd7 ERASE FAILED! Reading current flash chip contents… done. Looking for another erase function. FAILED at 0x00000000! Expected=0xff, Found=0x00, failed byte count from 0x00000000-0x00007fff: 0x7e31 ERASE FAILED! Reading current flash chip contents… done. Looking for another erase function. FAILED at 0x00000000! Expected=0xff, Found=0x00, failed byte count from 0x00000000-0x0000ffff: 0xfde4 ERASE FAILED! Reading current flash chip contents… done. Looking for another erase function. FAILED at 0x00000000! Expected=0xff, Found=0x00, failed byte count from 0x00000000-0x007fffff: 0x598bf9 ERASE FAILED! Reading current flash chip contents… done. Looking for another erase function. FAILED at 0x00000000! Expected=0xff, Found=0x00, failed byte count from 0x00000000-0x007fffff: 0x598bf9 ERASE FAILED! Reading current flash chip contents… done. Looking for another erase function. Looking for another erase function. Looking for another erase function. No usable erase functions left. FAILED! Uh oh. Erase/write failed. Checking if anything has changed. Reading current flash chip contents… done. Good, writing to the flash chip apparently didn't do anything. Please check the connections (especially those to write protection pins) between the programmer and the flash chip. If you think the error is caused by flashrom please report this on IRC at chat.freenode.net (channel #flashrom) or mail flashrom@flashrom.org, thanks! root@raspflashrom:/home/pi#
