Message ID | 20090730011145.GA10521@rafazurita.homelinux.net (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
On Wed, Jul 29, 2009 at 10:11:45PM -0300, Rafael Ignacio Zurita wrote: > Node 0: start_pfn = 0xd000, low = 0xe000 > Zone PFN ranges: > Normal 0x0000d000 -> 0x0000e000 > Movable zone start PFN for each node > early_node_map[1] active PFN ranges > 0: 0x0000d000 -> 0x0000e000 > Built 1 zonelists in Zone order, mobility grouping off. Total pages: 4064 > Kernel command line: mem=16M init=/bin/sh earlyprintk=serial > NR_IRQS:256 > PID hash table entries: 64 (order: 6, 256 bytes) > Console: colour dummy device 80x25 > console handover: boot [sercon0] -> real [tty0] > > and I guess that the system hangs. > Should I try other printks in other places? Suggestions? > earlyprintk=serial,keep -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/arch/sh/kernel/cpu/sh3/setup-sh770x.c b/arch/sh/kernel/cpu/sh3/setup-sh770x.c index 9412d91..9334bad 100644 --- a/arch/sh/kernel/cpu/sh3/setup-sh770x.c +++ b/arch/sh/kernel/cpu/sh3/setup-sh770x.c @@ -247,6 +247,8 @@ static struct platform_device *sh770x_devices[] __initdata = { static int __init sh770x_devices_setup(void) { + for(;;) + printk("infinite loop to test early printk\n"); return platform_add_devices(sh770x_devices, ARRAY_SIZE(sh770x_devices)); } diff --git a/arch/sh/kernel/early_printk.c b/arch/sh/kernel/early_printk.c index a952dcf..e08e86e 100644 --- a/arch/sh/kernel/early_printk.c +++ b/arch/sh/kernel/early_printk.c @@ -76,8 +76,8 @@ static struct console bios_console = { static struct uart_port scif_port = { .type = PORT_SCIF, - .mapbase = CONFIG_EARLY_SCIF_CONSOLE_PORT, - .membase = (char __iomem *)CONFIG_EARLY_SCIF_CONSOLE_PORT, + .mapbase = 0xa4000150, + .membase = (char __iomem *)0xa4000150, }; static void scif_sercon_putc(int c) @@ -134,7 +134,7 @@ static void scif_sercon_init(char *s) sci_out(&scif_port, SCFCR, 0x0030); /* TTRG=b'11 */ sci_out(&scif_port, SCSCR, 0x0030); /* TE, RE */ } -#elif defined(CONFIG_CPU_SH4) +#elif defined(CONFIG_CPU_SH4) || defined(CONFIG_CPU_SH3) #define DEFAULT_BAUD 115200 /* * Simple SCIF init, primarily aimed at SH7750 and other similar SH-4 @@ -221,7 +221,7 @@ static int __init setup_early_printk(char *buf) #if !defined(CONFIG_SH_STANDARD_BIOS) #if defined(CONFIG_CPU_SH4) || defined(CONFIG_CPU_SUBTYPE_SH7720) || \ - defined(CONFIG_CPU_SUBTYPE_SH7721) + defined(CONFIG_CPU_SUBTYPE_SH7721) || defined(CONFIG_CPU_SH3) scif_sercon_init(buf + 6); #endif #endif