Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 25 20:03

    otavio on 2.1.0-dunfell

    (compare)

  • Jan 25 20:03

    otavio on dunfell

    updatehub: Upgrade to 2.1.0 Th… Merge pull request #63 from Upd… (compare)

  • Jan 25 20:03
    otavio closed #63
  • Jan 25 18:28
    Ossanes opened #63
  • Jan 25 18:27

    Ossanes on 2.1.0-dunfell

    updatehub: Upgrade to 2.1.0 Th… (compare)

  • Jan 25 18:17

    otavio on 2.1.0-master

    (compare)

  • Jan 25 18:17

    otavio on master

    updatehub: Upgrade to 2.1.0 Th… Merge pull request #62 from Upd… (compare)

  • Jan 25 18:17
    otavio closed #62
  • Jan 25 17:27
    Ossanes opened #62
  • Jan 25 17:26

    Ossanes on 2.1.0-master

    updatehub: Upgrade to 2.1.0 Th… (compare)

  • Jan 25 17:22

    Ossanes on 2.1.0

    updatehub: Upgrade to 2.1.0 Th… (compare)

  • Jan 24 21:56

    otavio on dunfell

    meta-updatehub: Conform git URL… (compare)

  • Jan 21 22:24

    otavio on toradex

    (compare)

  • Jan 21 22:24

    otavio on master

    updatehub-config-toradex: Fix b… conf/layer.conf: Fix overrides … Merge pull request #28 from Upd… (compare)

  • Jan 21 22:24
    otavio closed #28
  • Jan 21 20:14
    Ossanes opened #28
  • Jan 21 20:00

    Ossanes on toradex

    updatehub-config-toradex: Fix b… conf/layer.conf: Fix overrides … (compare)

  • Jan 19 13:00

    otavio on fix-toradex

    (compare)

  • Jan 19 13:00

    otavio on dunfell

    apalis-imx6: Define a default P… apalis-imx6: u-boot-fslc: Fix … Merge pull request #27 from Upd… (compare)

  • Jan 19 13:00
    otavio closed #27
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
Otavio Salvador
@otavio
@alexanderwwagner you could check current version as we did improve the error logs?
tagboxvipul
@tagboxvipul
@otavio Hi i want to upload a package to update the update-hub cloud but its throwing an error as
Starting uploading objects...Error: Could not upload metadata: Server is not available. Try again later.
Can you help me to figure out this issue
And also on updatehub CE device is not able to parse metadata.And giving "updatehub: Could not parse json"
Otavio Salvador
@otavio
@tagboxvipul are you using Linux or Zephyr?
tagboxvipul
@tagboxvipul
zephyr
Gerson Fernando Budke
@nandojve
Hi @tagboxvipul , I would like understand better some points:
1) Is this a recent error because you update code? I mean, have you using UpdateHub with success in past and suddenly it started to fail?
2) We need know what Zephyr version you are using + board + connection details (ETH, WIFI, etc).
tagboxvipul
@tagboxvipul
Hi
1) We have had trouble with different parts in update hub. Have not managed to successfully run it end to end. Although in parts we have been able to test it
2)1.7.0ncs, custom board with gsm modem
runs on ppp
tagboxvipul
@tagboxvipul
right now it looks like the package's metadata being parsed by probe_cb is failing. reply.max_length and reply.offset are coming out to be equal (456 bytes). hence data being copied tometadata remains empty memcpy(metadata, reply.data ,reply.max_len - reply.offset);
Otavio Salvador
@otavio
@tagboxvipul you can run uhu package metadata to check if it is consistent.
tagboxvipul
@tagboxvipul
@tagboxvipul you can run uhu package metadata to check if it is consistent.
My package metadata looks like this
{
"objects": [
[
{
"filename": "app_update.bin",
"mode": "zephyr",
"sha256sum": "2a6c8d6ed71c2ab293dce3e2ef5dd03d116df387cd43fa161478cf25ffe43ddd",
"size": 328262
}
],
[
{
"filename": "app_update.bin",
"mode": "zephyr",
"sha256sum": "2a6c8d6ed71c2ab293dce3e2ef5dd03d116df387cd43fa161478cf25ffe43ddd",
"size": 328262
}
]
],
"product": "e4d37cfe6ec48a2d069cc0bbb8b078677e9a0d8df3a027c4d8ea131130c4265f",
"supported-hardware": "any",
"version": "3.0.0"
}
Valid metadata.
Otavio Salvador
@otavio
so it looks good. Have you check using latest updatehub-ce?
we did some fixes some weeks ago
@nandojve can you check it too?
tagboxvipul
@tagboxvipul
and reply.data from probe_cb is
f0 2b 01 20 c8 01 c8 01 0c aa 04 00 1c 00 aa aa |.+. .... ........
00> 68 45 f9 de 03 23 f6 63 1a 64 9e ab d2 0f 01 b7 |hE...#.c .d......
00> ff 7b 22 6f 62 6a 65 63 74 73 22 3a 20 5b 5b 7b |.{"objec ts": [[{
00> 22 66 69 6c 65 6e 61 6d 65 22 3a 20 22 61 70 70 |"filenam e": "app
00> 5f 75 70 64 61 74 65 2e 62 69 6e 22 2c 20 22 6d |_update. bin", "m
00> 6f 64 65 22 3a 20 22 7a 65 70 68 79 72 22 2c 20 |ode": "z ephyr",
00> 22 73 68 61 32 35 36 73 75 6d 22 3a 20 22 34 34 |"sha256s um": "44
00> 33 65 33 35 30 33 66 62 66 39 32 37 66 64 36 62 |3e3503fb f927fd6b
00> 38 39 65 38 64 66 31 38 61 34 33 34 30 38 35 66 |89e8df18 a434085f
00> 31 64 33 65 39 36 61 39 39 62 39 64 36 39 32 32 |1d3e96a9 9b9d6922
00> 36 63 61 38 30 63 61 63 30 64 61 65 33 61 22 2c |6ca80cac 0dae3a",
00> 20 22 73 69 7a 65 22 3a 20 33 32 38 32 33 32 7d | "size": 328232}
00> 5d 2c 20 5b 7b 22 66 69 6c 65 6e 61 6d 65 22 3a |], [{"fi lename":
00> 20 22 61 70 70 5f 75 70 64 61 74 65 2e 62 69 6e | "app_up date.bin
00> 22 2c 20 22 6d 6f 64 65 22 3a 20 22 7a 65 70 68 |", "mode ": "zeph
00> 79 72 22 2c 20 22 73 68 61 32 35 36 73 75 6d 22 |yr", "sh a256sum"
00> 3a 20 22 34 34 33 65 33 35 30 33 66 62 66 39 32 |: "443e3 503fbf92
00> 37 66 64 36 62 38 39 65 38 64 66 31 38 61 34 33 |7fd6b89e 8df18a43
00> 34 30 38 35 66 31 64 33 65 39 36 61 39 39 62 39 |4085f1d3 e96a99b9
00> 64 36 39 32 32 36 63 61 38 30 63 61 63 30 64 61 |d69226ca 80cac0da
00> 65 33 61 22 2c 20 22 73 69 7a 65 22 3a 20 33 32 |e3a", "s ize": 32
00> 38 32 33 32 7d 5d 5d 2c 20 22 70 72 6f 64 75 63 |8232}]], "produc
00> 74 22 3a 20 22 65 34 64 33 37 63 66 65 36 65 63 |t": "e4d 37cfe6ec
00> 34 38 61 32 64 30 36 39 63 63 30 62 62 62 38 62 |48a2d069 cc0bbb8b
00> 30 37 38 36 37 37 65 39 61 30 64 38 64 66 33 61 |078677e9 a0d8df3a
00> 30 32 37 63 34 64 38 65 61 31 33 31 31 33 30 63 |027c4d8e a131130c
00> 34 32 36 35 66 22 2c 20 22 73 75 70 70 6f 72 74 |4265f", "support
00> 65 64 2d 68 61 72 64 77 61 72 65 22 3a 20 22 61 |ed-hardw are": "a
00> 6e 79 22 2c 20 22 76 65 72 73 69 6f 6e 22 3a 20 |ny", "ve rsion":
00> 22 33 2e 30 2e 30 22 7d a8 73 02 00 00 00 07 61 |"3.0.0"} .s.....a
00> 01 00 00 00 88 c4 00 20 28 2e 01 20 33 72 02 00 |....... (.. 3r..
00> fd 71 02 00 85 f1 03 00 fd 71 02 00 ff 0a 04 00 |.q...... .q......
00> 70 a2 00 20 00 00 00 00 00 00 00 00 63 d7 03 00 |p.. .... ....c...
00> a8 73 02 00 00 00 07 61 01 00 00 00 88 c4 00 20 |.s.....a .......
00> 10 00 00 00 30 2e 01 20 00 00 00 00 88
image.png
And reply.max_len = 456 offset len is 456 ,i have done some hack to parse meta data like (memcpy(metadata, reply.data +(32-15),456);) but after this it is failing at
above picture
Gerson Fernando Budke
@nandojve
Hi @tagboxvipul ,
Ok, so you never got UpdateHub to work at least 1 time, right?
I need know Zephyr correct version. I mean, are you using 2.7.0 Release ( I mean the tagged version)? I need know what development board you are using? I need know what modem you are using.
Currently, we have it working with SIMCOM SIM-800 over PPP
Currently Zephyr (at mainline) is changing a lot of things in JSON parser.
The easy way to test UpdateHub is using local network with UpdateHub-CE and Ethernet.
Otavio Salvador
@otavio
The upload is likely due do you didn't log in properly.
tagboxvipul
@tagboxvipul

Hi @nandojve It was working earlier for POC we have not tried in production .
1 ) I am working on ncs v2.6.99-ncs1 tag. and harwdare is nrf52840 and quectels EC20 module over PPP
2 )

Currently Zephyr (at mainline) is changing a lot of things in JSON parser.

I dont think there is json parsing issue coap_packet reply data looks like .+.............hE...#.c.d.......{"objects":[[{"filename":"app_update.bin","mode":"zephyr","sha256sum":"443e3503fbf927fd6b89e8df18a434085f1d3e96a99b9d69226ca80cac0dae3a","size":328232}],[{"filename":"app_update.bin","mode":"zephyr","sha256sum":"443e3503fbf927fd6b89e8df18a434085f1d3e96a99b9d69226ca80cac0dae3a","size":328232}]],"product":"e4d37cfe6ec48a2d069cc0bbb8b078677e9a0d8df3a027c4d8ea131130c4265f","supported-hardware":"any","version":"3.0.0"}
Is this data looks like correct but first 32 byte looks weird does is coming from any padding header and due to this i think its failing to memcpy at line memcpy(metadata, reply.data ,reply.max_len - reply.offset);

The easy way to test UpdateHub is using local network with UpdateHub-CE and Ethernet.
right now i dont have hardware setup for this

tagboxvipul
@tagboxvipul
image.png
Attahched screenshot shows line number 739 is not able to copy any metadata
tagboxvipul
@tagboxvipul
@nandojve @otavio please help me to solve above issue ASAP
Gerson Fernando Budke
@nandojve
Hi @tagboxvipul , can you check if you have this patch? zephyrproject-rtos/zephyr#37854
I remember that was introduced a regression in Zephyr and I fixed for Zephyr 2.7.0