Hello !
As you might know I spent some time to write the multiboot tool for the DM 7025 and for normal DM 7025 users it is really nice in the meantime.
One of the few remaining things that annoy me is that I don't have a way to integrate the whole software in a freshly flashed image without running scripts, or installing something on top of it.
On the other hand I've seen that noggie and others created nice pythin scripts for unpacking nfi files directly to CF cards or on the PC.
Well, multiboot for DM 7025 avoids all this great stuff which took me quite some time to not even understand half of it
But I mastered already to copy directly into the flash existing images
on the Cf card by simply mounting the /dev/mtdblock/3 and /2 device which contain the / and /boot as plain jffs2 and then use the normal tar to fill them with a copy of an CF card image - works fine so far and is already included in teh current BETA of multiboot.
To come back to my problem - if I would add into the multiboot shell script the possibility to unpack the .nfi to the entire FLASH (e.g. the /dev/mtdblock/0 device), when bootet from one of the Cf Images, then I could easily add the required links and maybe do other things like modifying /etc/fstab when mounting it before rebooting as I do already when I copy the CF Images to Flash.
I tried around with the dd command using the .nfi file as source and various /dev/mtdblock/X as target, but the result is always a corrupt filesystem giving IO errors. I also tried specifying correct skips and seeks with appropiate blocksizes to not destroy my bootloader, but the outcome is never as needed.
Can somebody give me a hint what the proper comands would be to copy an .nfi file back to Flash ?
Actually this is the easiest case (no need to temporary unpack and then move to CF card partition or something like that), and it is strange that nobody implemented this yet (or I didn't find it), maybe the WebIF for
flashing is too good
But if I would enable multiboot to flash .nfi images directly to flash, then this would be a really great tool, until others implement something better
Please help !
thowi