Is there a dfu-util that can successfully backup an existing flash?

William Kenworthy billk at iinet.net.au
Wed Nov 12 00:52:07 CET 2008


Neat!

Thanks,
BillK


On Tue, 2008-11-11 at 16:30 -0700, Angus Ainslie wrote:
> On Tue, Nov 11, 2008 at 3:38 PM, William Kenworthy
> <billk at iinet.net.au> wrote:
>         Is there a dfu-util that can successfully backup an existing
>         flash?
>         
>         Last one I tried still failed.  Its a big discouragement to
>         trying new
>         distros/experimenting when it takes hours to reinstall/rebuild
>         back to
>         where you were when you started when a simple flash the old
>         system back
>         would do.
>         
>         BillK
>         
> 
> You can do it from an ssh session. I use the script below
> 
> #!/bin/sh
> echo "Make sure you have opkg installed mkfs-jffs2"
> 
> mkdir  /var/tmp/root
> mount -t jffs2 /dev/mtdblock6 /var/tmp/root
> 
> echo "On PC side"
> echo
> echo "ssh root at 192.168.0.202 \"mkfs.jffs2 -d /var/tmp/root -e 128
> --pad --no-cleanmarkers -x lzo\" | pv -W > rootfs_backup.jffs2"
> echo "scp root at 192.168.0.202:/boot/uImage kernel_backup.bin"
> 
> 
> 
> -- 
> Angus Ainslie
> http://www.handheldshell.com/
> 
-- 
William Kenworthy <billk at iinet.net.au>
Home in Perth!




More information about the support mailing list