In-Circuit Programming of SPI NOR Flash
#5
(01-02-2020, 11:22 AM)kuleszdl Wrote: huge thanks for sharing!

I was just surprised that the Pomona 5250 is supposed to fit here as I was expecting soldering to be necessary.

You say that supplying 3.3V from an external source is necessary because the RPI does not supply enough power to power the PBP. However, I do not understand why the PBP is powered at all during flashing? Can't this be done with the PBP being off all the time? For the SPIs I flashed on various Lenovo mainboards this was not necessary, i.e. I supplied 3.3V from the RPI and everything was fine.

Last but not least: I am pretty sure flashing can be done using a rock64 or a64 as well. If I find the time to test this I will share my experience with that.

You are welcome, and no problem. 

The Pomona 5250 clip fits securely on the chip. 

When I first created the circuit without an external power supply, then attempted to power up the Raspberry Pi, the board (not just the SPI NOR flash chip) drew too much power from the 3V3 power pin, and the Raspberry Pi went into a boot loop. Note that I disconnected the battery from the main board on the PBP and it was not powered on at any time during the process. I did this to limit any interference from the operating system or hardware while flashing the chip. 

Any of the Pine64 SBCs (sopine only with baseboard), I look forward to your results.

(01-02-2020, 12:30 PM)Jeremiah Cornelius Wrote: Does this mean - at least to the best knowledge - that a desired uBoot image could be flashed in place to the SPI? Is there any special parameterization, other than the usual image, that would be required?

It seems that the risk of screwing this up is minimal. Since the default state is a blank SPI image, then any failed attempts could be recovered by zeroing the SPI as you describe. Is this also right?

Thanks much,

Yes, u-boot can be flashed to the SPI NOR flash ROM. I am working on that at the moment, but have paused while working on a Raspberry Pi SWD solution because I want to be able to debug any problems I create =). My current understanding is that that the current u-boot setup in place on the factory installed PBPs is configured for eMMC boot with fall back to SD card. It is not clear to me whether mrfixit's u-boot can simply be flashed to the SPI NOR flash ROM, but I suspect not.

Yes, If you have the means to flash the ROM, recovery from errors could be as simple as erasing the ROM. The ROM is rated at a minimum 100K program/erase cycles, and typically retains data for 20 years. So you should be able to safely conduct 13 program/erase cycles per day for 20 years. I would not recommend doing that, but it should be possible.

(01-04-2020, 09:58 PM)Arwen Wrote: The SPI can be flashed from the OS, no special hardware needed. Only special software.
I played around with the installed u-boot to see if I could flash from u-boot and hit a couple blocks, if I remember right it could not see the SPI NOR flash nor would it see any of my flash drives. So I think u-boot requires a little work in that department. Flashrom does not detect the flash when run from the default Debian desktop:

Code:
$ sudo flashrom -p internal -c GD25Q128C

If you are aware of another solution, post a link please!


Messages In This Thread
RE: In-Circuit Programming of SPI NOR Flash ROM - by hmuller - 01-06-2020, 10:59 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,744 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,464 09-21-2020, 10:02 AM
Last Post: hmuller
Exclamation Flash dhivael's SPI uboot (risky) clover 51 53,596 06-20-2020, 03:24 PM
Last Post: craftkiller
  Widevine-flash on Chromium-SD Card mamboman777 3 6,496 01-20-2020, 04:00 PM
Last Post: tophneal

Forum Jump:


Users browsing this thread: 1 Guest(s)