OTA Framework and Implementation#3
Open
nfreq wants to merge 60 commits intozeroth-robotics:developfrom
Open
Conversation
…console from getting wrecked at u-boot reloc)
first_boot flag gets set after first run (forces saveenv to populate ext4 part) next_boot determines which parition u-boot points to next_boot = rootfs, recovery_primary, recovery_secondary
…rts >4 primary partitions).
…0 to become available, then starts the service) wrote an if statement to jump out the auto.sh section
detect zbot presence @ host reboots zbot os into ota mode then continues with update
Author
|
This PR is ready for internal team to start using. I will revisit with a new PR when we iron out the cloud based portion of the update mechanism |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Build ZBot OTA System
Build ZBot Main OS and perform OTA Updates
Parition Table
GPT/MBR Hybrid (Boot Partition UUID Set such that Mac/Windows will mount)
Upgraded Genimage to v18 (Support UUID Partition Types and Improved Hybrid Support)
(GPT Partition Table)
├── /dev/mmcblk0p1 (boot) [EFI System Partition, FAT32, 128M, Bootable]
├── /dev/mmcblk0p2 (env) [Linux, 256K]
├── /dev/mmcblk0p3 (otafs) [Linux, EXT4, 125M]
├── /dev/mmcblk0p4 (rootfs) [Linux, 275M]
├── /dev/mmcblk0p5 (data) [Linux, 50M]
└── /dev/mmcblk0p6 (staging) [Linux, 300M]
U-Boot Configured to Support Persistent Environment (ext4 backend via env partition)
Added data parition to seperate from rootfs. (config, weights, data)
OTA Environment Mechanics
OTA Updater
SWUpdate Backend (Updated to v2022.12)
sw-description (generated via gen_swu_ota)
Work in progress