What happened to the serial console on BeagleBoard with 2.6.28-rc2?
Subsystems (3)
Ignore the last patch I posted.
I'm not sure this is the right fix for this problem but it seems to
work ;-) Here is what's happening
In drivers/serial/8250.c size_fifo() miscalculates the fifo size of
the 3rd UART. The first 2 UART's calculations are okay. The 3rd's miscalculation causes the console port to be messed up. When I tried putting debug code in, the problem would sometimes go away (or come back) depending on what debug code I put in. So I thought maybe it was the memory mapping type that was chosen for the UART io memory range. That's what led to this patch. Try it out and tell me if it works for you.
I have to wonder if L4_WK_34XX_VIRT needs to be classified asMT_MEMORY_SO also?
Rick
arch/arm/mach-omap2/io.c renamed from arch/arm/mach-omap2/io.c.~1~ +1 -1
@@ -155,7 +155,7 @@ static struct map_desc omap34xx_io_desc[ .virtual = L4_PER_34XX_VIRT, .pfn = __phys_to_pfn(L4_PER_34XX_PHYS), .length = L4_PER_34XX_SIZE, - .type =MT_DEVICE + .type =MT_MEMORY_SO /* debug only */ }, { .virtual = L4_EMU_34XX_VIRT,
arch/arm/mach-omap2/io.c static struct map_desc omap34xx_io_desc[ · line 161
Quoted 9 lines · Rick Bronson
arch/arm/mach-omap2/io.c renamed from arch/arm/mach-omap2/io.c.~1~ +1
-1@@ -155,7 +155,7 @@ static struct map_desc omap34xx_io_desc[ .virtual = L4_PER_34XX_VIRT, .pfn = __phys_to_pfn(L4_PER_34XX_PHYS), .length = L4_PER_34XX_SIZE, - .type = MT_DEVICE + .type = MT_MEMORY_SO /* debug only */ }, { .virtual = L4_EMU_34XX_VIRT,
Leaving only one map_desc[] entry left using MT_DEVICE not MT_MEMORY_SO... I didn't try this, since I'm currently not hooking up that serial port, but dmesg does show(*):
Serial: 8250/16550 driver3 ports, IRQ sharing disabled serial8250.0: ttyS0 at MMIO 0x4806a000 (irq = 72) is a ST16654 serial8250.0: ttyS1 at MMIO 0x4806c000 (irq = 73) is a ST16654 serial8250.0: ttyS2 at MMIO 0x49020000 (irq = 74) is a ST16650V2 console [ttyS2] enabled
Is that what you saw too?
- Dave
(*) Only the third port ("ttyS2") is physically wired of course...
the second could be, but isn't.
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html