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
Add swupdate #115
Add swupdate #115
Conversation
Several patches are missing your signed-off. |
5de32a7
to
04ebd93
Compare
04ebd93
to
a11248b
Compare
a92433f
to
e86ab78
Compare
e86ab78
to
b2f3862
Compare
patches/cip-core/v2-0001-Add-option-to-use-swupdate-handler-roundrobin.patch
Outdated
Show resolved
Hide resolved
patches/cip-core/v2-0001-Add-option-to-use-swupdate-handler-roundrobin.patch
Outdated
Show resolved
Hide resolved
cedddd8
to
3de535a
Compare
Was anything still missing for this? It probably needs a rebase and a retest with latest kernel now. |
3de535a
to
b7bba39
Compare
b7bba39
to
6fcafdf
Compare
@jan-kiszka @stormc all issues should be resolved |
da35174
to
5207b07
Compare
5207b07
to
1aa9b10
Compare
Since this has been standing by for a long time, is it currently mutured enough to go into the master? If so then I will start the merging as soon as possible. |
Since github is a bit primitive to support reviews: @gylstorffq, what was your last update about? Just rebasing or more? Otherwise, I just has two style comment, but those are non-blockers. |
1aa9b10
to
3ed3b29
Compare
Rebase onto origin/master 8d78fb9 and fix white space errors. |
3ed3b29
to
8dea119
Compare
Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
The recipe patch-u-boot-env adds a service which updates the U-Boot environment on first boot. The update adds the necessary variables and functions to select the new root file-system after an update with SWUpdate. Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
Add a kas option to build an image with SWUpdate. This build also generates a swu binary for updating the system. Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
After an update the U-Boot variable `ustate` needs to be set to '0' to confirm the successful update. The script confirm_update.sh checks the current state and sets it according the argument and current value of 'ustate' to success or failed. Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
The data in the current root file system is no longer accessible after an update with SWUpdate. For persistent storage between the root file systems use the data partition. Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
Add function to start the watchdog before selecting a rootfs to boot. The watchdog ensures a bootable system in case a update fails. The systemd 'RuntimeWatchdogSec' has a fixed value of 60s as the watchdog driver doesn't support updating the timeout after start. Changing this value will trigger periodic reboots. Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
Remove /usr/local/* from the Ubuntu image to avoid out of disk space error. This will free around 15G of disk space. The jobs 'Debian RT example image' and 'Debian example image' have around 3G free disk space after building the image. Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
8dea119
to
bbd7b0c
Compare
Update isar-cip-core to master f42686485fed540f4e2070f90b97dd66c0884279. |
We have an integration issue since meta-coral was merged on top: https://github.com/siemens/meta-iot2050/runs/5209073108?check_suite_focus=true. Any ideas, @gylstorffq? |
...and @fmoessbauer. I'm seeing tensorflow stuff being removed from the buildchroot |
@jan-kiszka I am looking into it. OK found it the problem is the introduction of debian-build-profiles. I will fix it on cip-core. |
This PR adds a swupdate configuration to meta-iot2050. It uses isar-cip-core as base.
To build the image use:
This image will modify the u-boot-environment during first-boot to add the necessary variable for swupdate.
This fixes Issue #50.