View Single Post
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#266
Originally Posted by qole View Post
Is there some modification of this method that is still valid for the N8x0 tablets?

How do you mount a jffs2 image on a loop device?
Well, did not try but it should work. You just need losetup and block2mtd kernel module. Not sure about losetup but you can get the module from http://fanoush.wz.cz/maemo/modules-d...2maemo1.tar.gz in drivers/mtd/devices

here is mounting script that worked for me on Ubuntu PC
Code:
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 #rootfs.jffs2
modprobe block2mtd block2mtd=$LOOPDEV,131072
modprobe jffs2
modprobe mtdblock
sleep 1
[ -d $2 ] || mkdir $2
mount -t jffs2 -o ro /dev/mtdblock0 $2
/dev/mtdblock0 is definitely wrong choice on the tablet. Do not even try, it may trash the bootloader, I think someone complained here it did. Most probably the right choice is /dev/mtdblock5.

Let us know how it went :-)
__________________
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-02-10 at 08:10. Reason: /dev/mtdblock0 is definitely wrong choice !!
 

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