Replies: 1 comment 1 reply
-
@jelalanne We use Yocto to build the .swu such as the You can do similarly by following the README.md here: The .swu format in SWUpdate is a CPIO archive that typically has the following files (in the order specified):
There is a diagram and more info on SWUpdate's doc page here: On an x64 desktop linux box, you can examine the contents of the 1.0.2 release .swu files built using Yocto recipe for Raspberry Pi 3 board by doing the following: wget https://github.com/Azure/iot-hub-device-update/releases/download/1.0.2/Tutorial_RaspberryPi.zip
unzip Tutorial_RaspberryPi.zip
cd Tutorial_RaspberryPi
# List contents of .swu CPIO archive:
cpio -i --list < adu-update-image-raspberrypi3-1.0.2-2.swu
# Unpack the contents of .swu CPIO archive
cpio -i < adu-update-image-raspberrypi3-1.0.2-2.swu
# contents of sw-description and .sig
cat sw-description
base64 sw-description.sig
# uncompress ext4 raw disk image, mount it read-only on loopback device, and explore
gunzip adu-base-image-raspberrypi3.ext4.gz
sudo mkdir /mnt/rpi3
sudo mount -o loop,ro adu-base-image-raspberrypi3.ext4 /mnt/rpi3
cd /mnt/rpi3
ls -latr |
Beta Was this translation helpful? Give feedback.
-
Hello,
I would like to know how do you all generate your SWU files, and what do they have inside?
Beta Was this translation helpful? Give feedback.
All reactions