Hi folks,

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.

Here is what I had in mind:

# 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 (10 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)
#  <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)

Attached you will find a script to generate the format I described.

Cheers,
Marek

Attachment: combined-ext-image.sh
Description: application/shellscript

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to