Hi Harald,

   I tried to mount jffs2 today with Ubuntu (please see below) without
success. I know the jffs2 file is OK since I "install" it in a Meraki Mini
and the Meraki Mini runs OK. However, I tried to mount the file on the
Meraki Mini with "mount file.jffs2 mnt -t jffs2". Again it didn't work.

   Thanks for the pointer to image.sh I will look at it tomorrow.

   Is there more than one JFFS2 format?

   warm regards,
   John

---------------- What I tried today without success -------------------

--------- cat /proc/version (ubuntu) -------------------
Linux version 2.6.20-16-generic ([EMAIL PROTECTED]) 
(gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4)) #2 SMP Tue Feb 12 05:41:34 UTC 2008

---------- install mtdtools - seems OK -------------
apt-get install mtdtools

--------- create ./mount-image-jffs2 script ----------
modprobe -r mtdblock
modprobe -r mtdchar
modprobe -r mtdram
modprobe -r jffs2
modprobe -r mtdcore
sleep 1
echo JFFS2 mount begins
modprobe mtdcore
modprobe jffs2
modprobe mtdram
modprobe mtdchar
modprobe mtdblock
dd if=image.jffs2 of=/dev/mtd0
mount /dev/mtdblock0 mnt -t jffs2

------ execute ./mount-image-jffs2 script ------------
[EMAIL PROTECTED]:/home/user/tmp1# ./mount-image-jffs2
JFFS2 mount begins
2240+0 records in
2240+0 records out
1146880 bytes (1.1 MB) copied, 0.165404 seconds, 6.9 MB/s
mount: special device /dev/mtdblock0 does not exist
[EMAIL PROTECTED]:/home/user/tmp1# 

---------- check for mtd devices - seems OK -------------
[EMAIL PROTECTED]:/home/user/tmp1# ls -l /dev/mtd*
crw-rw---- 1 root root 90, 0 2008-05-13 11:41 /dev/mtd0
crw-rw---- 1 root root 90, 1 2008-05-13 11:41 /dev/mtd0ro
brw-rw---- 1 root disk 31, 0 2008-05-13 11:41 /dev/mtdblock0
[EMAIL PROTECTED]:/home/user/tmp1# 

--------------- end of what I tried -----------------------

----------- previous e-mails ------------------------------

>    2. Re: Xilinx Spartan 3E Starter Kit port -        JFFS2   question
>       (Harald Schi?berg)
> 
> > Hi Harald and Florian,
> > 
> >    Thanks.
> > 
> >    I realize I forgot to ask the obvious question:
> > 
> >    How does the OpenWRT tree create the original JFFS2 filesystem? 
> 
> staging_dir/host/bin/mkfs.jff2
> 
> which is called from include/image.mk
> 
> > 
> >    Would be simple to write an "unmake JFFS2" program?
> 
> you don't have to, have a look at
> build_dir/<arch>/root-<subarch>
> 
> >    Is there one already in the OpenWRT tree?
> > 
> >    warm regards,
> >    John
> > 
> > 
> >>>    I can't seem to figure out how to either "mount" or uncompress the
> >>> jffs2 filesystem that is produced by the OpenWRT compile.
> >>>
> >>>    I try the obvious and get an unknown filesystem error.
> >>>
> >>>    >mount file.jffs2 mnt -o loop -t jffs2
> >>>
> >>>    Help Please.....
> >> You cannot mount jffs2 from a block device, it is designed to work an
> >> raw flash devices only.
> >> If you want to mount it from something not a physical flash dev, you
> >> need the  block2mtd emulation.
> >>
> >> http://gentoo-wiki.com/Mounting_a_block_device_with_JFFS2
> >>
> >>    harald
> > 

_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to