From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 21 Aug 2007 22:42:53 +1000 From: David Gibson To: Matt Sealey Subject: Re: OF /chosen/initrd,* variables - patch, official? Message-ID: <20070821124253.GC1111@localhost.localdomain> References: <46CAC89F.2040100@genesi-usa.com> <46CACAAE.5000304@genesi-usa.com> <20070821113232.GB1111@localhost.localdomain> <46CADC61.3050506@genesi-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <46CADC61.3050506@genesi-usa.com> Cc: ppc-dev , linuxppc-embedded@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Aug 21, 2007 at 01:36:49PM +0100, Matt Sealey wrote: > 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? Uh... no... this is in the bootwrapper, long before ppc_md even exists. platform_init() is called from arch/powerpc/boot/crt0.S, immediately before main(). > 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. > -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson