[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bk 2.6.10-rc1 won't boot on iBook/M3



On Tue, 2004-11-02 at 07:31 +0100, Eric Lemoine wrote:

> It doesn't help -- boot still stops after the five "openpic:" lines,
> at switch-to-FB time it seems.
> 

Try something like that patch and pass "printkbtext" to the kernel command line,
it will give you more debug output hopefully.

Index: linux-work/kernel/printk.c
===================================================================
--- linux-work.orig/kernel/printk.c	2004-10-23 11:48:37.000000000 +1000
+++ linux-work/kernel/printk.c	2004-11-02 17:26:31.209278368 +1100
@@ -34,6 +34,8 @@
 
 #include <asm/uaccess.h>
 
+extern int printkbtext;
+
 #define __LOG_BUF_LEN	(1 << CONFIG_LOG_BUF_SHIFT)
 
 /* printk's without a loglevel use this.. */
@@ -537,6 +539,8 @@
 
 	/* Emit the output into the temporary buffer */
 	printed_len = vscnprintf(printk_buf, sizeof(printk_buf), fmt, args);
+	if (printkbtext)
+		btext_drawstring(printk_buf);
 
 	/*
 	 * Copy the output into log_buf.  If the caller didn't provide
Index: linux-work/arch/ppc/kernel/setup.c
===================================================================
--- linux-work.orig/arch/ppc/kernel/setup.c	2004-09-24 14:32:54.000000000 +1000
+++ linux-work/arch/ppc/kernel/setup.c	2004-11-02 17:27:28.333594152 +1100
@@ -87,6 +87,7 @@
 #endif
 
 struct machdep_calls ppc_md;
+int printkbtext;
 
 /*
  * These are used in binfmt_elf.c to put aux entries on the stack
@@ -699,6 +700,9 @@
 #endif /* CONFIG_XMON */
 	if ( ppc_md.progress ) ppc_md.progress("setup_arch: enter", 0x3eab);
 
+	if (strstr(cmd_line, "printkbtext"))
+		printkbtext = 1;
+
 #if defined(CONFIG_KGDB)
 	if (ppc_md.kgdb_map_scc)
 		ppc_md.kgdb_map_scc();




Reply to: