Hi Ben,
On 23/06/2016 11:09, Kwan Ben wrote:
> Hi,
> According to my current understanding, swupdate support update a root
> file system with file system image, e.g. flash rootfs.ext3 to
> /dev/mmcblk1p1.
>
> Does it support a archive also?
> E.g. I have my root file system in root.tar.gz, than I want to extract
> it to / of /dev/mmcblk1p1.
This does not make sense - if you have a *tarball*, you have to install
it into a valid path, that means you have to provide a valid filesystem
for it.
If you want to install a tarball into a path, you have to use *file* and
not *image*. Of course, /dev/mmcblk1p1 must contain a valid filesystem
(even empty), else swupdate cannot mount it.
If the device does not contain a valid filesystem, you can add a pre-
install script to do it.
>
> I make a demo swupdate image for test, it seems that the path could not
> be a directory, right?
>
????
> And I also found: install a new file to a inexistent path will fail, it
> seems that swupdate won't create the parent path like "mkdir -p".
?????
If /dev/mmcblk1p1 contains a valid filesystem, you can use "/" as path.
Anyway, mkdir -p does not create "parent" path (or no idea what you mean
here).
Best regards,
Stefano Babic
--
=====================================================================
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
=====================================================================