This is my first cut at a tiny backup program for the internal flash on the 7025 (and maybe also the 7020). Please find attached the sources + bb-file, and compiled code in ipkg format for both the 7025 and 7020.
To compile the sources, unpack the tar file in a subdirectory of your packages directory. I use packages/dreambox, but I believe other directories should also work. Then go to your build directory and do "bitbake dreambox-backup".
Very lightly tested on the 7025, not at all tested on the 7020.
IMPORTANT! I'm fortunate enough to have a flash with no bad blocks. Although the backup program in theory should be able to handle bad blocks, THIS HAS NOT BEEN TESTED.
To run the program, do
or, for the 7020,
Make sure that you don't try to store the backup on the flash. That won't work. Store it to some kind of external memory, hdd, cf or usb will do nicely.
The program, as it stands, does not try to skip empty blocks, so the resulting nfi file will be quite big. My full size files end up at 34603072 bytes, expect 32 bytes less for the 7020, and each bad block will subtract 16896 bytes (I think) from the total length.
Feedback is welcome, especially if it works
In particular feedback from those of you with bad blocks, and/or trying it out on the 7020.
Update: Discovered a typo. An lseek had suddenly disappeared. Also added a "-v" option, to print out verbose flash information (bad block count, etc.)
Another update: Binaries for 7020 removed. Apparantly it doesn't work.
One more: Removing binaries for 7025 also. From tmbinc's comments, the current version is not safe.