Kernel replace from Shell

MissKhrist
Is possible to replace the Kernel from shell?

Eg. Kernel 2.6.32.2 mini2440

Partitions 
name       | device
------------------------------
supervivi  | mtdblock0 mtd0
param      | mtdblock1 mtd1
kernel     | mtdblock2 mtd2
root       | mtdblock3 mtd3


Eg. dd if=myNewKernel.bin of=/dev/mtd2

(problem mtd2 isn't writable)