In-Circuit Programming of SPI NOR Flash
#11
Hi,

I do not think there is any reason to use external hardware for flashing. The SPI flash can simply be written from within the OS (or even u-boot). By default (I think even on the stock Debian?) the whole flash is exposed via
Code:
/dev/mtd0
. You can simply (and safely) write to the flash using the
Code:
flashcp
command from
Code:
mtd-utils
by running
Code:
flashcp <filename> /dev/mtd0
.

Even if you need to recover from a defective bootloader written to the SPI flash, you can simply short pin 6 of the SPI flash to GND and boot. This will render the bootrom unable to read from the SPI flash and have it fall back to reading the bootloader from other boot media like the micro SD card or eMMC.

The procedures described above are a lot less risky than attaching an external SPI flasher and do not require any additional hardware.
Manjaro ARM

Kernel dev
Buy me a coffee


Messages In This Thread
RE: In-Circuit Programming of SPI NOR Flash ROM - by tsys - 04-18-2020, 10:43 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Extracting a copy of SPI NOR flash contents using micro SD card and u-boot hmuller 0 2,721 09-21-2020, 11:24 AM
Last Post: hmuller
  Program SPI NOR Flash on Pinebook Pro with u-boot on micro SD Card hmuller 0 3,445 09-21-2020, 10:02 AM
Last Post: hmuller
Exclamation Flash dhivael's SPI uboot (risky) clover 51 53,169 06-20-2020, 03:24 PM
Last Post: craftkiller
  Widevine-flash on Chromium-SD Card mamboman777 3 6,444 01-20-2020, 04:00 PM
Last Post: tophneal

Forum Jump:


Users browsing this thread: 1 Guest(s)