[PATCH] phram: make kernel boot command line arguments work
Jörn Engel
joern at logfs.org
Mon Oct 17 20:32:15 EDT 2011
On Mon, 17 October 2011 17:40:38 +0200, h-fache at ti.com wrote:
> From: Hervé Fache <h-fache at ti.com>
>
> This patch is based on Ville Herva's similar patch to block2mtd.
>
> Trying to pass kernel command line arguments at boot-time did not work, as
> phram_setup() was called so early that kmalloc() was not functional.
>
> This patch only saves the option string at the early boot stage, and parses
> it later when init_phram() is called. This is determined by the fact that
> init was called, or not.
>
> With this patch, I can boot with a statically-compiled phram, and mount a
> ext2 root fs from physical RAM, without the need for a initrd.
>
> Signed-off-by: Hervé Fache <h-fache at ti.com>
I like it.
Acked-by: Joern Engel <joern at logfs.org>
Dedekind, can I leave it to you to merge this? And Hervé, can I
motivate you to remove the #ifdef MODULE parts from block2mtd as well?
If someone complains about increased binary size, I am willing to look
for ten bytes to remove elsewhere as a trade-off.
Jörn
--
Computer system analysis is like child-rearing; you can do grievous damage,
but you cannot ensure success."
-- Tom DeMarco
More information about the linux-mtd
mailing list