Hi Marek,

I would suggest adding some kind of version field (2 bytes, value "01"
or "10") just after the magic and bumping file names to 32 bytes as
well.

--
-{Nico}


On Wed, Nov 2, 2011 at 6:55 AM, Marek Lindner <lindner_ma...@yahoo.de> wrote:
>
> Hi,
>
>> being a regular user of the combined image I'd like to propose changing
>> the  format in order to render it more flexible. The main focus are the
>> embedded files: The new format shall be able to embedded numerous files
>> and their filenames. Furthermore, the type field shall make the image
>> identifiable even if the image name has been mangled.
>
> thanks to some feedback the format was slightly improved: There is room for an
> md5 checksum and the type field is longer.
>
> Here is the updated format:
> # Write image header followed by all specified files
> # The header is padded to 64k, format is:
> #  CE               magic word ("Combined Extended Image") (2 bytes)
> #  <TYPE>           short description of the target device (32 bytes)
> #  <NUM FILES>      number of files following the header (2 byte)
> #  <file1_name>     name of the first file (20 bytes)
> #  <file1_length>   length of the first file encoded as zero padded 8 digit
> hex (8 bytes)
> #  <file1_md5>      md5 checksum of the first file (32 bytes)
> #  <fileN_name>     name of the Nth file (20 bytes)
> #  <fileN_length>   length of the Nth file encoded as zero padded 8 digit hex
> (8 bytes)
> #  <fileN_md5>      md5 checksum of the Nth file (32 bytes)
>
> Regards,
> Marek
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to