Buffalo TeraStation Flash Map

The TeraStation has a 4MB Flash which is used to store the bootloader, kernel, inital ramdisk and some configuration. It is mapped as follows:

Device Start End Size Contents
/dev/mtd0 0x00000000 0x00300000 0x300000 Flash update header + Kernel + Initial Ramdisk
/dev/mtd1 0x00300000 0x00370000 0x70000 Bootloader
/dev/mtd2 0x00370000 0x00380000 0x10000 Bootloader parameters
/dev/mtd3 0x00380000 0x00400000 0x80000 TeraStation configuration backup
/dev/mtd4 0x00000000 0x00400000 0x400000 Whole flash