that's my packer:
It searches for files "loader", "firm" (firmware) and so. And pack it all.
You'll find everything in the code. It can be easily modifed.
[...skipped...]
I tested a firmware without the attached file pack - and it didn't work, but my tests could be wrong (other thing might have been wrong in the file).
I tried to pack file and it seems packer works fine
what exactly did not work? does camera not accept file?
can you explain more detailed what gone wrong?
have you encrypted packed file before placing it into camera?
also there are flags(types) of sections.
they are zero in new file packed by your packer.
type(flags) for MAIN_FIRMWARE must be 3
type(flags) for FirmwareVersion must be 4
also maybe required section is ModelID
have you seen eos_tools_v10.rar ?
Any developers interested in working on CHDK firmware for DSLRs ?