Hi Mike,
On 24/03/2016 14:42, Mike Williams wrote:
> Philip,
>
> On Wed, Mar 23, 2016 at 9:01 PM, Philip Balister
> <philip....@gmail.com <mailto:philip....@gmail.com>> wrote:
>
> I'd like to update a remote device that is running the swupdate web
> server from the command line.
>
> Has anyone tried this? Any other approaches I should consider.
>
> I'd like to use something like curl to have swupdate get the file
> and update. I'm going to look in detail tomorrow, just hoping
> someone can get me going faster.
>
>
> If you have a relatively recent version of swupdate curl downloading
> support may be built in. The '-d' flag will download the image from a
> URL you provide.
I think Philip want to use swupdate in push mode (target is the server
waiting for a connection) and not in pull mode (-d flag).
On Thursday, March 24, 2016 at 7:58:37 AM UTC-7, Stefano Babic wrote:Hi Mike,
On 24/03/2016 14:42, Mike Williams wrote:
> Philip,
>
> On Wed, Mar 23, 2016 at 9:01 PM, Philip Balister
> <philip....@gmail.com <mailto:philip....@gmail.com>> wrote:
>
> I'd like to update a remote device that is running the swupdate web
> server from the command line.
>
> Has anyone tried this? Any other approaches I should consider.
>
> I'd like to use something like curl to have swupdate get the file
> and update. I'm going to look in detail tomorrow, just hoping
> someone can get me going faster.
>
>
> If you have a relatively recent version of swupdate curl downloading
> support may be built in. The '-d' flag will download the image from a
> URL you provide.
I think Philip want to use swupdate in push mode (target is the server
waiting for a connection) and not in pull mode (-d flag).
Yep, for this case, the network is very private, so web server access is under complete control. We have a few options, and I am looking for something that doesn't require us to carry homegrown code.
On Thursday, March 24, 2016 at 10:53:48 AM UTC+1, Stefano Babic wrote:
> Hi Philip,
>
> On 24/03/2016 02:01, Philip Balister wrote:
> > I'd like to update a remote device that is running the swupdate web
> > server from the command line.
> >
>
> I had not exactly this use case.
>
> > Has anyone tried this? Any other approaches I should consider.
>
> What I have already had is updating via an external tool (custom app),
> letting the webserver running. This is done via the client library, that
> is linked with the custom program. The webserver is really thought for
> safe networks, as there is no authentication at all.
>
> I used stunnel to encrypt the communication, and on the target the main
> application communicates with swupdate via the client library to start a
> new update and pass the .swu image.
Do you know of any opensource project available that integrates swupdate client library this way? I'd be very interested in looking at an example to use as starting point.
regards