lkml.org 
[lkml]   [2015]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2 v2] x86_64/earlyprintk: setup earlyprintk as early as possible

* Alexander Kuleshov <kuleshovmail@gmail.com> wrote:

> 2015-04-07 17:35 GMT+06:00 Ingo Molnar <mingo@kernel.org>:
> >
> >
> > So if you set up earlyprintk via CONFIG_CMDLINE_OVERRIDE it just
> > works?
> >
>
> Look, how i did it. I set:
>
> CONFIG_CMDLINE_BOOL =y
> CONFIG_CMDLINE_OVERRIDE =y
>
> and passed following string:
>
> [=root=/dev/sdb earlyprintk=ttyS0 loglevel=7 debug rdinit=/sbin/init
> root=/dev/ram memblock=debug]
>
> to the CONFIG_CMDLINE.
>
> Now i put two early_printk calls before and after earlyprintk initialization:
>
> early_printk("before setup_early_printk \n");
> setup_early_printk(boot_command_line);
> early_printk("after setup_early_printk \n");
>
> And i don't see first string, but see last.
>
> Did i make something wrong?

Yes, you need to check how and where in the arch init code
boot_command_line is set up in the CONFIG_CMDLINE_OVERRIDE=y case.

Thanks,

Ingo


\
 
 \ /
  Last update: 2015-04-07 16:41    [W:0.054 / U:0.408 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site