From: Bill Gatliff <bgat@billgatliff.com>
To: Peter Jolasson <peter.jolasson@gmail.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: read-only problem with mtd
Date: Tue, 18 Nov 2008 07:28:21 -0600 [thread overview]
Message-ID: <4922C2F5.2000306@billgatliff.com> (raw)
In-Reply-To: <c69bda8c0811180140i3e3ac35ai306fbd4dfcf976d3@mail.gmail.com>
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@billgatliff.com
prev parent reply other threads:[~2008-11-18 13:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-18 9:40 read-only problem with mtd Peter Jolasson
2008-11-18 13:28 ` Bill Gatliff [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4922C2F5.2000306@billgatliff.com \
--to=bgat@billgatliff.com \
--cc=linux-mtd@lists.infradead.org \
--cc=peter.jolasson@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox