[PATCH]Disable early console in default to avoid printing boot message twice

Li Tony-r64360 Tony.Li at freescale.com
Mon Jan 29 18:17:58 EST 2007


Hi hollis,

I do not have any ppc64 board in hand and much experience on ppc64.
For ppc64, maybe try the modification on arch/powerpc/kernel/setup_64.c as I do to arch/powerpc/kernel/setup_32.c.
Embracing the "register_early_udbg_console()" with "#ifdef CONFIG_EARLY_PRINTK" macro.
After all, the early console mechanism is the same for ppc32 and ppc64.
Are you convenient to do a test?
If it is work, I like to include ppc64 into this patch.

Tony Li

-----Original Message-----
From: Hollis Blanchard [mailto:hollis at penguinppc.org] 
Sent: 2007年1月29日 7:34
To: Li Tony-r64360
Cc: linuxppc-dev at ozlabs.org
Subject: Re: [PATCH]Disable early console in default to avoid printing boot message twice

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