Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Oct 14 18:11

    otavio on backport-58-to-hardknott

    (compare)

  • Oct 14 18:11

    otavio on hardknott

    updatehub-local-update: Add loo… Merge pull request #60 from Upd… (compare)

  • Oct 14 18:11
    otavio closed #60
  • Oct 14 18:11
    otavio closed #59
  • Oct 14 18:11

    otavio on backport-58-to-dunfell

    (compare)

  • Oct 14 18:11

    otavio on dunfell

    updatehub-local-update: Add loo… Merge pull request #59 from Upd… (compare)

  • Oct 14 18:11
    github-actions[bot] commented #58
  • Oct 14 18:11
    github-actions[bot] opened #60
  • Oct 14 18:11

    github-actions[bot] on backport-58-to-hardknott

    updatehub-local-update: Add loo… (compare)

  • Oct 14 18:11
    github-actions[bot] commented #58
  • Oct 14 18:11
    github-actions[bot] opened #59
  • Oct 14 18:11

    github-actions[bot] on backport-58-to-dunfell

    updatehub-local-update: Add loo… (compare)

  • Oct 14 18:11

    otavio on master

    updatehub-local-update: Add loo… Merge pull request #58 from raf… (compare)

  • Oct 14 18:11
    otavio closed #58
  • Oct 14 18:10
    otavio labeled #58
  • Oct 14 18:10
    otavio labeled #58
  • Oct 14 18:09
    rafluan opened #58
  • Oct 14 18:00
    otavio edited #57
  • Oct 14 17:55
    rafluan opened #57
  • Oct 14 12:03

    dependabot[bot] on npm_and_yarn

    (compare)

Hardik
@rhardik

right now i do not have any target device but just wanted to see how to upload package to UpdateHub Cloud
Logs
```hardik@ub:~$ uhu

UpdateHub Utils 1.0.7

[d43089] uhu> product use
d4308954f6a30c4f114xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

[d43089] uhu> package version 1.0.0

[d43089] uhu> hardware add xyz

Hardware identifier: w

[d43089] uhu> package add

Choose a mode: tarball

Filename: hcf.tar.xz

Target Type: mtdname

Target (installation set 0): 0

Target (installation set 1): 0

Target Path (installation set 0): /home/

Target Path (installation set 1): /home/

Filesystem: ext2

Mount Options:

Format Device [y/N]: N

[d43089] uhu> package push

Loading objects: -

Loading objects: ok

Starting uploading objects...Error: Could not upload metadata: Server is not available. Try again later.

[d43089] uhu>
```

Gerson Fernando Budke
@nandojve

Hi @rhardik I was wrong about west tool. I found a missing update for dtls and send a patch and new test config at zephyrproject-rtos/zephyr#27703

Got merged on master.

Hardik
@rhardik
which npm version you use with docker?
Otavio Salvador
@otavio
@rhardik where?
Hardik
@rhardik

@otavio I meant npm version for docker used for updatehub..but npm issue is resolved now. upgraded npm from 3.5.2 to 6.x.x
now I 'm running update-ce using below command line
$ updatehub-ce --http 8081

and logs I see is
http server started on [::]:8081
so need to know how to bind it with any specific IP address

Otavio Salvador
@otavio
Oh ... it'll be binding to all IP. Use --http <ip>:port
Hardik
@rhardik
@otavio binding to all ip means I just need to forward this port 8081 and access using public ip ?
Otavio Salvador
@otavio
yes
Hardik
@rhardik

Adding IP i get
updatehub-ce --http 0.0.0.0:8081
Error: invalid argument "0.0.0.0:8081" for "--http" flag: strconv.ParseInt: parsing "0.0.0.0:8081": invalid syntax
Usage:
updatehub-ce [flags]

Flags:
--coap int Coap server listen port (default 5683)
--db string Database file (default "updatehub.db")
--dir string Packages storage dir (default "./")
-h, --help help for updatehub-ce
--http int HTTP listen address (default 8080)
--password string Admin password (default "admin")
--secret string JWT secret key (default "secret")
--username string Admin username (default "admin")

2020/09/03 12:37:20 invalid argument "0.0.0.0:8081" for "--http" flag: strconv.ParseInt: parsing "0.0.0.0:8081": invalid syntax

so --http accepts only an int (port)
Alan Millen
@amillen_gitlab
Hi. What strategy does UpdateHub use for the OTA updates? Is it a full file system A/B swap symmetric / Asymmetric / single filesystem (OsTree) ?
Also, does the product do differential updates? I can't seem to find answers to either question in the docs.
Many thanks!
Otavio Salvador
@otavio
@rhardik yes, it listen to 0.0.0.0 so you need to forward it
@amillen_gitlab it uses A/B symmetric
Hardik
@rhardik
@otavio Yes Working .. Thanks !
Nehal_Rohit
@nehalrohit
HI, I want to implement OTA using thread on NRF52840dk (PCA10056) and nrf52840 dongle (PCA10059) on Zephyr. So I merge updatehub demo and openthread cli code . demo build using west build -b nrf52840dk_nrf52840 -- -DOVERLAY_CONFIG="prj.conf overlay-prj.conf " and flash using west flash --hex build/zephyr/app_signed.hex .but I have facing problem I got an error uart:~$ updatehub run
Starting UpdateHub run...
E: Could not resolve dns
Gerson Fernando Budke
@nandojve
Hi @nehalrohit , can you share the project?
There are somethings that I need look at your config to make sure everything is ok.
Gerson Fernando Budke
@nandojve
Hi @nehalrohit , I saw you project.
I would say to you try updatehub without the other COAP things. This way, you can understand how it works and what you need.
It will be easy to us help you.
Gerson Fernando Budke
@nandojve
You must have Thread Network accessing internet. UpdateHub uses sockets so, it will try resolv using Zephyr IP stack.
You need give memory to malloc to enable it.

Minimal Heap mem pool size for the updatehub working

CONFIG_HEAP_MEM_POOL_SIZE=8192
8k is uge, probably will work with 256 or even less bytes.
There is a tune that you may need check
UPDATEHUB_COAP_BLOCK_SIZE_EXP
this instructs COAP block size. Currently, the default is 1024
Gerson Fernando Budke
@nandojve
You may need adjust to < 128
this can help to avoid fragmentation
Last tip
ALWAYS use the bin file when you sign the image for UpdateHub
DON'T use --PAD when you sign the image for UpdateHub
bryan costanich
@bryancostanich
Anyone here working on a NuttX port of MCUBoot? Our interests align, maybe we can help. Ping me at bryan@wildernesslabs.co.
Otavio Salvador
@otavio
We are not but it'd be a very nice addition as it'd unlock the updatehub port for it.
@bryancostanich
Jussi Heiskanen
@wizense_gitlab
@otavio Hi, we are also interested in starting to use the system in EU region. Do you now have instance running in EU and like discussed earlier it's due EU GDPR regulation for data to not leave EU region. For the standalone instance we have noticed that instance crashes (for some reason) after getting batch of 1kb packages. Anyway cloud would be way to go for us.
@otavio also to start testing with the cloud what is the way to upload packages to the UpdateHub cloud? Uhu python script does not have an address to push into the cloud service.
Otavio Salvador
@otavio
@wizense_gitlab Hello; currently, we don't. However, if need we can handle it.
Yes, you can push with uhu
is it Zephyr or Yocto?
Jussi Heiskanen
@wizense_gitlab
@otavio we are using Zephyr and latest 2.5.0 version. Previously our engineer was not able to push to cloud with uhu due missing cloud url in examples and documentation. Is cloud url for uhu documented? We could start testing cloud with existing location asap. What is your email for direct contact?
3 replies
Gerson Fernando Budke
@nandojve

Anyone here working on a NuttX port of MCUBoot? Our interests align, maybe we can help. Ping me at bryan@wildernesslabs.co.

Hi @bryancostanich , we are considering port UpdateHub to NuttX.
Are you still interested?

1 reply
Dariusz Kopka
@darekkopka_twitter
Hello! The website and api are down. Is there any channel with maintenance announcements or system health check available?
Otavio Salvador
@otavio
@darekkopka_twitter it is up now
@darekkopka_twitter please check
Alexander Wagner
@alexanderwwagner
Hello together,
i started a new rollout 10 hours ago. But the Status Shows 0% and nothing happens .... What could bei the problem? I use updatehub through yocto ... Thank you!
Alexander Wagner
@alexanderwwagner
I use the cloud solution / meta-updatehub and meta-updatehub-raspberry
Otavio Salvador
@otavio
@alexanderwwagner you need to check if the device has did the probe
Alexander Wagner
@alexanderwwagner
Oct 02 08:01:56 greencube-wagner updatehub[261]: Oct 02 08:01:56.587 INFO update received: 3.2.2-test-image-2.0 (f53c7d867808a88ce91fc600cddddddde76d2af5cdd2042b231594f4d4a2455f)
Oct 02 08:01:56 greencube-wagner updatehub[261]: Oct 02 08:01:56.588 INFO no signature key available on device, ignoring signature validation
Oct 02 08:01:56 greencube-wagner updatehub[261]: Oct 02 08:01:56.620 INFO 'copy' handle checking requirements
Oct 02 08:01:56 greencube-wagner updatehub[261]: Oct 02 08:01:56.621 INFO 'copy' handle checking requirements
Oct 02 08:01:56 greencube-wagner updatehub[261]: Oct 02 08:01:56.622 INFO 'copy' handle checking requirements
Oct 02 08:01:56 greencube-wagner updatehub[261]: Oct 02 08:01:56.623 INFO 'copy' handle checking requirements
Oct 02 08:01:56 greencube-wagner updatehub[261]: Oct 02 08:01:56.624 INFO 'copy' handle checking requirements
Oct 02 08:01:56 greencube-wagner updatehub[261]: Oct 02 08:01:56.626 INFO 'copy' handle checking requirements
Oct 02 08:01:56 greencube-wagner updatehub[261]: Oct 02 08:01:56.627 INFO 'copy' handle checking requirements
Oct 02 08:01:56 greencube-wagner updatehub[261]: Oct 02 08:01:56.628 INFO 'copy' handle checking requirements
Oct 02 08:01:56 greencube-wagner updatehub[261]: Oct 02 08:01:56.629 INFO 'copy' handle checking requirements
Oct 02 08:01:56 greencube-wagner updatehub[261]: Oct 02 08:01:56.631 INFO 'copy' handle checking requirements
Oct 02 08:01:56 greencube-wagner updatehub[261]: Oct 02 08:01:56.632 INFO 'copy' handle checking requirements
Oct 02 08:01:56 greencube-wagner updatehub[261]: Oct 02 08:01:56.633 INFO 'copy' handle checking requirements
Oct 02 08:01:56 greencube-wagner updatehub[261]: Oct 02 08:01:56.634 INFO 'copy' handle checking requirements
Oct 02 08:01:56 greencube-wagner updatehub[261]: Oct 02 08:01:56.635 INFO 'copy' handle checking requirements
Oct 02 08:01:56 greencube-wagner updatehub[261]: Oct 02 08:01:56.636 INFO 'tarball' handle checking requirements
Oct 02 08:01:56 greencube-wagner updatehub[261]: Oct 02 08:01:56.637 INFO running state change callback for 'download' state
Oct 02 08:01:56 greencube-wagner updatehub[261]: Oct 02 08:01:56.637 INFO download callback has exit with success
Oct 02 08:01:58 greencube-wagner updatehub[261]: Oct 02 08:01:58.128 INFO running state change callback for 'error' state
Oct 02 08:01:58 greencube-wagner updatehub[261]: Oct 02 08:01:58.141 INFO error callback has exit with success
Oct 02 08:01:58 greencube-wagner updatehub[261]: Oct 02 08:01:58.142 ERRO error state reached: Invalid status response: 302
Oct 02 08:01:58 greencube-wagner updatehub[261]: Oct 02 08:01:58.143 INFO returning to machine's entry point
This is my status output of the updatehub service