Reply
Thread Tools
Posts: 1,101 | Thanked: 1,185 times | Joined on Aug 2008 @ Spain
#1
Hi all,
Has anyone got debs or already built binaries of mtd-tools and 0xFFFF for the tablet (diablo)?
I'm trying to do a flashable backup, but can't find the tools in any repo.
 

The Following User Says Thank You to maacruz For This Useful Post:
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#2
binaries of mtd-utils are inside bootmenu flasher http://fanoush.wz.cz/maemo/initfs_flasher.tgz

For flashable backup you just mount jffs2 system somewhere and create jffs2 image out of it via mkfs.jffs2. Example for rootfs
Code:
mount -t jffs2 /dev/mtdblock4 /opt
mkfs.jffs2 -r /opt -o /media/mmc1/rootfs.jffs2 -e 128 -l -n
later you can flash it (when booted from something else than internal flash) via
Code:
flash_eraseall -j /dev/mtd4
nandwrite -a -p /dev/mtd4 /media/mmc1/rootfs.jffs2
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.

Last edited by fanoush; 2009-03-23 at 20:46. Reason: added '-t jffs2' to mount (thanks scaler)
 

The Following 6 Users Say Thank You to fanoush For This Useful Post:
Posts: 1,101 | Thanked: 1,185 times | Joined on Aug 2008 @ Spain
#3
Thank you very much.
I already did that with rootfs and initfs .
Since nobody seems to have compiled 0xFFFF for the tablet I guess I'll have to do it myself once I put on the build environment. Seems a more appropiate tool to backup (it can dump CAL and Xloader areas too)
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#4
I have static binaries of mtd-tools and 0xFFFF (for initfs) here:
http://qwerty12.maemobox.org/initfs

It's static but compiled against uclibc so I dunno if it will work on a booted system.

For dumping CAL, cat /dev/mtd1 > /media/mmc2/mycalfile should do it. edit: seems not, thanks fanoush.

Last edited by qwerty12; 2008-09-15 at 20:38. Reason: echo? WTF, cat ftw :P
 

The Following User Says Thank You to qwerty12 For This Useful Post:
Posts: 1,101 | Thanked: 1,185 times | Joined on Aug 2008 @ Spain
#5
Thanks :-D
Static binaries always work, unless the kernel interface changes
 

The Following User Says Thank You to maacruz For This Useful Post:
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#6
Thanks. I just remembered that I modified the dump function on 0xffff not to ask questions and not to strip :/. (i made it for the purpose for running straight from bootmenu), I'll recompile tomorrow with the original source.
 
Posts: 1,101 | Thanked: 1,185 times | Joined on Aug 2008 @ Spain
#7
Oooops!
Thanks for the warning
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#8
Originally Posted by maacruz View Post
Thank you very much.
I already did that with rootfs and initfs .
Since nobody seems to have compiled 0xFFFF for the tablet I guess I'll have to do it myself once I put on the build environment.
Well I did but it is not that much useful on the tablet.

Originally Posted by maacruz View Post
Seems a more appropiate tool to backup (it can dump CAL and Xloader areas too)
Backup can be done via nanddump (or even dd), no need for 0xFFFF. As for being more appropriate - check 0xFFFF source, older versions were actually worse with lot of stuff hardcoded and no bad block handling, in recent version the code is basically copied from nanddump so it should be similar. For backup both are good, for restore I wouldn't trust any of them directly on the device for bootloader or CAL area.
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.
 

The Following User Says Thank You to fanoush For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 16:41.