Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autoupdate is broken #3

Open
gtxaspec opened this issue Dec 21, 2023 · 4 comments
Open

autoupdate is broken #3

gtxaspec opened this issue Dec 21, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@gtxaspec
Copy link
Owner

gtxaspec commented Dec 21, 2023

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 gtxaspec self-assigned this Dec 22, 2023
@gtxaspec gtxaspec added the bug Something isn't working label Dec 22, 2023
@gtxaspec
Copy link
Owner Author

gtxaspec commented Jan 6, 2024

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

@gtxaspec
Copy link
Owner Author

gtxaspec commented Jan 7, 2024

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
Copy link
Owner Author

full image fixed in 85d5d61

@gtxaspec
Copy link
Owner Author

gtxaspec commented Jan 31, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant