Hi Albert,
On 27/07/2018 13:13, Albert-Miquel wrote:
> Hello again,
>
> after some work, I think I'm almost at the end, but I'm still having
> some problem with the images. To simplify the problem, I'm working only
> with rootfs. Then, the sw-description file is as follows:
>
> software =
> {
> version = "0.1";
>
> hardware-compatibility = [ "revA" ];
>
> images: (
> /* single copy mode */
> {
> filename = "rootfs.ext4";
> device = "/dev/mmcblk0p2";
> type = "raw";
> sha256 =
> "2ae0eb5a53152f04d92addfe734ccafcb9766b32befd3266ed2092bb3ea9a866";
> }
> );
> }
>
> And the output os SWUpdate is:
>
>
> [network_initializer] : Main loop Daemon
>
> Waiting for requests...
>
> [network_initializer] : Main thread sleep again !
>
> *Image invalid or corrupted. Not installing ...*
>
> ERROR corelib/stream_interface.c : extract_files : 173 : *SW not
> compatible with hardware*
>
Log is telling you loudly what happens. You have activated the hw
compatibility check. You have to inform SWUpdate which HW is running and
the same information must be in sw-description, where it is current missing.
If your board (I see you have a zynq) can be called "zynq", and you set
"revA", you should start swupdate with "-H zynq:revA"
See
http://sbabic.github.io/swupdate/sw-description.html?highlight=hardware#hardware-compatibility
> [swupdate_verify_file] : Verified OK
>
> [swupdate_verify_file] : Verify signed image: Read 375 bytes
>
> [parse_images] : Found Image : rootfs.ext4 in device :
> /dev/mmcblk0p2 for handler raw
>
> [parse_hw_compatibility] : Accepted Hw Revision : revA
>
> [parse_cfg] : Version 0.1
>
> [extract_file_to_tmp] : Found file: filename sw-description.sig size 256
>
> [extract_file_to_tmp] : Found file: filename sw-description size 375
>
> Software Update started !
>
>
> For the generation of the image I'm using the following instructions:
>
> dd if=/dev/zero of=rootfs.ext4 bs=1M count=2000
> mkfs.ext4 rootfs.ext4
> mount -o loop rootfs.ext4 /mnt
> cp -ax /{bin,dev,etc,lib,root,sbin,usr,var} /mnt
> mkdir /mnt/{home,proc,opt,sys,tmp}
> chmod 777 /mnt/tmp
> umount /mnt
This is just a hack without any build system and should not be used in
production.
>
> Can you provide some help what's going wrong?
Best regards,
Stefano Babic
>
> Thanks in advance,
>
> Albert
>
> 2018-07-17 13:13 GMT+02:00 Albert-Miquel <
wuampa...@gmail.com
> <mailto:
wuampa...@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+u...@googlegroups.com
> <mailto:
swupdate+u...@googlegroups.com>.
> To post to this group, send email to
swup...@googlegroups.com
> <mailto:
swup...@googlegroups.com>.
> For more options, visit
https://groups.google.com/d/optout.
--
=====================================================================
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
=====================================================================