NAME

mkhfflash - Utility to combine binary files into a flash image.


SYNOPSIS

mkhfflash -fcs <size> -fcn <number> -o1 <output file> [-o2 <outputfile>] -bf <filename> -cf filename> file1.bin file1_loc ...


DESCRIPTION

Note: this utility is not intended to be run directly, it should be run by metamk as part of the build process.

mkhfflash is a utility used to combine a boot block, a configuration information binary and some FlashFS partitions to produce a bootable flash image.


OPTIONS

-fcs number
The flash chip size in kbytes. This corresponds to the size of each output file. Specify zero will produce a minimally sized file.

-fcn number
The number of output files to generate (1 or 2).

-o1 name
The name of the output file for the first binary file.

-o2 name
The name of the output file for the second binary file.

-bf name
The name of the binary boot file to use.

-cf name
The name of the configuration information file to use.

-h
Print a help message.

-v
Be verbose.

file1.bin file1_loc
file1.bin is a name of a file which is to be included in the flash image. This file will be placed at the address specified in file1_loc (in bytes). Multiple name / location pairs can be specifed on the command line.


EXAMPLES

mkhfflash -fcs 0 -fcn 1 -o1 flash.bin -bf boot.bin -cf config.bin flashfs1.bin 0 flashfs2.bin 0


IMPORTANT

Specifying a flashchipsize of 0 and all start address set to 0 will produce the smallest possible output file. This will only work with a flash chip number of 1.

The offsets can be determined automatically. If the input file starting address is set to 0 it will be placed in the next available 64 kbyte block.

Warnings will be given if a flash address is not specified on a 64kbyte boundary.


SEE ALSO

DO-008668-PS Virata Tools 8.0 Implementation Overview

DO-007286-TC Helium Boot Procedure