Hi Brendan,
On 05/12/2015 22:22, Brendan Simon (eTRIX) wrote:
> Hi Stefano
>
> On 4/12/2015 7:36 PM, Stefano Babic wrote:
>> Hi Brendan,
>>
>> Both - there is support for disk images in compressed format. They are
>> decompressed on the fly by swupdate and written into a partition / disk.
>>
>> What you are asking, it is to install a tarball - this is supported by
>> the "archive" handler, that takes a tarball (compressed or not) and
>> install it into a device that swupdate will mount.
>
> I didn't find too much info on the archive handler, but I did notice
> that invoking swupdate with no parameters listed handlers, which
> included "tar" and "archive".
>
> My next big issue is fw_env.config. I don't know much about it and it
> seems difficult to get a working one.
> fw_printenv continually gives me CRC error and uses the defaults.
This is an issue related to U-Boot, not swupdate. You get a better
support asking to U-Boot ML.
You have to check into U-Boot sources, not kernel. You have to find
where U-Boot and the environment is, check if it is mapped to a mtd, and
set the fw_env.config. You cannot find the right values just looking
into the kernel.
I guess that there is not a mtd for the environmnent, because mtd1 is
very large and U-Boot cannot be so big. I can then just guess that the
environment is in the mtd1, maybe at the same offset as most Zync board
(0xE0000). You have to check this, and better rearrange the MTD setup to
assign an own mtd to the environment.