[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: flash updating

On Wed, 2006-07-12 at 13:02 -0800, Junior wrote:
> I'm trying to implement a way to update file (remotely) that resides
> on my file system which is currently up and running. It seems that the
> best way to do this is to update the entire compressed filesystem in
> flash through some user level app.
> Since the bootloader does not exist as far as the kernel is concern
> (once the kernel is decompressed), I figure their's only two other
> alternatives: reboot and enter some update mode, or a user app.
> My questions are, Do I need to give the app some special permission to
> be able to write to flash? Or is this a good approach at all? Is their
> an already existing method to do this sort of thing?
> Any thoughts on the subject will be appreciated. I'm on an ARM9
> platform with 2.6 kernel.

What is the root filesystem?  Isn't it the flash?  If not, what about
mounting the flash and using tradish methods for manipulating files?
Something like..
mount -tjffs2 /dev/mtdblock{0..X} /mnt

...Assuming there is a filesystem there on the partition you want to
access and it's a Linux filesystem...

You would probably need to be root.

Anyways, before you get shot down, it is frowned upon to post to two
different lists, and please wrap your lines of text at 70 chars.


Reply to: