missing PReP boot arguments

Matt Porter mmporter at home.com
Tue Nov 21 05:08:25 EST 2000


On Mon, Nov 20, 2000 at 03:40:22PM -0500, Hollis R Blanchard wrote:
>
> On Mon, 20 Nov 2000 jlhagen at collins.rockwell.com wrote:
> >
> > could someone point me to the correct place in the source tree to hard code
> > the boot arguments for the kernel. I'm currently using the .config file to
> > pass the arguments in but they don't make it to the kernel. Then the kernel
> > dies mounting the root file system that isn't specified. So I'd like a
> > quick hack point to test if this is going to work at all. My ramdisk image
> > is working with 2.2 kernels so I think it should be ok to use for 2.4.
>
> This has been left out of 2.4 for a very long time. The solution is
> simple:  copy the code out of 2.2 (and add the missing '*'):
>
> --- arch/ppc/kernel/prep_setup.c.old    Mon Nov 20 15:27:55 2000
> +++ arch/ppc/kernel/prep_setup.c        Mon Nov 20 15:29:44 2000
> @@ -786,6 +786,14 @@
>
>         prep_setup_pci_ptrs();
>
> +        /* take care of cmd line */
> +        if ( r6  && (*((char *) r6) != '\0'))
> +        {
> +                *(char *)(r7+KERNELBASE) = 0;
> +                strcpy(cmd_line, (char *)(r6+KERNELBASE));
> +        }
> +
> +
>         ppc_md.setup_arch     = prep_setup_arch;
>         ppc_md.setup_residual = prep_setup_residual;
>         ppc_md.get_cpuinfo    = prep_get_cpuinfo;
>
> This has been left out of the various trees for so long... and it's so
> simple. I hope someone commits it soon.
>
> I don't know if it's in Cort's tree because I don't have bk and Cort's
> rsync has been down for a month...

It's in the linuxppc_2_5 tree (port 5005).

There's problems with the merge of linuxppc_2_5 to the linuxppc_2_3
tree right now so these along with other changes haven't quite
made it.

--
Matt Porter
MontaVista Software, Inc.
mporter at mvista.com

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list