Automagic update script 'install.scr'

  • Hello F&S Support Team,


    we're looking for an easy way to update our multiplatform-based system (NetDCU14) and stumbled over the file install.scr which seems to perfectly fulfill our needs. Everything seems clear except that there is a 72 byte magic header at the beginning of the script :


    Code
    1. 00000000 27 05 19 56 00 65 05 88 50 ae 7a 6d 00 00 01 67 |'..V.e..P.zm...g|
    2. 00000010 00 00 00 00 00 00 00 00 e4 c0 9f 42 11 02 06 00 |...........B....|
    3. 00000020 46 26 53 20 69 6e 73 74 61 6c 6c 20 73 63 72 69 |F&S install scri|
    4. 00000030 70 74 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |pt..............|
    5. 00000040 00 00 01 5f 00 00 00 00 6d 6d 63 20 72 65 73 63 |..._....mmc resc|
    6. ...


    Do we have to use some extra tool to construct this header ?


    Kind Regards,


    Volker

  • You need the program "mkimage" which is built when compiling U-Boot (in the tools subdirectory). We have included this program also as binary in our toolchain directory (included in the tar.bz2 archive for Multi-Platform-Linux 2.0). Just call mkimage without arguments to get some help about the usage.


    For example we build the install.scr file supplied with the release with the following command line:


    Code
    1. toolchain/mkimage -A arm -O u-boot -T script -C none -n "F&S install script" -d sources/install.txt binaries/install.scr


    Your F&S Support Team

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.