[#3911] sport uart test case fails

Document created by Aaronwu Employee on Aug 28, 2013
Version 1Show Document
  • View in full screen mode

[#3911] sport uart test case fails

Submitted By: Mingquan Pan

Open Date

2008-02-19 01:54:09     Close Date

2008-02-28 02:18:34

Priority:

Medium High     Assignee:

Cliff Cai

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

N/A     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

08r1-8

App binary format:

N/A     

Summary: sport uart test case fails

Details:

 

sport uart fails to send file through /dev/ttySS0, host /dev/ttyS0 get nothing.

 

And if receive strings from host /dev/ttyS0, it isn't always getting the transmitted characters and would have unexpected character printed if the string is long.

 

 

test@linux:~/work/cruise/checkouts/uclinux-dist/testsuites/serial> ./sport_uart_test.exp

Starting ./sport_uart_test.exp

spawn /bin/sh

telnet 10.100.4.50

sh-3.00$ telnet 10.100.4.50

Trying 10.100.4.50...

Connected to 10.100.4.50.

Escape character is '^]'.

 

 

BusyBox v1.4.1 (2008-02-19 10:41:40 CST) Built-in shell (msh)

Enter 'help' for a list of built-in commands.

 

root:/> stty -F /dev/ttySS0 ispeed 57600 ospeed 57600

root:/> cat /dev/ttySS0

spawn /bin/sh

sh-3.00$  echo 123456789 > /dev/ttyS0

sh-3.00$ 123456789

 

Case 1 ...PASS

cat /dev/ttyS0 > aaa

wait for receiving data...

 

 

root:/> cat /etc/boa.conf > /dev/ttySS0

Still wait.

 

 

sh-3.00$ cat aaa

sh-3.00$ dos2unix aaa

dos2unix: converting file aaa to UNIX format ...

convert file.

 

sh-3.00$ finish dos2unix.

 

rcp root@10.100.4.50:/etc/boa.conf .

sh-3.00$ Copy file.

 

diff -u aaa boa.conf

--- aaa 2008-02-19 14:43:54.000000000 +0800

+++ boa.conf    2008-02-19 14:43:58.000000000 +0800

@@ -0,0 +1,177 @@

+# Boa v0.94 configuration file

+# File format has changed little from 0.92

+# version changes are noted in the comments

+#

+# The Boa configuration file is parsed with a lex/yacc or flex/bison

+# generated parser.  If it reports an error, the line number will be

+# provided; it should be easy to spot.  The syntax of each of these

 

Two files diffs. +++ boa.conf   2008-02-19 14:43:58.000000000 +0800

@@ -0,0 +1,177 @@

+# Boa v0.94 configuration file

+# File format has changed little from 0.92

+# version changes are noted in the comments

+#

+# The Boa configuration file is parsed with a lex/yacc or flex/bison

+# generated parser.  If it reports an error, the line number will be

+# provided; it should be easy to spot.  The syntax of each of these

 

 

Case 2 ...FAIL

 

SPORT UART TEST FAIL

 

 

Try on host:

 

test@linux:~> echo 123456789 > /dev/ttyS0

test@linux:~> echo 123456789 > /dev/ttyS0

test@linux:~>

test@linux:~> echo 123456789 > /dev/ttyS0

test@linux:~>

test@linux:~> echo 22224444555566667777888899995555 > /dev/ttyS0

test@linux:~>

test@linux:~> echo 22224444555566667777888899995555 > /dev/ttyS0

test@linux:~> echo 22224444555566667777888899995555 > /dev/ttyS0

test@linux:~>                                     

 

Get on telnet console:

root:/> cat /dev/ttySS0

123456789

123456789

123456789

2222444455556666777788

2222444455556666777�5

22224444555566667!995555

root:/> uname -a

Linux blackfin 2.6.22.18-ADI-2008R1-svn4263 #58 Tue Feb 19 12:32:19 CST 2008 blackfin unknown

root:/> dmesg

Linux version 2.6.22.18-ADI-2008R1-svn4263 (test@linux) (gcc version 4.1.2 (ADI svn)) #58 Tue Feb 19 12:32:19 CST 2008

early printk enabled on early_BFuart0

Hardware Trace Active and Enabled

Warning: limiting memory to 56MB due to hardware anomaly 05000263

Reset caused by Software reset

Blackfin support (C) 2004-2007 Analog Devices, Inc.

Compiled for ADSP-BF537 Rev 0.2

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 500 MHz core clock and 100 MHz System Clock

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  text      = 0x00001000-0x000f86c0

  rodata    = 0x000f9000-0x001401ec

  data      = 0x00141000-0x00152000

    stack   = 0x00142000-0x00144000

  init      = 0x00152000-0x004aa000

  bss       = 0x004aa000-0x004b8f30

  available = 0x004b8f30-0x037ff000

  DMA Zone  = 0x03f00000-0x04000000

On node 0 totalpages: 14335

  DMA zone: 111 pages used for memmap

  DMA zone: 0 pages reserved

  DMA zone: 14224 pages, LIFO batch:3

  Normal zone: 0 pages used for memmap

Instruction Cache Enabled

Data Cache Enabled (write-through)

Built 1 zonelists.  Total pages: 14224

Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 256 (order: 8, 1024 bytes)

console handover: boot [early_BFuart0] -> real [ttyBF0]

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Kernel managed physical pages: 14335

Memory available: 51928k/65536k RAM, (3424k init code, 989k kernel code, 418k data, 1024k dma, 7756k reserved)

Blackfin Scratchpad data SRAM: 4 KB

Blackfin Data A SRAM: 16 KB (15 KB free)

Blackfin Data B SRAM: 16 KB (16 KB free)

Blackfin Instruction SRAM: 48 KB (39 KB free)

Calibrating delay loop... 997.37 BogoMIPS (lpj=1994752)

Security Framework v1.0.0 initialized

Mount-cache hash table entries: 512

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

stamp_init(): registering device resources

Generic PHY: Registered new driver

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 2048 (order: 2, 16384 bytes)

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

Dynamic Power Management Controller Driver v0.1: major=10, minor = 254

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART

bfin-sport-uart.0: ttySS0 at MMIO 0xffc00800 (irq = 12) is a SPORT0

bfin-sport-uart.1: ttySS1 at MMIO 0xffc00900 (irq = 14) is a SPORT1

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

SMSC LAN83C185: Registered new driver

bfin_mac_mdio: probed

bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=0:01, irq=-1, mdc_clk=2500000Hz(mdc_div=19)@sclk=100MHz)

bfin_mac: Version 1.1, Blackfin BF53[67] BF527 on-chip Ethernet MAC driver

bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Contoller Driver, Version 1.0, regs_base@ffc00500, dma channel@7

rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

Setting up Blackfin MMR debugfs

rtc-bfin rtc-bfin: setting the system clock to 1970-01-01 08:14:36 (29676)

Freeing unused kernel memory: 3424k freed

dma_alloc_init: dma_page @ 0x004a7000 - 256 pages at 0x03f00000

PHY: 0:01 - Link is Up - 100/Full

ttySS0: 1 input overrun(s)

ttySS0: 8 input overrun(s)

ttySS0: 9 input overrun(s)

root:/>                                                                    

 

Follow-ups

 

--- Cliff Cai                                                2008-02-20 06:12:09

Has been fixed yesterday,please update your code and have a try.

 

--- Cliff Cai                                                2008-02-20 22:13:01

Sorry ,a wrong post and action,this is for another bug...

 

--- Cliff Cai                                                2008-02-27 06:30:58

use timer to the bug caused by sport overrun,use timer to flip the tty buffer in

order to return from rx ISR quickly

 

--- Mingquan Pan                                             2008-02-28 02:18:33

Yes,fixed. Close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes