reading through the below it seems that the mtd backups that I have taken are pretty much useless as probably I had to use nandump and not dd or cat.
also if I try mtd write /tmp/mtd_backup_11 factory_data
from the initramfs terminal I keep on getting:
root@OpenWrt:~# mtd write /tmp/mtd_11.txt factory_data
Could not open mtd device: factory_data
Can't open device for writing!
I searched a little more and then found out that maybe I need to remove the read-only entry from the DTS file for mtd11/mtd12(the partitions I want to restore) but that also does not help in fixing the above error. Any suggestions ?