Hi
I have attached the contents of the .swu used and the script i used to generate it. The conv. thread allows me to upload only photos some reason, so attached everything as pics.
For changing full image, .swu contains -
sw-description (see full_image_sw-description below)
emmcsetup.lua (see emmcsetup and _contd below)
terminal-server-image-with-nano.ext4.gz
For delta update, .swu contains -
sw-description (see delta_sw-description below)
emmcsetup.lua (same)
nano.rdiff.delta (generated using rdiff command)
Script used to generate .swu - generate_swu.sh (see generate_swu below)
I got all these steps from the internet. Do let me know if I'm missing anything.
***************************************************************************************
For building the base terminal-server-image (i use .wic image for the rpi) -
- Cloned meta-swupdate (dunfell), meta-swupdate-boards (terminal-server)
- Added those to bblayers.conf
- In local.conf, added :
CONF_VERSION = "1"
RPI_USE_U_Boot = "1"
IMAGE_FSTYPES = "wic.bz2 ext4.gz"
PREFERRED_PROVIDER_u-boot-fw-utils = "libubootenv"
KERNEL_IMAGETYPE = "uImage"
IMAGE_INSTALL_append = " kernel-image kernel-modules"
WKS_FILES_raspberrypi3 = "ts-raspberrypi.wks"
bitbake terminal-server-image
For binary delta creation -
Say the above generated image is <image1>
<image2> is built after adding IMAGE_INSTALL_append = " nano"
rdiff signature <image1>.rootfs.wic signature_file
rdiff delta signature_file <image2>.rootfs.wic nano.rdiff.delta
***************************************************************************************
full_image_sw-description :
emmcsetup :
emmcsetup_contd :
delta_sw-description :
generate_swu :

Kind regards,
Aravindan NC