WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

CMDLINE Was: [XenPPC] Cannot boot from local disk

I just returned home.
I will answer as much as possible although my remote environment is poor.

Jimi Xenidis <jimix@xxxxxxxxxxxxxx> wrote on 2006/10/06 21:46:15:
> AFAIK, the "internal" version is Xen with the SMP patch that has been
> sent to this list,
> Is there more?

This inernal version is maintained by Maria.
It seems to be a little-bit old than the official tree, but contains the
SMP patch.


> I'll bet it is this clause in boot_of.c:
>
> 464 if (builtin_cmdline[0] == '\0') {
> 465     rc = of_getprop(bof_chosen, "bootargs", builtin_cmdline,
> 466     CONFIG_CMDLINE_SIZE);
> 467     if (rc > CONFIG_CMDLINE_SIZE)
> 468         of_panic("bootargs[] not big enough for /chosen/bootargs
> \n");
> 469 }

I tried this, and it works!

#if 0 //original
    if (wrapper_builtin_cmdline[0] != 0) {
        strlcpy(bootargs, wrapper_builtin_cmdline, sizeof(bootargs));
    } else if (builtin_cmdline[0] != 0) {
        strlcpy(bootargs, builtin_cmdline, sizeof(bootargs));
    } else {
        rc = of_getprop(bof_chosen, "bootargs", &bootargs, sizeof
(bootargs));
    }
#else //modified
        of_printf("@@@@ wrapper_builtin_cmdline=<%s>\n",
wrapper_builtin_cmdline
);
        of_printf("@@@@ builtin_cmdline=<%s>\n", builtin_cmdline);
        rc = of_getprop(bof_chosen, "bootargs", &bootargs, sizeof
(bootargs));
#endif

With this, cmdline is correctly passed to dom0 Linux.
The boot message is like this

@@@@ wrapper_builtin_cmdline=<xen >
@@@@ builtin_cmdline=<xen >
bootargs = xen -- root=/dev/hda3 sysrq=1 insmod=sym53c8xx insmod=ipr

Kawachiya


_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel