-
Notifications
You must be signed in to change notification settings - Fork 4
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
refactor: rpi_boot: use chroot to run flash-kernel, ditch double reboot strategy #318
Merged
Conversation
This file contains 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
Bodong-Yang
added
the
refactor
Rewrite/remove related code instead of patching them
label
Jun 9, 2024
Bodong-Yang
changed the title
refactor: make rpi_boot faster by ditching two-stage reboot strategy
refactor: faster rpi_boot implementation
Jun 10, 2024
commit 2f02ab3 Author: bodong.yang <[email protected]> Date: Mon Jun 17 15:34:41 2024 +0000 rpi_boot: use partition layout to determine the slot commit 0c89de4 Author: bodong.yang <[email protected]> Date: Mon Jun 17 14:18:52 2024 +0000 boot_control.common: fix prepare_standby_dev set standby fslabel commit ea2832d Author: bodong.yang <[email protected]> Date: Mon Jun 17 14:42:25 2024 +0000 boot_control.common: implement get_device_tree commit 5366b13 Author: Bodong Yang <[email protected]> Date: Thu Jun 13 23:26:35 2024 +0900 deps: bump requests to 2.32 (#319)
Bodong-Yang
force-pushed
the
refactor/rpi_faster
branch
from
June 17, 2024 17:21
617e6da
to
f6be2aa
Compare
Bodong-Yang
changed the title
refactor: faster rpi_boot implementation
refactor: rpi_boot: use chroot to run flash-kernel, ditch double reboot strategy
Jun 19, 2024
Quality Gate failedFailed conditions |
Bodong-Yang
added a commit
that referenced
this pull request
Jun 21, 2024
…ot strategy (#318) This PR introduces one-step firmware install strategy to rpi_boot to deprecate the previously used double steps firmware update strategy. It also includes some internal refinements in rpi_boot. * New features 1. support flash-kernel directly in post-update phase with chroot to standby slot. 2. now if system-boot partition is not mounted, rpi_boot will try to mount it. 3. rpi_boot now allows extra partitions after partition ID 3. * Other changes 1. otaclient_common.linux: implement new subprocess_run_wrapper, which supports chroot. 2. otaclient.boot_control.common: implement a plain version of mount.
Bodong-Yang
added a commit
that referenced
this pull request
Jun 21, 2024
commit b546e8a Author: bodong.yang <[email protected]> Date: Wed Jun 19 15:12:40 2024 +0000 delta calculation: limit the threads and concurrent tasks commit ea773ca Merge: fb41c64 deeb27d Author: Bodong Yang <[email protected]> Date: Thu Jun 20 00:07:19 2024 +0900 Merge branch 'main' into refactor/delta_calculation_limit_concurrency commit deeb27d Author: Bodong Yang <[email protected]> Date: Wed Jun 19 19:01:29 2024 +0900 refactor: rpi_boot: use chroot to run flash-kernel, ditch double reboot strategy (#318) This PR introduces one-step firmware install strategy to rpi_boot to deprecate the previously used double steps firmware update strategy. It also includes some internal refinements in rpi_boot. * New features 1. support flash-kernel directly in post-update phase with chroot to standby slot. 2. now if system-boot partition is not mounted, rpi_boot will try to mount it. 3. rpi_boot now allows extra partitions after partition ID 3. * Other changes 1. otaclient_common.linux: implement new subprocess_run_wrapper, which supports chroot. 2. otaclient.boot_control.common: implement a plain version of mount. commit 0773108 Author: Bodong Yang <[email protected]> Date: Wed Jun 19 10:35:26 2024 +0900 refactor: rpi_boot: detects slot by partition tables, not by checking slot fslabel (#321) This PR refines the rpi_boot module to detect slot by examining the partition layout, not relying on reading the fslabel, and explicitly requires the expected partition tables(but support extra partitions after partition ID 3). Also this PR implements the feature that rpi_boot will correct the active slot's fslabel with correct slot_id after slot detection. commit fb41c64 Author: bodong.yang <[email protected]> Date: Tue Jun 18 04:52:20 2024 +0000 create_standby: add semaphore during delta generating
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.
Description
This PR introduces one-step firmware install strategy to rpi_boot to deprecate the previously used double steps firmware update strategy. It also includes some internal refinements in rpi_boot.
New features
Check list
Other changes