[RFC PATCH] Add an earlyprintk debug console

Pandita, Vikram vikram.pandita at ti.com
Thu Nov 5 08:55:45 EST 2009

>-----Original Message-----
>From: linux-arm-kernel-bounces at lists.infradead.org [mailto:linux-arm-kernel-
>bounces at lists.infradead.org] On Behalf Of Catalin Marinas
>Sent: Thursday, November 05, 2009 4:35 AM
>To: linux-arm-kernel at lists.infradead.org
>Cc: Sascha Hauer; Uwe Kleine-König
>Subject: [RFC PATCH] Add an earlyprintk debug console
>This patch allows an earlyprintk console if CONFIG_DEBUG_LL is enabled,
>using the printch asm function.
>The patch is based on the original work by Sascha Hauer.

Nice work...
Linux-omap has been using for couple of years this hackery, which finally has a solution now:

diff --git a/kernel/printk.c b/kernel/printk.c
index f38b07f..1def076 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -36,6 +36,10 @@

+       printascii(printk_buf);

        p = printk_buf;

>Signed-off-by: Catalin Marinas <catalin.marinas at arm.com>
>Cc: Sascha Hauer <s.hauer at pengutronix.de>
>Cc: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>

More information about the linux-arm-kernel mailing list