[uClinux-dev] how to upgrade the jffs2 of root in linux

advan advan at rexian.com
Mon Oct 15 21:19:09 EDT 2007


Matt,
 Thank you ,but I have a trouble ,which is be short of memory . free memory only has 600K-1.2M , then ,the jffs2 size is 3M (flash size is 4M ,1M as kernel and redboot),I think it's able to read 64K from web client to write into jfffs partition very time (total times : 3M/64K), please give me some advise or clue . Thank you again 
Best Regards 
                                         advan




advan
2007-10-16



·¢¼þÈË£º Crane, Matthew
·¢ËÍʱ¼ä£º 2007-10-15 22:08:09
ÊÕ¼þÈË£º uClinux development list
³­ËÍ£º 
Ö÷Ì⣺ RE: [uClinux-dev] how to upgrade the jffs2 of root in linux

Hi, 

Many options are possible.  If you have the memory:

- load new jfffs2 into RAM, 
- mount jffs2 in RAM, using mtd device
- chroot to mtd filesystem in RAM
- unmount flash based jffs2 filesystem
- copy new image to flash

Generally you will have to find a temporary root and unmount the flash root before copying over to it.

Matt




From: uclinux-dev-bounces at uclinux.org [mailto:uclinux-dev-bounces at uclinux.org] On Behalf Of advan
Sent: Monday, October 15, 2007 5:11 AM
To: uClinux development list
Subject: [uClinux-dev] how to upgrade the jffs2 of root in linux 


hi, everyone 
  I build jffs2 as root file system in my embedded platform with uclinux os , I also build a web http server(boa) , through httpd server , I can upload a new jffs2 root file-system into the platform memery ,then I want to use new jfffs file to re-write jffs2 partition ,because linux is using this partition as its root file system , if I directly write it into the jffs2 partition ,then linux will cause crash and errors . anybody know how to do ?
thank you in advance 

                                   advan




advan
2007-10-15
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.uclinux.org/pipermail/uclinux-dev/attachments/20071016/ef2aa2f2/attachment.html


More information about the uClinux-dev mailing list