Certainly you can. I see a couple of ways:
- Have your rootfs as ext4 file (with path pointing to a location with enough free space on target) within SWUpdate CPIO archive, accompanied with a shellscript containing pre- and post-install tasks.
In pre-install task, create the target file as empty: this is required due to how 'file' items are handled by SWUpdate.
Let SWUpdate extract the ext4 file into the location, and in post-install task do whatever is necessary to place the ext4 rootfs into the unused partition.
- Have your rootfs as ext4 image within SWUpdate CPIO archive, and use the "remote handler" to pass the image data (via ZeroMQ) to a program you'll have written. That program is responsible for placing the ext4 rootfs into the unused partition.
You could use squashfs instead of ext4 to make the update archive smaller (but then you cannot use 'dd').
(I'm using a custom handler, written in-house, that streams the data to a back-end installer, which is a command-line utility; it's kinda like the "remote handler" but way simpler imho.)
--sami
> joaomen...@gmail.com <mailto:joaomendes.1992@gmail.com>
>
> --
> You received this message because you are subscribed to the Google
> Groups "swupdate" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to swupdate+unsubscribe@googlegroups.com
> <mailto:swupdate+unsubscribe@googlegroups.com>.
> To post to this group, send email to swup...@googlegroups.com
> <mailto:swupdate@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.
> joaomen...@gmail.com <mailto:joaomendes.1992@gmail.com>
>
> --
> You received this message because you are subscribed to the Google
> Groups "swupdate" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to swupdate+unsubscribe@googlegroups.com
> <mailto:swupdate+unsubscribe@googlegroups.com>.
> To post to this group, send email to swup...@googlegroups.com
> <mailto:swupdate@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.
--
Meet DENX at the Embedded World Trade Show
14 Mar - 16 Mar 2017, Nuremberg Trade Fair Centre, Hall 4, Booth 581
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=====================================================================