Need files to push the .swu file to the Ubuntu System

Rampur, Manoj 30 Reputation points
2023-11-01T09:01:43.7333333+00:00

I have referred to this link to create a .swu file:

https://github.com/Azure/iot-hub-device-update/tree/main/src/extensions/step_handlers/swupdate_handler_v2/tests/testdata/swupdate_filecopy

I tried to push the updates to Ubuntu but it's failing and .swu file is not downloading fully in the workfolder, I need the right update.sh file and .manifest.json file to push the updates to Ubuntu.

Please create those files(update.sh and .manifest.json) and respond ASAP so that I can use those files along with the .swu file and push the updates to Ubuntu through Azure Portal or any other working example with the .swu file, update.sh and manifest.json will be fine.

Thanks in Advance!!

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
402 questions
Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
579 questions
Azure IoT Plug and Play
Azure IoT Plug and Play
A Microsoft technology based on an open modeling language that enables developers to connect internet of things (IoT) devices to the cloud without having to write any code.
18 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,210 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 35,096 Reputation points
    2023-11-01T11:11:00.5566667+00:00

    Rampur, Manoj Greetings!

    I tried to push the updates to Ubuntu but it's failing and .swu file is not downloading fully in the workfolder, I need the right update.sh file and .manifest.json file to push the updates to Ubuntu.

    Could you please provide more details about the error message you're receiving when trying to push the updates to Ubuntu?

    Please create those files(update.sh and .manifest.json) and respond ASAP so that I can use those files along with the .swu file and push the updates to Ubuntu through Azure Portal or any other working example with the .swu file, update.sh and manifest.json will be fine.

    I would suggest you, create an issue in the same repo for further assistance.
    Edit:
    I see that your issue has been addressed on the Github repo.

    From your device twin, it looks like the argument for passing in the installed criteria has a typo:

    It has --intalled-criteria 1.0 but it should be --installed-criteria 1.0.
    NOTE: the missing "s"

    Also, make sure the /etc/adu-version in the .swu image has a line with 1.0

    "instructions":{"steps":[{"handler":"microsoft/swupdate:2","files":["f9938843efef12267","fe02407a96dfbe7cf"],"handlerProperties":{"scriptFileName":"example-a-b-update.sh","arguments":"--action-install --intalled-criteria 1.0 --swu-file audio-analytics-update_1.2.swu --work-folder ","installedCriteria":"1.0",

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.