Denktenk’s cookery Class
Please note that at the time of editing (May 2009) mkdnimg does not support the 91HD / 250HD
Ingredients:- Puttytel, a free telnet client can be found here- mkdnimg can be found here (mkdnimg.exe works with wine 1.0.1 on debian linux)
In this example we make an all.img
Step 1Open a telnet session to the box (enter user/pass). Commands are set in bold character.:
root@relook ~ # cd /tmproot@relook /tmp # cat /proc/mtd(response, will be different in DGS and enigma) dev: size erasesize name mtd0: 00040000 00010000 nor.config_welcome mtd1: 001e0000 00010000 nor.db mtd2: 00460000 00010000 nor.root mtd3: 00150000 00010000 nor.kernel mtd4: 00030000 00010000 nor.boot mtd5: 005b0000 00010000 nor.kernel_root mtd6: 00790000 00010000 nor.kernel_root_db mtd7: 007d0000 00010000 nor.all_noboot mtd8: 00800000 00010000 nor.all mtd9: 0189ffff 00001000 highram root@relook /tmp # dd if=/dev/mtd/8 of=all(response) 16384+0 records in 16384+0 records out root@relook /tmp # ls -al(response) drwxrwxrwt 2 root root 0 Oct 29 08:45 . drwxr-xr-x 16 1003 1003 178 Sep 18 21:07 ..—S–s–T 1 root root 8 Jan 1 1970 .CCcam.nodeid srw-rw-rw- 1 root root 0 Jan 1 1970 .emud.socket-rw-r–r– 1 root root 0 Jan 1 1970 .enigma srwxr-xr-x 1 root root 0 Jan 1 1970 .listen.camd.socket-rw-r–r– 1 root root 8388608 Oct 29 08:45 all srw-rw-rw- 1 root root 0 Jan 1 1970 camd.socket-rw-rw-rw- 2 root root 185 Oct 29 08:45 ecm.info-rw-rw-rw- 2 root root 185 Oct 29 08:45 ecm0.info srwxr-xr-x 1 root root 0 Jan 1 1970 hotplug.socket-rw-r–r– 1 root root 325 Jan 1 1970 iplog.log srwxr-xr-x 1 root root 0 Jan 1 1970 mmi.socket root@relook /tmp #
Backup image is stored in /tmp
Step 2
FTP the image from the box (/tmp) into your computer Backup has no extension. In this case it’s called:all
Step 3
Start mkdnimg.exe
Select proper parameters and push: make
Ready you are
If you want to backup eg an all_noboot you change this command: dd if=/dev/mtd/8 of=all into this command: dd if=/dev/mtd/7 of=all_noboot
Special notes for CubeRevo / IP9000HD
(1) There is not enough room in /tmp for the file produced from the dd command. If you have a hard disk, you can put it in /media; if you have a USB stick you can put it in /mnt/usb/usb0.
(2)Also, /dev/mtd is somewhat different. It consists of /dev/mtd0 to /dev/mtd8 Each corresponds to a different image type. When you give the command
cuberevo /media$ cat /proc/mtd
the result is something like
dev: size erasesize name mtd0: 00040000 00020000 “nor.boot”mtd1: 00020000 00020000 “nor.config_welcome”mtd2: 00200000 00020000 “nor.kernel”mtd3: 013a0000 00020000 “nor.root”mtd4: 00a00000 00020000 “nor.db”mtd5: 015a0000 00020000 “nor.kernel_root”mtd6: 01fa0000 00020000 “nor.kernel_root_db”mtd7: 01fc0000 00020000 “nor.all_noboot”mtd8: 02000000 00020000 “nor.all”
Therefore, to backup an “all” image to hard disk, the command is:
cuberevo /$ cd /media cuberevo /media$ dd if=/dev/mtd8 of=all(response) 65536+0 records in 65536+0 records out
If you wanted a all_noboot image, it would be cuberevo /media$ dd if=/dev/mtd7 of=all_noboot
and similarly for other image types.
Now you should do a ‘sync’ command cuberevo /$ sync
Confirm the file has been created: NLB cuberevo /media]$ ls -al
amongst the files listed should be one called all.
You should copy this to your computer hard disk and use the latest version of mkdnimg which can be found hereto create your image.

