public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* read-only problem with mtd
@ 2008-11-18  9:40 Peter Jolasson
  2008-11-18 13:28 ` Bill Gatliff
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Jolasson @ 2008-11-18  9:40 UTC (permalink / raw)
  To: linux-mtd

Hello,

I have a tricky problem that I really could need some input on.

I have an "embedded linux" device which has a flash that are divided
into 4 mtd partitions

31:0    bootloader
31:1    kernel (ro)
31:2    upgrade root file system
31:3    normal root file system

The interesting parts of the cmdline that the bootloader passes to the
kernel at startup are:
root=31:3 rootfstype=jffs2
mtdparts=phys_mapped_flash:256k(boot),1280k(kernel)ro,4096k(upgrade_rfs),-(normal_rfs);



To make an upgrade of the normal root file system I make a pivot
_root() to my upgrader root file system and from there I can replace
the normal root file system. This works without problems and are
programatically done via network.

But now I need to upgrade the kernel, and as you can see the kernel
partition is read only.
I cannot find out any way to solve the problem that the kernel mtd
partition is read only. (I really do regret setting it to read only)
Is there some way to "undo" the (ro) that were specified on the cmdline?
(Something like reboot and specifying a new cmdline would be nice)

My problem is that I have a lot of devices at customer location, and I
would like to be able upgrade them via network.
Otherwise I have to send them an special RS232 cable and use the
builtin bootstrap in the ARM chip.

Regards
/Peter/

PS
I have no problems with replacing the whole root file system to be
able to upgrade the kernel partition
DS

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-18 13:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-18  9:40 read-only problem with mtd Peter Jolasson
2008-11-18 13:28 ` Bill Gatliff

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox