flashimg is a tool used to create and handle flash memory image file.
You can read/write a binary file from/to a partition of your flash memory image file.
Very useful with Qemu.
git clone git://gitorious.org/flashimg
And now, the classic:
$ ./autogen.sh $ ./configure $ make $ sudo make install
Flashimg need a partition file to define all the partitions of your flash image file. Syntax:
flashimg -s [size] -t [flash type] -f [image file] -p [partition file] -w [partition name to write],[file] -r [partition name to read],[file]
Example for a 2MB file called nor.img where write the kernel and bootloader partition:
$ flashimg -s 2M -t nor -f nor.img -p boot.part -w boot,/.../bootloader/boot.bin -w kernel,/.../linux/arch/arm/boot/zImage
The partition file format is one line per partition. Each line is the partition name, the partition length and the partition offset in flash.
Partition file example :boot 0x00040000 0x00000000 env 0x00020000 0x00040000 kernel 0x00500000 0x00060000 root 0x03aa0000 0x00560000
License: GNU GPL v2
Source code : Browse the source
Download tarball :flashimg-flashimg-master.tar.gz
Clone with git, URL:
Home page on gitorious: https://gitorious.org/flashimg