I've got it,
I used 2 header files in mtd-utils 1.4.6 mtd/mtd-user.h mtd/mtd-abi.h to open open up the mtd partitions.
/dev/mtd0 bootloader
/dev/mtd1 u boot params
/dev/mtd2 unused
It's pretty easy to open these up
[CODE]
fd = open (/dev/mtd0, O_SYNC | O_RDWR),
[/CODE]
the only tricky part was erasing it though
[CODE]
struct erase_info_user erase;
/*
fill out erase
*/
ioctl (fd ,MEMERASE,&erase) < 0)
[/CODE]