swupdate | Software Update for Embedded Systems
kandi X-RAY | swupdate Summary
kandi X-RAY | swupdate Summary
[REUSE status] [SWUpdate] is a Linux Update agent with the goal to provide an efficient and safe way to update an embedded Linux system in field. SWUpdate supports local and OTA updates, multiple update strategies and it is designed with security in mind.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of swupdate
swupdate Key Features
swupdate Examples and Code Snippets
Community Discussions
Trending Discussions on swupdate
QUESTION
In my angular project I have this kind of code:
...ANSWER
Answered 2022-Jan-12 at 16:03You must change activated
to activateUpdate()
and treat it as Promise
:
QUESTION
Recently, I updated the Buildroot directory from 2019.11 to 2022.2 in order to build for a new board (RPi4B Rev1.5) and access the updated Linux kernel and headers. Unfortunately, I have been unable to build due to missing headers for the SWUpdate package.
An extract of the error is below. The full log can be found at this link (as it is long).
...ANSWER
Answered 2022-Mar-21 at 17:39After more research, it turns out this was an issue with the configuration path assigned within the Buildroot config. It was referring to the RPi3 configuration, which required a different kernel and GCC version. The fix involved the following:
QUESTION
I'm stuck on a part where I want to run a method from other component. What I want to do is to run confirmUpdateVersion() on a other .ts file.
file1.ts
...ANSWER
Answered 2022-Mar-16 at 10:08Option 1:
You can use @ViewChild
to access to any child component.
let assume you have following code
QUESTION
I have a recipe in one of the meta layer. Its structure is given below:
...ANSWER
Answered 2021-Dec-15 at 05:04Short answer: in your local.conf, add this:
QUESTION
I'm trying to design an OTA update system and would like to use meta-swupdate with Yocto, here is what I did:
bitbake-layers add-layer ../meta-openembedded/meta-oe/
bitbake-layers add-layer ../meta-swupdate
bitbake-layer showlayers
ANSWER
Answered 2021-Aug-10 at 12:41Do not use the master
branch of https://github.com/sbabic/meta-swupdate
Use the branch that is compatible with your poky
branch. (dunfell, zeus, ...)
For example, in dunfell
branch it is fixed:
QUESTION
I am trying to build a simple react app which lists my philips hue bulb name and state(on or off). I have API call which results in the following json. Not sure how to pull bulb name and state.on status.
Here is my json result which gets the list of bulbs connected to my hue bridge. I get this result when i fetch via a the philips hue API.
...ANSWER
Answered 2021-Nov-20 at 20:07You can map them into an array using map()
. Since map only works on arrays, and your data is an object, you can use Object.values to return an array of the object's values and use map on that, like this:
QUESTION
I am currently working on Azure Device Update using layers meta-azure-device-update and meta-swupdate. I want to run a post-install script. I have followed sources mentioned below:
1.sw-description.rst https://git.rigado.com/vesta/swupdate/-/blob/acf50e361a8752db48e69ffe3c20a167c402d35f/doc/source/sw-description.rst#board-specific-settings
2.adu-swupdate.sh https://github.com/Azure/iot-hub-device-update/blob/main/src/adu-shell/scripts/adu-swupdate.sh
The image was built successfully and I was able to locate adu-swupdate.sh in .swu file which I provided Azure Device Update. The install failed giving below mentioned error:
Sep 21 07:21:30 rpi AducIotAgent[281]: -> 07:21:29 PUBLISH | IS_DUP: false | RETAIN: 0 | QOS: DELIVER_AT_MOST_ONCE | TOPIC_NAME: $iothub/twin2021-09-21T07:21:30.2396Z [E] Install failed, extendedResultCode = 1 [Install]
Sep 21 07:21:30 rpi AducIotAgent[281]: 2021-09-21T07:21:30.2398Z [E] Install failed. error 0, 1 - Expecting service to send Cancel action [ADUC_Workflow_WorkCompletionCallback]
The sw-update log is as given below:
...ANSWER
Answered 2021-Nov-15 at 16:17So, After hours of exploration and reading each page of SW-UPDATE Wiki, I figured out that there are handlers for each function which we must enable before using it.
you can read more about them here. https://sbabic.github.io/swupdate/handlers.html
These handlers are available in the meta-swupdate/recipes-support/swupdate/defconfig
QUESTION
following the instructions on the official vpn page (instructions install openvpn client) in the second step:
curl -fsSL https://swupdate.openvpn.net/repos/openvpn-repo-pkg-key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/openvpn-repo-pkg-keyring.gpgI get the following error message:
sudo curl -fsSL https://swupdate.openvpn.net/repos/openvpn-repo-pkg-key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/openvpn-repo-pkg-keyring.gpg -bash: /etc/apt/trusted.gpg.d/openvpn-repo-pkg-keyring.gpg: Permission denied (23) Failed writing body
Thanks in advance!!!
...ANSWER
Answered 2021-Oct-26 at 16:54I had a similar issue recently. Use
sudo wget https://swupdate.openvpn.net/repos/openvpn-repo-pkg-key.pub
and
sudo apt-key add openvpn-repo-pkg-key.pub
Reference - https://openvpn.net/cloud-docs/openvpn-3-client-for-linux/
QUESTION
I tried to implement a logic for my Angular PWA where a snackbar gets triggert when an update is available and when the snackbar is dismissed I want a button to become available for the user to update the app manually. (the last thing is currently not implemented)
So far it worked out but the checkForUpdate is getting triggert over and over again -> my console is getting spammed. I just can't figure out why this happens and what I understood wrong about the behavior of the SwUpdate
I created a stackblitz example where the problem is visible - I am getting an error that my browser is not supporting the service worker in stackblitz - any ideas how to fix that? (using chrome and the normal app running on localhost works fine)
app.component.ts:
...ANSWER
Answered 2021-Jul-08 at 10:08The cause is within if:
QUESTION
We've got a SaaS app that's PWA capable and we're using Workbox for the grunt work. Up to now we've been following the tried and trusted recipe of displaying an update is available banner to the users, prompting them to update their web app.
Viewing usage data (via Sentry.io) we've noticed that most users simply seem to ignore the update banner and continue with the version they're on.
So we're looking at trying something different. This is to perform the update automatically when they change the route in the web app (when we know there's an update available).
Testing this shows that it does work. However there's a side-effect, and that is if they've got web app open in multiple tabs, then all the tabs get updated. This could be problematic for users' if they've got an un-saved form open in one of the tabs in the background - they'll potentially loose their work.
This happens during this piece of code:
...ANSWER
Answered 2021-May-10 at 13:14If you want to orchestrate the reload from entirely within the service worker, you can effectively do that by using the WindowClient
interface to programmatically navigate to whatever the current URL is, which is roughly equivalent to a reload.
The two things to keep in in mind that navigate()
will only work on WindowClient
s (not Worker
s) and that you can only call it if the service worker controls the WindowClient
.
Putting that together, here's something to try:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install swupdate
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page