Dear All.
I have got a customized OMAP L138 board.
it use UART0 as debug console(instead of the originall UART2),
UART1 & UART2 (COM1 & COM2) as communication interface with external devices.
Also I have made a customized u-boot (from DaVinci-PSP-SDK-03.20.00.12),
and successfully make use of the UART0 as debug console through some PINMUX effort.
Now when I move on to customize the linux kernel to use UART0 as default console,I stucked here.
I noticed that in arch/arm/mach-davinci/board-da850-evm.c ,there is some function to init serial device:
#ifdef CONFIG_SERIAL_8250_CONSOLE
static int __init da850_evm_console_init(void)
{
return add_preferred_console("ttyS", 2, "115200");
}
console_initcall(da850_evm_console_init);
#endif
and I simply changed the "ttyS", "2" for "ttyS","0".
then commented out some code that used to disable UART0 and UART1:
__raw_writel(0, IO_ADDRESS(DA8XX_UART1_BASE) + 0x30);
__raw_writel(0, IO_ADDRESS(DA8XX_UART0_BASE) + 0x30);
Also I changed the u-boot environment variable "bootargs".
changed console=ttyS2,115200n8 to console=ttyS0,1,115200n8.
But still I was unable to see anyting else atfer the "Starting kernel ..." prompt.
Did I have some misunderstanding between console and serial port(UART) or something else?
If I have to use UART0 as debug console and UART1 and UART2 for other purpose with the Linux source code(from DaVinci-PSP-SDK-03.20.00.12).
How can I do that with the PSP-SDK?
Could someone point it out for me?
Thanks a lot.