gtxaspec / u-boot-ingenic

U-Boot for Ingenic SoC's
GNU General Public License v3.0
10 stars 7 forks source link

autoupdate is broken #3

Open gtxaspec opened 10 months ago

gtxaspec commented 10 months ago

changes made by the upstream maintainers broke autoupdate.
In it's current form it doesn't work with any files, corrupts the overlay partition, and slows down the boot process if no sd card is present.

  1. complete refactor of cmd_sdupdate
  2. possibly combine with cmd_sdstart
gtxaspec commented 9 months ago

full image should write the flash, then either rename or delete, to prevent an update loop as it currently does.

gtxaspec commented 9 months ago

our u-boot version's FAT command doesn't support rename or delete, so lets check before flashing for autoupdate-full.flag before flashing, if its not present, proceed. after flashing, create the flag file. erase in OS from init.d script after confirming successful flash.

gtxaspec commented 9 months ago

full image fixed in https://github.com/gtxaspec/u-boot-ingenic/commit/85d5d61a66e4cbe87dbf00ac7378f70ff751b244

gtxaspec commented 8 months ago

We should read all files on SD card, index them, check the index for the autoupdate and kernel files, instead of checking for each file, one at a time, in each function.