JFFS2 FS is read-only (not what I want)

Ben Warren bwarren at qstreams.com
Tue Jul 4 05:38:11 EST 2006


Mathieu,
> 
> IMHO, it's not a generation-time issue
> 
This is starting to look to me like a generation-time issue.  I built
another JFFS2 partition out of a random directory on my workstation, and
it's behaving properly:

$mkfs.jffs2 -U -d util -b -e 0x20000 -o /tftpboot/prism/myutil.img

On the target, I booted from NFS and mounted both MTD images.  The
original one is in /dev/mtdblock4 and the new one is at /dev/mtdblock3:

bash-3.00# pwd
/tmp
bash-3.00# mkdir mnt1 mnt2
bash-3.00# ll
total 8
drwxr-xr-x  2 root root 4096 Jul  3  2006 mnt1
drwxr-xr-x  2 root root 4096 Jul  3  2006 mnt2
bash-3.00# mount -t jffs2 -o rw,nolock /dev/mtdblock3 mnt1
bash-3.00# mount -t jffs2 -o rw,nolock /dev/mtdblock4 mnt2
bash-3.00# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/nfs              72054096  13245480  55148432  20% /
/dev/mtdblock3            2048       592      1456  29% /tmp/mnt1
/dev/mtdblock4            2048      2048         0 100% /tmp/mnt2

As you can see, the new image is working fine.  Looks like I need to
debug the root FS! 

Thanks to all people who helped me out here!

cheers,
Ben
 




More information about the Linuxppc-embedded mailing list