2009-03-12 01:42:12     problem of jffs2 file system

Document created by Aaronwu Employee on Aug 14, 2013
Version 1Show Document
  • View in full screen mode

2009-03-12 01:42:12     problem of jffs2 file system

jacqueline liu (CHINA)

Message: 70811   

 

hi ,

 

i'm using the bf527-ezkit

 

i want to make my changes on borad saved even after i reboot the system

 

my steps are as follows:

 

"make" the dist to get uImage,rootfs.jffs2

 

download uImage to the board and bootm

 

then

 

root:/> ls

bin           home          proc          sbin          usr

dev           init          root          sys           var

etc           mnt           rootfs.jffs2  tmp

root:/> eraseall /dev/mtd4

Erased 1792 Kibyte @ 0 -- 100% complete.

root:/> cp rootfs.jffs2 /dev/mtd4

root:/> mount -t jffs2 /dev/mtdblock4 /mnt

JFFS2 notice: (158) jffs2_build_xattr_subsystem: complete building xattr subsyst

em, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.

root:/>ls /mnt

dev   etc   home  mnt   proc  root  sbin  sys   tmp   usr   var

root:/>

 

after that i reboot the system .

 

but the dir /mnt is still clean as before .

 

did i miss something or i didn't do the right steps?

TranslateQuoteReplyEditDelete

 

 

2009-03-12 01:50:26     Re: problem of jffs2 file system

Yi Li (CHINA)

Message: 70812   

 

jacqueline,

 

root:/> cp rootfs.jffs2 /dev/mtd4.

 

This is not correct. Use "nandwrite" to write a jffs image to nand flash.

 

-Yi

QuoteReplyEditDelete

 

 

2009-03-12 02:08:19     Re: problem of jffs2 file system

jacqueline liu (CHINA)

Message: 70814   

 

but my kernel and file system are both on the parallel flash not on the nand flash .

TranslateQuoteReplyEditDelete

 

 

2009-03-12 02:20:56     Re: problem of jffs2 file system

Mike Frysinger (UNITED STATES)

Message: 70818   

 

did you remember to run `mount` again after rebooting ?

QuoteReplyEditDelete

 

 

2009-03-12 02:42:55     Re: problem of jffs2 file system

jacqueline liu (CHINA)

Message: 70822   

 

oh , i'm sorry .

 

i did't know that it need to mount after reboot .

 

thanks very much

Attachments

    Outcomes