Hello everyone.
On my custom board I used UART0 as serial console instead of UART2.
First I edited uboot related files and changed the bootargs: "console=ttyS0,115200n8", the uboot could run right:
U-Boot 1.3.3 (Jul 2 2012 - 16:51:32)
I2C: ready
DRAM: 128 MB
NAND: NAND Manufacturer id: ec
NAND Device id: f1
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bi
t)
128 MiB
In: serial
Out: serial
Err: serial
ARM Clock : 300000000 Hz
Hit any key to stop autoboot: 0
U-Boot >
Second, I edited some kernel related files:
1, /include/asm/arch-davinci/uncompress.h:
#define CONSOLE_UART_BASE DA8XX_UART0_BASE
2,board-evm.c:
static const short evm_uart0_pins[] = {
DA8XX_UART0_RXD, DA8XX_UART0_TXD,
-1
};
When downloading the kernel, the console displayed:
TFTP from server 192.168.1.99; our IP address is 192.168.1.100
Filename 'uImage'.
Load address: 0xc0700000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
###############
done
Bytes transferred = 1737680 (1a83d0 hex)
Automatic boot of image at addr 0xC0700000 ...
## Booting kernel from Legacy Image at c0700000 ...
Image Name: Linux-2.6.18_pro500-da830_omapl1
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1737616 Bytes = 1.7 MB
Load Address: c0008000
Entry Point: c0008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux.............................................................
....................................................... done, booting the kernel
.
€?
Are there any other configurations in kernel that should be changed to UART0?