[PATCH]Disable early console in default to avoid printing boot message twice
Hollis Blanchard
hollis at penguinppc.org
Mon Jan 29 10:34:13 EST 2007
It is also very annoying that the early boot messages are printed twice
on ppc64. Can you include ppc64 in this patch?
-Hollis
On Jan 26, 2007, at 2:00 AM, Li Tony-r64360 wrote:
> The early console is default enable in powerpc 32 now.
> This cause the boot message from beginning to console_init() printed
> twice.
> The early console is useful only when the kernel dead before
> console_init.
> The patch make the early console optional and disable the early
> console in default.
> The patch has been tested on mpc8313erdb board
>
> Signed-off-by: Li Tony <tony.li at freescale.com>
> ---
> arch/powerpc/Kconfig | 2 +-
> arch/powerpc/kernel/setup_32.c | 2 ++
> 2 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
> index 0673dbe..0c18951 100644
> --- a/arch/powerpc/Kconfig
> +++ b/arch/powerpc/Kconfig
> @@ -59,7 +59,7 @@ config PPC
>
> config EARLY_PRINTK
> bool
> - default y
> + default t
>
> config COMPAT
> bool
> diff --git a/arch/powerpc/kernel/setup_32.c
> b/arch/powerpc/kernel/setup_32.c
> index a4c2964..71eb320 100644
> --- a/arch/powerpc/kernel/setup_32.c
> +++ b/arch/powerpc/kernel/setup_32.c
> @@ -242,8 +242,10 @@ void __init setup_arch(char **cmdline_p)
>
> smp_setup_cpu_maps();
>
> +#ifdef CONFIG_EARLY_PRINTK
> /* Register early console */
> register_early_udbg_console();
> +#endif
>
> xmon_setup();
>
> --
> 1.4.2
>
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev at ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-dev
More information about the Linuxppc-dev
mailing list