OF /chosen/initrd,* variables - patch, official?
Matt Sealey
matt at genesi-usa.com
Tue Aug 21 22:36:49 EST 2007
David Gibson wrote:
> On Tue, Aug 21, 2007 at 12:21:18PM +0100, Matt Sealey wrote:
>> Damn, I should use patchwork more efficiently;
>>
>> http://patchwork.ozlabs.org/linuxppc/patch?q=initrd&filter=none&id=12168
>>
>> Does anyone have any suggestion on the best way to integrate this so that
>> it "just works" on OF platforms? It seems only to be usable way too late
>> in boot to work, this code would have to be called in boot/main.c which seems
>> relatively.. impossible to achieve.. or called in some specialised platform
>> init code..
>
> It would have to be called from platform_init(). If called in main()
> it would clobber any other platform-specific initialization of the
> initrd parameters in loader_info.
So just to get this straight.. platform_init would be the function called from
md.init or would be better at md.setup_arch?
My goal right now is get something for CHRP (Pegasos) and Efika and try not
to cause problems for anything else, but also really try not to clutter the
thing with config checks, platform checks etc.
--
Matt Sealey <matt at genesi-usa.com>
Genesi, Manager, Developer Relations
More information about the Linuxppc-dev
mailing list