U-Boot on SPI flash - discussion
#2
(11-29-2019, 04:18 PM)Arwen Wrote:  - Stage 1 code to select U-Boot image, that has recovery by looking at a special SD card
 - data to select image 1 or 2
 - U-Boot image 1
 - U-Boot image 2

Sounds very similar to the solution used on the ESP8266 and other SPI flash based MCUs. They have a bootloader (eboot IIRC) for over the air (wireless) flashing, and a dual slot system. one slot for the current firmware image, and one for the next or last, as the case may be. When a new image is written (to the non-running slot), at the end of the update, if the write was successful, swapping of the slots is scheduled, and the unit is reset. The bootloader, in looking for commands at boot up, sees that scheduled update, and marks the new slot as active, and then passes control over. If the update failed for some reason, the last working image is still present, and the slot isn't changed, so no harm done. Rinse, repeat. This model works quite well there, and has been well tested, so no reason the same wouldn't work here.


Messages In This Thread
U-Boot on SPI flash - discussion - by Arwen - 11-29-2019, 04:18 PM
RE: U-Boot on SPI flash - discussion - by pfeerick - 11-29-2019, 04:58 PM
RE: U-Boot on SPI flash - discussion - by Arwen - 11-29-2019, 07:45 PM
RE: U-Boot on SPI flash - discussion - by zaius - 11-30-2019, 04:07 PM
RE: U-Boot on SPI flash - discussion - by Arwen - 11-30-2019, 04:25 PM
RE: U-Boot on SPI flash - discussion - by zaius - 12-01-2019, 11:21 AM
RE: U-Boot on SPI flash - discussion - by Arwen - 12-01-2019, 11:51 AM
RE: U-Boot on SPI flash - discussion - by zaius - 12-02-2019, 06:26 AM
RE: U-Boot on SPI flash - discussion - by Arwen - 12-02-2019, 10:34 AM
RE: U-Boot on SPI flash - discussion - by xalius - 12-02-2019, 11:09 AM
RE: U-Boot on SPI flash - discussion - by zaius - 12-02-2019, 02:01 PM
RE: U-Boot on SPI flash - discussion - by xalius - 12-02-2019, 02:17 PM
RE: U-Boot on SPI flash - discussion - by pcm720 - 12-02-2019, 10:12 PM
RE: U-Boot on SPI flash - discussion - by Wizzard - 12-03-2019, 12:48 AM
RE: U-Boot on SPI flash - discussion - by Arwen - 12-03-2019, 06:11 AM
RE: U-Boot on SPI flash - discussion - by pcm720 - 12-03-2019, 06:18 AM
RE: U-Boot on SPI flash - discussion - by Wizzard - 12-03-2019, 06:25 AM
RE: U-Boot on SPI flash - discussion - by hmuller - 01-06-2020, 08:53 PM
RE: U-Boot on SPI flash - discussion - by hmuller - 09-16-2020, 08:20 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Bonk to boot biketool 2 643 10-21-2025, 09:08 AM
Last Post: biketool
  3 days in, slow/stuck or no boot. lgmpbp2 34 20,297 06-11-2025, 08:53 AM
Last Post: lgmpbp2
  upgrading u-boot--what version? where to get it? bsammon 14 13,009 04-03-2025, 07:47 AM
Last Post: Tazdevl
Tongue Yet another Pinebook Pro won't boot thread pinemouth 5 9,889 12-27-2024, 11:38 AM
Last Post: akash3995
  broken tow-boot hashkeeper 1 3,220 12-25-2024, 10:12 PM
Last Post: jessipinkman
  Cant boot into an OS trashtendenz 3 4,311 10-23-2024, 03:49 AM
Last Post: chaylengordon
  Unable to boot? YossiS 4 2,797 09-04-2024, 10:35 AM
Last Post: wdt
  uboot wont boot to SD card after upgrade jbradley419 7 6,428 01-19-2024, 02:29 PM
Last Post: wdt
  Video Flashing/adjusting on boot and reboot jbradley419 0 2,059 01-16-2024, 09:17 AM
Last Post: jbradley419
  Brand new Pinebook Pro doesn't boot after Manjaro update johnboiles 8 7,992 12-15-2023, 02:11 PM
Last Post: wdt

Forum Jump:


Users browsing this thread: 1 Guest(s)