I can easily extract the contents of both rootfs.jffs2 and initfs.jffs2 on my desktop PC
but how do I combine them to get a running system?
First I thought rootfs.jffs2 would be enough, but it isnt.
It would be so cool to just copy whatever version of ITOS to MMC without going through the "flash-copy to MMC-reflash original"-hassle. I'd even consider OS2005 just for the fun of it - I can't remeber what it looked like at all.
if [ `id -u` != 0 ] ; then echo "run this as root" exit fi if [ $# -lt 2 ] ; then echo $0 image.jffs2 directory exit fi LOOPDEV=`losetup -f` losetup $LOOPDEV $1 modprobe block2mtd block2mtd=$LOOPDEV,131072 modprobe jffs2 modprobe mtdblock sleep 1 [ -d $2 ] || mkdir $2 mount -t jffs2 -o ro /dev/mtdblock0 $2