read-only problem with mtd
Bill Gatliff
bgat at billgatliff.com
Tue Nov 18 08:28:21 EST 2008
Peter Jolasson wrote:
> (Something like reboot and specifying a new cmdline would be nice)
I suggest you reboot and specify a new command line. :)
But seriously, the trick to that might be finding the area in the
bootloader flash that corresponds to the kernel command line. But if
the target supports kexec, you might be able to just pass in a new
command line on the, er, command line... That would be equivalent to
the above, but without having to modify any flash.
Here is an alternative to consider, though. If you can modify the
rootfs, then could you add in a kernel module that, when loaded, would
undo the physmap for the kernel partition and replace it with one that
isn't read-only?
Note that I'm not sure that the "undo" part in the above is
technically possible. I'll leave that as an exercise to the
implementer. :)
b.g.
--
Bill Gatliff
bgat at billgatliff.com
More information about the linux-mtd
mailing list