How to update UBIFS while running an application ?

Ricard Wanderlof ricard.wanderlof at axis.com
Mon Apr 6 04:15:34 EDT 2009


On Sat, 4 Apr 2009, Artem Bityutskiy wrote:

>I'm not sure what exactly you ask, but you cannot update UBIFS file 
> system while it is mounted. You have to unmount it first. Does any 
> file-system allows this at all?

While not entirely koscher, one way around the problem of upgrading a 
system with a root file system is flash based, is to get the application 
into memory (possibly lock down the pages), rewrite the root file system 
without unmounting it, then rebooting immediately after.

I don't know if this would work with UBIFS, but given the right 
circumstances it works fine with JFFS2.

/Ricard
--
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30



More information about the linux-mtd mailing list