+ df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 60.0M 47.6M 12.4M 79% /
tmpfs 64.0K 0 64.0K 0% /media
/dev/sda1 232.8G 1.2G 231.6G 1% /media/hdd
/dev/sdb1 1.8G 65.6M 1.8G 3% /media/usb
tmpfs 70.9M 4.4M 66.5M 6% /var/volatile
/dev/mtdblock2 3.8M 2.2M 1.5M 59% /boot
+ swapoff /media/hdd/backup/swapfile
swapoff: can't stat '/media/hdd/backup/swapfile': No such file or directory
+ rm /media/hdd/backup/swapfile
rm: can't remove '/media/hdd/backup/swapfile': No such file or directory
+ dd if=/dev/zero of=/media/hdd/backup/swapfile bs=1024 count=256000
256000+0 records in
256000+0 records out
262144000 bytes (250.0MB) copied, 42.586813 seconds, 5.9MB/s
+ mkswap /media/hdd/backup/swapfile
Setting up swapspace version 1, size = 262139904 bytes
UUID=0eaa8b9a-efff-401f-b6f2-092139ba79cb
+ swapon /media/hdd/backup/swapfile
+ /tmp/dFlash/bin/nanddump -n -o -b -c -f /media/hdd/backup/s.bin /dev/mtd/1
Block size 16384, page size 512, OOB size 16
Dumping data starting at 0x00000000 and ending at 0x00040000...
cutoff at 0x000235e0...
+ umount /tmp/boot
umount: can't umount /tmp/boot: No such file or directory
+ mkdir /tmp/boot
+ mount -o bin /boot /tmp/boot
+ /tmp/dFlash/bin/mkfs.jffs2 --root=/tmp/boot --disable-compressor=lzo --compression-mode=size --ignore=/media/net --ignore=/autofs --ignore=/media/swap --ignore=/dev/bus --ignore=/proc --ignore=/sys --ignore=/media --ignore=/media/hdd --ignore=/media/usb --ignore=/dev/pts --ignore=/var/volatile --ignore=/boot --output=/media/hdd/backup/b.jffs2 -e 0x4000 -n -l
mkfs.jffs2: error!: Usage: mkfs.jffs2 [OPTIONS]
Make a JFFS2 file system image from an existing directory tree
Options:
-p, --pad[=SIZE] Pad output to SIZE bytes with 0xFF. If SIZE is
not specified, the output is padded to the end of
the final erase block
-r, -d, --root=DIR Build file system from directory DIR (default: cwd)
-s, --pagesize=SIZE Use page size (max data node size) SIZE.
Set according to target system's memory management
page size (default: 4KiB)
-e, --eraseblock=SIZE Use erase block size SIZE (default: 64KiB)
-c, --cleanmarker=SIZE Size of cleanmarker (default 12)
-m, --compr-mode=MODE Select compression mode (default: priortiry)
-x, --disable-compressor=COMPRESSOR_NAME
Disable a compressor
-X, --enable-compressor=COMPRESSOR_NAME
Enable a compressor
-y, --compressor-priority=PRIORITY:COMPRESSOR_NAME
Set the priority of a compressor
-L, --list-compressors Show the list of the avaiable compressors
-t, --test-compression Call decompress and compare with the original (for test)
-n, --no-cleanmarkers Don't add a cleanmarker to every eraseblock
-I, --ignore=PATH Ignore sub directory and file tree below PATH when recursing over the file system
-o, --output=FILE Output to FILE (default: stdout)
-l, --little-endian Create a little-endian filesystem
-b, --big-endian Create a big-endian filesystem
-D, --devtable=FILE Use the named FILE as a device table file
-f, --faketime Change all file times to '0' for regression testing
-q, --squash Squash permissions and owners making all files be owned by root
-U, --squash-uids Squash owners making all files be owned by root
-P, --squash-perms Squash permissions on all files
--with-xattr stuff all xattr entries into image
--with-selinux stuff only SELinux Labels into jffs2 image
--with-posix-acl stuff only POSIX ACL entries into jffs2 image
-h, --help Display this help text
-v, --verbose Verbose operation
-V, --version Display version information
-i, --incremental=FILE Parse FILE and generate appendage output for it
Note: Adding '/media/net' to ignore Path
--------- Dumping ignore path list ----------------
* '/media/net'
---------------------------------------------------
Note: Adding '/autofs' to ignore Path
--------- Dumping ignore path list ----------------
* '/media/net'
* '/autofs'
---------------------------------------------------
Note: Adding '/media/swap' to ignore Path
--------- Dumping ignore path list ----------------
* '/media/net'
* '/autofs'
* '/media/swap'
---------------------------------------------------
Note: Adding '/dev/bus' to ignore Path
--------- Dumping ignore path list ----------------
* '/media/net'
* '/autofs'
* '/media/swap'
* '/dev/bus'
---------------------------------------------------
Note: Adding '/proc' to ignore Path
--------- Dumping ignore path list ----------------
* '/media/net'
* '/autofs'
* '/media/swap'
* '/dev/bus'
* '/proc'
---------------------------------------------------
Note: Adding '/sys' to ignore Path
--------- Dumping ignore path list ----------------
* '/media/net'
* '/autofs'
* '/media/swap'
* '/dev/bus'
* '/proc'
* '/sys'
---------------------------------------------------
Note: Adding '/media' to ignore Path
--------- Dumping ignore path list ----------------
* '/media/net'
* '/autofs'
* '/media/swap'
* '/dev/bus'
* '/proc'
* '/sys'
* '/media'
---------------------------------------------------
Note: Adding '/media/hdd' to ignore Path
--------- Dumping ignore path list ----------------
* '/media/net'
* '/autofs'
* '/media/swap'
* '/dev/bus'
* '/proc'
* '/sys'
* '/media'
* '/media/hdd'
---------------------------------------------------
Note: Adding '/media/usb' to ignore Path
--------- Dumping ignore path list ----------------
* '/media/net'
* '/autofs'
* '/media/swap'
* '/dev/bus'
* '/proc'
* '/sys'
* '/media'
* '/media/hdd'
* '/media/usb'
---------------------------------------------------
Note: Adding '/dev/pts' to ignore Path
--------- Dumping ignore path list ----------------
* '/media/net'
* '/autofs'
* '/media/swap'
* '/dev/bus'
* '/proc'
* '/sys'
* '/media'
* '/media/hdd'
* '/media/usb'
* '/dev/pts'
---------------------------------------------------
Note: Adding '/var/volatile' to ignore Path
--------- Dumping ignore path list ----------------
* '/media/net'
* '/autofs'
* '/media/swap'
* '/dev/bus'
* '/proc'
* '/sys'
* '/media'
* '/media/hdd'
* '/media/usb'
* '/dev/pts'
* '/var/volatile'
---------------------------------------------------
Note: Adding '/boot' to ignore Path
--------- Dumping ignore path list ----------------
* '/media/net'
* '/autofs'
* '/media/swap'
* '/dev/bus'
* '/proc'
* '/sys'
* '/media'
* '/media/hdd'
* '/media/usb'
* '/dev/pts'
* '/var/volatile'
* '/boot'
---------------------------------------------------
+ umount /tmp/boot
+ umount /tmp/root/dev
umount: can't umount /tmp/root/dev: No such file or directory
+ umount /tmp/root
umount: can't umount /tmp/root: No such file or directory
+ mkdir /tmp/root
+ mount -o bind / /tmp/root
+ /tmp/dFlash/bin/mkfs.jffs2 --root=/tmp/root --disable-compressor=lzo --compression-mode=size --ignore=/media/net --ignore=/autofs --ignore=/media/swap --ignore=/dev/bus --ignore=/proc --ignore=/sys --ignore=/media --ignore=/media/hdd --ignore=/media/usb --ignore=/dev/pts --ignore=/var/volatile --ignore=/boot --output=/media/hdd/backup/r.jffs2 -e 0x4000 -n -l
mkfs.jffs2: error!: Usage: mkfs.jffs2 [OPTIONS]
Make a JFFS2 file system image from an existing directory tree
Options:
-p, --pad[=SIZE] Pad output to SIZE bytes with 0xFF. If SIZE is
not specified, the output is padded to the end of
the final erase block
-r, -d, --root=DIR Build file system from directory DIR (default: cwd)
-s, --pagesize=SIZE Use page size (max data node size) SIZE.
Set according to target system's memory management
page size (default: 4KiB)
-e, --eraseblock=SIZE Use erase block size SIZE (default: 64KiB)
-c, --cleanmarker=SIZE Size of cleanmarker (default 12)
-m, --compr-mode=MODE Select compression mode (default: priortiry)
-x, --disable-compressor=COMPRESSOR_NAME
Disable a compressor
-X, --enable-compressor=COMPRESSOR_NAME
Enable a compressor
-y, --compressor-priority=PRIORITY:COMPRESSOR_NAME
Set the priority of a compressor
-L, --list-compressors Show the list of the avaiable compressors
-t, --test-compression Call decompress and compare with the original (for test)
-n, --no-cleanmarkers Don't add a cleanmarker to every eraseblock
-I, --ignore=PATH Ignore sub directory and file tree below PATH when recursing over the file system
-o, --output=FILE Output to FILE (default: stdout)
-l, --little-endian Create a little-endian filesystem
-b, --big-endian Create a big-endian filesystem
-D, --devtable=FILE Use the named FILE as a device table file
-f, --faketime Change all file times to '0' for regression testing
-q, --squash Squash permissions and owners making all files be owned by root
-U, --squash-uids Squash owners making all files be owned by root
-P, --squash-perms Squash permissions on all files
--with-xattr stuff all xattr entries into image
--with-selinux stuff only SELinux Labels into jffs2 image
--with-posix-acl stuff only POSIX ACL entries into jffs2 image
-h, --help Display this help text
-v, --verbose Verbose operation
-V, --version Display version information
-i, --incremental=FILE Parse FILE and generate appendage output for it
Note: Adding '/media/net' to ignore Path
--------- Dumping ignore path list ----------------
* '/media/net'
---------------------------------------------------
Note: Adding '/autofs' to ignore Path
--------- Dumping ignore path list ----------------
* '/media/net'
* '/autofs'
---------------------------------------------------
Note: Adding '/media/swap' to ignore Path
--------- Dumping ignore path list ----------------
* '/media/net'
* '/autofs'
* '/media/swap'
---------------------------------------------------
Note: Adding '/dev/bus' to ignore Path
--------- Dumping ignore path list ----------------
* '/media/net'
* '/autofs'
* '/media/swap'
* '/dev/bus'
---------------------------------------------------
Note: Adding '/proc' to ignore Path
--------- Dumping ignore path list ----------------
* '/media/net'
* '/autofs'
* '/media/swap'
* '/dev/bus'
* '/proc'
---------------------------------------------------
Note: Adding '/sys' to ignore Path
--------- Dumping ignore path list ----------------
* '/media/net'
* '/autofs'
* '/media/swap'
* '/dev/bus'
* '/proc'
* '/sys'
---------------------------------------------------
Note: Adding '/media' to ignore Path
--------- Dumping ignore path list ----------------
* '/media/net'
* '/autofs'
* '/media/swap'
* '/dev/bus'
* '/proc'
* '/sys'
* '/media'
---------------------------------------------------
Note: Adding '/media/hdd' to ignore Path
--------- Dumping ignore path list ----------------
* '/media/net'
* '/autofs'
* '/media/swap'
* '/dev/bus'
* '/proc'
* '/sys'
* '/media'
* '/media/hdd'
---------------------------------------------------
Note: Adding '/media/usb' to ignore Path
--------- Dumping ignore path list ----------------
* '/media/net'
* '/autofs'
* '/media/swap'
* '/dev/bus'
* '/proc'
* '/sys'
* '/media'
* '/media/hdd'
* '/media/usb'
---------------------------------------------------
Note: Adding '/dev/pts' to ignore Path
--------- Dumping ignore path list ----------------
* '/media/net'
* '/autofs'
* '/media/swap'
* '/dev/bus'
* '/proc'
* '/sys'
* '/media'
* '/media/hdd'
* '/media/usb'
* '/dev/pts'
---------------------------------------------------
Note: Adding '/var/volatile' to ignore Path
--------- Dumping ignore path list ----------------
* '/media/net'
* '/autofs'
* '/media/swap'
* '/dev/bus'
* '/proc'
* '/sys'
* '/media'
* '/media/hdd'
* '/media/usb'
* '/dev/pts'
* '/var/volatile'
---------------------------------------------------
Note: Adding '/boot' to ignore Path
--------- Dumping ignore path list ----------------
* '/media/net'
* '/autofs'
* '/media/swap'
* '/dev/bus'
* '/proc'
* '/sys'
* '/media'
* '/media/hdd'
* '/media/usb'
* '/dev/pts'
* '/var/volatile'
* '/boot'
---------------------------------------------------
+ umount /tmp/root/dev
umount: can't umount /tmp/root/dev: Invalid argument
+ umount /tmp/root
+ rmdir /tmp/root
+ chmod 777 /media/hdd/backup/s.bin
+ chmod 777 /media/hdd/backup/b.jffs2
+ chmod 777 /media/hdd/backup/r.jffs2
+ /tmp/dFlash/bin/buildimage --brcmnand -a dm800 -e 0x4000 -f 0x4000000 -s 512 -b 0x40000:/media/hdd/backup/s.bin -d 0x3C0000:/media/hdd/backup/b.jffs2 -d 0x3C00000:/media/hdd/backup/r.jffs2
Partition #0: 144864 of 210371 bytes (/media/hdd/backup/s.bin)
Partition #1: 0 of 3843687 bytes (/media/hdd/backup/b.jffs2)
Partition #2: 0 of 62236263 bytes (/media/hdd/backup/r.jffs2)
+ rm /media/hdd/backup/s.bin
+ rm /media/hdd/backup/b.jffs2
+ rm /media/hdd/backup/r.jffs2
+ chmod 777 /media/hdd/backup/OE-exp-dm800-2013-11-08-19-47.nfi
+ swapoff /media/hdd/backup/swapfile
+ rm /media/hdd/backup/swapfile
+ echo Enigma2: experimental
+ echo Machine: Dreambox dm800
+ echo Date: 2013-11-08
+ echo Issuer: OE
+ echo Feed: local
+ echo Image: local
+ md5sum /media/hdd/backup/OE-exp-dm800-2013-11-08-19-47.nfi
+ cut -d -f 1
+ MD5SUM=97429e3dc6d20bc514482fa5c393b5b2
+ echo MD5: 97429e3dc6d20bc514482fa5c393b5b2
+ echo
+ chmod 777 /media/hdd/backup/OE-exp-dm800-2013-11-08-19-47.nfo
+ ls -alh /media/hdd/backup/OE-exp-dm800-2013-11-08-19-47.nfi /media/hdd/backup/OE-exp-dm800-2013-11-08-19-47.nfo
-rwxrwxrwx 1 root root 146.0K Nov 8 19:48 /media/hdd/backup/OE-exp-dm800-2013-11-08-19-47.nfi
-rwxrwxrwx 1 root root 138 Nov 8 19:48 /media/hdd/backup/OE-exp-dm800-2013-11-08-19-47.nfo
+ rm /tmp/.dflash
+ du -h /media/hdd/backup/OE-exp-dm800-2013-11-08-19-47.nfi
+ df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 60.0M 47.6M 12.4M 79% /
tmpfs 64.0K 0 64.0K 0% /media
/dev/sda1 232.8G 1.2G 231.6G 1% /media/hdd
/dev/sdb1 1.8G 65.6M 1.8G 3% /media/usb
tmpfs 70.9M 4.4M 66.5M 6% /var/volatile
/dev/mtdblock2 3.8M 2.2M 1.5M 59% /boot
+ exit 0