[PATCH] ARM: ioremap: fix boundary check when reusing static mapping

Russell King - ARM Linux linux at arm.linux.org.uk
Sun Jan 29 08:14:11 EST 2012


On Sun, Jan 29, 2012 at 02:10:34PM +0100, Joachim Eastwood wrote:
> On Sun, Jan 29, 2012 at 1:11 AM, Russell King - ARM Linux
> <linux at arm.linux.org.uk> wrote:
> > On Sat, Jan 28, 2012 at 11:55:19PM +0100, Joachim Eastwood wrote:
> >> "ARM: 7304/1: ioremap: fix boundary check when reusing static mapping"
> >> Commit: 3c424f359898aff48c3d5bed608ac706f8a528c3 in Linus master
> >>
> >> Breaks booting on my custom AT91RM9200 board.
> >> There isn't any error messages or anything that indicates what goes
> >> wrong it just stops after; Uncompressing Linux... done, booting the
> >> kernel.
> >
> > Your best way of finding out what's going on is to enable:
> >
> > DEBUG_KERNEL
> > DEBUG_LL
> > EARLY_PRINTK
> >
> > and select the appropriate kernel low-level debugging port.  That should
> > show you what's going on.
> 
> Sadly, it doesn't make a difference. Still no output.

Sorry, I missed that you also need 'earlyprintk' or something like that
on the command line.  Alternatively, use the following patch, which IMHO
is a lot less error prone:

diff --git a/kernel/printk.c b/kernel/printk.c
index b51b156..611e495 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -875,7 +875,7 @@ asmlinkage int vprintk(const char *fmt, va_list args)
 	/* Emit the output into the temporary buffer */
 	printed_len += vscnprintf(printk_buf + printed_len,
 				  sizeof(printk_buf) - printed_len, fmt, args);
-
+{ extern void printascii(const char *); printascii(printk_buf); }
 	p = printk_buf;
 
 	/* Read log level and handle special printk prefix */



More information about the linux-arm-kernel mailing list