2009-02-12 20:24:57 HOW TO ENABLE BOTH UART0 and UART1 on BF527
leo liu (CHINA)
Message: 69358
Hi, I am working with uClinux-dist-2008 R1.5.-RC3. BF527-ezkit.I want to enable both UART1 and UART0.
the kernel configuration menu setting:
<*> Blackfin serial port support
[*] Console on Blackfin serial port
UART Mode (DMA mode) --->
[*] Enable UART0
[ ] Enable UART0 hardware flow control
[*] Enable UART1
[ ] Enable UART1 hardware flow control
attach the print message:
Image Name: Linux-2.6.22.19-ADI-2008R1.5-svn
Created: 2009-02-04 7:12:36 UTC
Image Type: Blackfin Linux Kernel Image (gzip compressed)
Data Size: 3791280 Bytes = 3.6 MB
Load Address: 00001000
Entry Point: 0019c000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting Kernel at = 19c000
Linux version 2.6.22.19-ADI-2008R1.5-svn (root@localhost.localdomain) (gcc version 4.1.2 (ADI svn)) #674 Wed Feb 4 15:12:30 CST 2009
early printk enabled on early_BFuart1
Hardware Trace Active and Enabled
Blackfin support (C) 2004-2007 Analog Devices, Inc.
Compiled for ADSP-BF527 Rev 0.0
Warning: Unsupported Chip Revision ADSP-BF527 Rev 0.0 detected
Blackfin Linux support by blackfin.uclinux.org/
Processor Speed: 525 MHz core clock and 131 MHz System Clock
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
text = 0x00001000-0x0012afc0
rodata = 0x0012b000-0x00184d00
data = 0x00185000-0x0019c000
stack = 0x00186000-0x00188000
init = 0x0019c000-0x0071b000
bss = 0x0071b000-0x0072ac10
available = 0x0072ac10-0x03eff000
DMA Zone = 0x03f00000-0x04000000
NOMPU: setting up cplb tables for global access
Instruction Cache Enabled
Data Cache Enabled (write-through)
Built 1 zonelists. Total pages: 16002
Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF0,57600 ip=192.168.1.240:192.168.1.33:192.168.1.1:255.255.255.0:bf527-ezkit:eth0:off
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 256 (order: 8, 1024 bytes)
console handover: boot [early_BFuart1] -> real [ttyBF0]
if the kernel configuration menu setting like this:
<*> Blackfin serial port support
[*] Console on Blackfin serial port
UART Mode (DMA mode) --->
[] Enable UART0
[ ] Enable UART0 hardware flow control
[*] Enable UART1
[ ] Enable UART1 hardware flow control
It works well.
TranslateQuoteReplyEditDelete
2009-02-12 20:48:33 Re: HOW TO ENABLE BOTH UART0 and UART1 on BF527
Mike Frysinger (UNITED STATES)
Message: 69359
if you're going to change your uart order, then you need to update your bootargs in u-boot. i imagine you want to change the console=ttyBF0... to console=ttyBF1...
QuoteReplyEditDelete
2009-02-12 21:15:07 Re: HOW TO ENABLE BOTH UART0 and UART1 on BF527
leo liu (CHINA)
Message: 69360
HI,Mike.
I want to use UART0 for bluetooth,and UART1 for print debugging,I hope the bluetooth and debugging can work at the same time.but I can't.
I don't want to chang the console console=ttyBF0... to console=ttyBF1...
when i set the kernel configuration menu like this:
<*> Blackfin serial port support
[*] Console on Blackfin serial port
UART Mode (DMA mode) --->
[*] Enable UART0
[ ] Enable UART0 hardware flow control
[*] Enable UART1
[ ] Enable UART1 hardware flow control
The UART1 prints message and pause at "console handover: boot [early_BFuart1] -> real [ttyBF0]".
when I disable the "Enable UART0" at kernel configuration menu,it works well.
TranslateQuoteReplyEditDelete
2009-02-12 21:37:02 Re: HOW TO ENABLE BOTH UART0 and UART1 on BF527
Mike Frysinger (UNITED STATES)
Message: 69363
either fix your console= or dont enable UART0
QuoteReplyEditDelete
2009-05-14 07:47:47 Re: HOW TO ENABLE BOTH UART0 and UART1 on BF527
ThangarJ P (INDIA)
Message: 74061
Hi,
I am also working with BF527 ezkit, I am facing the similar problem, I too have a similar application where i need to enable both the uart0 and uart1.
uart1 --> for debug messages and
uart0 --> another device.
the bootargs in the u-boot are as follows.
#define CONFIG_BOOTARGS \
"root=/dev/mtdblock0 rw " \
"profile=0 " \
"earlyprintk=serial,uart" MK_STR(CONFIG_UART_CONSOLE) "," MK_STR(CONFIG_BAUDRATE) " " \
CONFIG_BOOTARGS_VIDEO \
"console=ttyBF0," MK_STR(CONFIG_BAUDRATE)
how to solve the problem.
Thankyou.
QuoteReplyEditDelete
2009-05-14 07:56:59 Re: HOW TO ENABLE BOTH UART0 and UART1 on BF527
Mike Frysinger (UNITED STATES)
Message: 74062
the answer is still the same. fix your kernel command line so that the right console is selected. you told the kernel to use ttyBF0 for the console, so that is what it is doing.
QuoteReplyEditDelete
2009-05-14 08:33:11 Re: HOW TO ENABLE BOTH UART0 and UART1 on BF527
ThangarJ P (INDIA)
Message: 74065
Hi Mike,
I have changed the ttyBF0 to ttyBF1.
#define CONFIG_BOOTARGS \
"root=/dev/mtdblock0 rw " \
"profile=0 " \
"earlyprintk=serial,uart" MK_STR(CONFIG_UART_CONSOLE) "," MK_STR(CONFIG_BAUDRATE) " " \
CONFIG_BOOTARGS_VIDEO \
"console=ttyBF1," MK_STR(CONFIG_BAUDRATE)
My problem is not resolved. I am working with the trunk distribution.
other device which is connected to uart0 is operated at different baudrate, could you please tell me where to do the modifications.
Thankyou
QuoteReplyEditDelete
2009-05-14 08:48:16 Re: HOW TO ENABLE BOTH UART0 and UART1 on BF527
Mike Frysinger (UNITED STATES)
Message: 74067
you're going to have to actually describe the problems you're seeing and post actual output of u-boot/linux. "it isnt working" is not useful information.
QuoteReplyEditDelete
2009-05-14 11:07:49 Re: HOW TO ENABLE BOTH UART0 and UART1 on BF527
ThangarJ P (INDIA)
Message: 74076
Hi Mike,
The kernal is booting properly now.
problem is
uart0 is muxed with the sport0 signals and i have enabled the audio codec also so i am getting the error. now i changed the sport channel selection to 1, Now the initial problem resolved.
I could find the ttyBF0 and ttyBF1 under the /dev folder.
i want to configure the ttyBF1 at baudrate of 57600 and ttyBF0 as 19200.i believe only one common serial driver for both UART0 and UART1 ports.
could you please tell me how can we can configure different baudrate for UART0 and UART1?
i want to test the UART0 for basic functionalities like transmit and receive before i actually start my implementation.
Please provide your suggestions.
Thankyou
QuoteReplyEditDelete
2009-05-14 14:23:33 Re: HOW TO ENABLE BOTH UART0 and UART1 on BF527
Mike Frysinger (UNITED STATES)
Message: 74082
please read the documentation:
docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:serial_programming
and in the future, start your own new thread rather than reposting to an old one