[PATCH 3/8] of/fdt: Add unflatten_partial_device_tree

Stephen Neuendorffer stephen.neuendorffer at xilinx.com
Wed Nov 17 11:44:59 EST 2010


> >> > @@ -521,12 +539,12 @@ int __init early_init_dt_scan_chosen(unsigned long node, const char *uname,
> >> >
> >> >        early_init_dt_check_for_initrd(node);
> >> >
> >> > +#ifdef CONFIG_CMDLINE
> >> >        /* Retreive command line */
> >> > -       p = of_get_flat_dt_prop(node, "bootargs", &l);
> >> > +       p = of_get_flat_dt_prop(node, "bootargs", &l, initial_boot_params);
> >> >        if (p != NULL && l > 0)
> >> >                strlcpy(cmd_line, p, min((int)l, COMMAND_LINE_SIZE));
> >> >
> >> > -#ifdef CONFIG_CMDLINE
> >>
> >> Why is this being changed?
> >
> > Because it requires a cmd_line global, which all architectures (especially x86) don't seem to have)
> > Probably if the early stuff get's factored out, then this problem goes away.
> 
> I'm considering changing this so that cmd_line is set with an
> arch-specific callback.

I don't think I ever saw a patch for this.  Have you done more than think about this?

Steve


This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.




More information about the devicetree-discuss mailing list