mtdutils is a set of utilities for doing low-level operations on flash devices.
mtdutils depends on ZLib?, so you need to make sure it has been installed first.
Compile mtdutils by running
make CROSS=avr32-linux-
If everything went well, install the utilities on the target by running
make CROSS=avr32-linux- DESTDIR=install
Substitute
You will need to make sure your kernel is compiled without the write lock flag for the flash memory. You can do this by removing the line
.mask_flags = MTD_WRITEABLE,
from linux-2.6.xx/arch/avr32/boards/atngw100/flash.c, inside struct mtd_partition flash_parts[]
As an example, you can install u-boot on the NGW100 like this:
mtd_debug erase /dev/mtd0 0x0 0x20000 mtd_debug write /dev/mtd0 0x0 0x/path/to/u-boot.bin