Re: [Fastboot] [PATCH] free initrds boot option

2007-02-08 Thread Michael Neuling
In message <[EMAIL PROTECTED]> you wrote: > On Wed, Dec 13, 2006 at 10:35:08AM +0900, Horms wrote: > > On Fri, Dec 08, 2006 at 10:32:15AM +1100, Michael Neuling wrote: > > > > >Is there a kexec-tools patch too? How does second kernel know about > > > > >the location of the first kernel's initrd to

Re: [Fastboot] [PATCH] free initrds boot option

2007-02-08 Thread Horms
On Wed, Dec 13, 2006 at 10:35:08AM +0900, Horms wrote: > On Fri, Dec 08, 2006 at 10:32:15AM +1100, Michael Neuling wrote: > > > >Is there a kexec-tools patch too? How does second kernel know about > > > >the location of the first kernel's initrd to be reused? > > > > > > > > > > > kexec-tools has

Re: [Fastboot] [PATCH] free initrds boot option

2006-12-12 Thread Horms
On Fri, Dec 08, 2006 at 10:32:15AM +1100, Michael Neuling wrote: > > >Is there a kexec-tools patch too? How does second kernel know about > > >the location of the first kernel's initrd to be reused? > > > > > > > > kexec-tools has to be modified to pass the first kernel initrd. On > > powerpc, i

Re: [PATCH] free initrds boot option

2006-12-07 Thread Michael Neuling
> >Is there a kexec-tools patch too? How does second kernel know about > >the location of the first kernel's initrd to be reused? > > > > > kexec-tools has to be modified to pass the first kernel initrd. On > powerpc, initrd locations are exported using device-tree. At present, > kexec-tool ign

Re: [Fastboot] [PATCH] free initrds boot option

2006-12-07 Thread Haren Myneni
Vivek Goyal wrote: On Thu, Dec 07, 2006 at 02:36:18PM +1100, Michael Neuling wrote: I would have to agree with this; it also seems a bit odd to me to have this at all (kexec provides a new kernel image, surely it also provides a new initrd image???) Yes, kexec provides the option --

Re: [Fastboot] [PATCH] free initrds boot option

2006-12-07 Thread Vivek Goyal
On Thu, Dec 07, 2006 at 02:36:18PM +1100, Michael Neuling wrote: > > I would have to agree with this; it also seems a bit odd to me to have > > this at all (kexec provides a new kernel image, surely it also > > provides a new initrd image???) > Yes, kexec provides the option --initrd, so that a u

Re: [PATCH] free initrds boot option

2006-12-06 Thread Randy Dunlap
On Thu, 07 Dec 2006 14:42:57 +1100 Michael Neuling wrote: > Index: linux-2.6-ozlabs/init/initramfs.c > === > --- linux-2.6-ozlabs.orig/init/initramfs.c > +++ linux-2.6-ozlabs/init/initramfs.c > @@ -487,6 +487,17 @@ static char * __ini

Re: [PATCH] free initrds boot option

2006-12-06 Thread Randy Dunlap
On Thu, 07 Dec 2006 14:42:57 +1100 Michael Neuling wrote: > Add retain_initrd option to control freeing of initrd memory after > extraction. By default, free memory as previously. > > Signed-off-by: Michael Neuling <[EMAIL PROTECTED]> > --- > Updated based on comments from akpm. > Added docume

Re: [PATCH] free initrds boot option

2006-12-06 Thread Haren Myneni
Michael Neuling wrote: Add free_initrd= option to control freeing of initrd memory after extraction. By default, free memory as previously. Signed-off-by: Michael Neuling <[EMAIL PROTECTED]> --- Useful for kexec when you want to reuse the same initrd. Testing on POWERPC with CPIOs This

[PATCH] free initrds boot option

2006-12-06 Thread Michael Neuling
Add retain_initrd option to control freeing of initrd memory after extraction. By default, free memory as previously. Signed-off-by: Michael Neuling <[EMAIL PROTECTED]> --- Updated based on comments from akpm. Added documentation and changed option name to "retain_initrd" Tested on POWERPC with

Re: [PATCH] free initrds boot option

2006-12-06 Thread Michael Neuling
> I would have to agree with this; it also seems a bit odd to me to have > this at all (kexec provides a new kernel image, surely it also > provides a new initrd image???) The first boot will need to hold a copy of the in memory fs for the second boot. This image can be large (much larger than th

Re: [PATCH] free initrds boot option

2006-12-06 Thread H. Peter Anvin
Andrew Morton wrote: I'd have thought that an option `retain_initrd' would make more sense. Please always update Documentation/kernel-parameters.txt when adding boot options. I would have to agree with this; it also seems a bit odd to me to have this at all (kexec provides a new kernel imag

Re: [PATCH] free initrds boot option

2006-12-06 Thread Andrew Morton
On Thu, 07 Dec 2006 11:18:43 +1100 Michael Neuling <[EMAIL PROTECTED]> wrote: > Add free_initrd= option to control freeing of initrd memory after > extraction. By default, free memory as previously. > > Signed-off-by: Michael Neuling <[EMAIL PROTECTED]> > --- > Useful for kexec when you want to

Re: [PATCH] free initrds boot option

2006-12-06 Thread Randy Dunlap
On Thu, 07 Dec 2006 11:18:43 +1100 Michael Neuling wrote: > Add free_initrd= option to control freeing of initrd memory after > extraction. By default, free memory as previously. Please add doc. for this in Documentation/kernel-parameters.txt. > Signed-off-by: Michael Neuling <[EMAIL PROTECTED]

[PATCH] free initrds boot option

2006-12-06 Thread Michael Neuling
Add free_initrd= option to control freeing of initrd memory after extraction. By default, free memory as previously. Signed-off-by: Michael Neuling <[EMAIL PROTECTED]> --- Useful for kexec when you want to reuse the same initrd. Testing on POWERPC with CPIOs init/initramfs.c | 18 ++