linux-mips
[Top] [All Lists]

Re: The new "real" console doesn't display printk() messages like "early

To: "Ardelean, Andrei" <Andrei.Ardelean@idt.com>
Subject: Re: The new "real" console doesn't display printk() messages like "early" console!
From: David Daney <ddaney@caviumnetworks.com>
Date: Mon, 22 Nov 2010 13:02:56 -0800
Cc: Sergei Shtylyov <sshtylyov@mvista.com>, Ricardo Mendoza <ricmm@gentoo.org>, linux-mips@linux-mips.org
In-reply-to: <AEA634773855ED4CAD999FBB1A66D0760136A91F@CORPEXCH1.na.ads.idt.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <AEA634773855ED4CAD999FBB1A66D0760136A102@CORPEXCH1.na.ads.idt.com><4CE57C92.6030705@mvista.com><AEA634773855ED4CAD999FBB1A66D0760136A151@CORPEXCH1.na.ads.idt.com> <AANLkTinEXDoXQFa1gN6prRQYjqkvc9vSA_H7JOXPLsPw@mail.gmail.com> <AEA634773855ED4CAD999FBB1A66D0760136A1F3@CORPEXCH1.na.ads.idt.com> <4CE6A103.8030009@mvista.com> <AEA634773855ED4CAD999FBB1A66D0760136A91F@CORPEXCH1.na.ads.idt.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101027 Fedora/3.0.10-1.fc12 Thunderbird/3.0.10
On 11/22/2010 12:51 PM, Ardelean, Andrei wrote:
Hi Sergei,

"     Are your UART registers identity mapped to virtual address space?"

My system has DDR memory 0x80000000..0x90000000 (kseg0) and UART is
mapped starting with bbf01000 (kseg1). Can you give me some details
about your question?

I didn't do anything special for the port other than
        set_io_port_base(GD_PORT_BASE);
in gd-init.c



I think you need to reset your process here.

First you should probably get a prom_putchar() function working. Then enable CONFIG_EARLY_PRINTK. That will enable you to debug many things.

If need be, you can write a trivial prom_puts() to go with your prom_putchar().

If you have two serial ports available, all the better. Use one for printing debugging information and the other as the port you are trying to debug.

Asking people to stare at the thousands of lines of code that make up the serial I/O system and spot the error in your configuration will probably be less fruitful than tracing through it to find the problem.

David Daney

<Prev in Thread] Current Thread [Next in Thread>