FAQ: [#6908] When test sport emulated uart, file received through uart in target is changed.(2011)

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

[#6908] When test sport emulated uart, file received through uart in target is changed.

Submitted By: Vivi Li

Open Date

2011-11-29 01:24:56     Close Date

2011-12-08 00:54:31

Priority:

Medium     Assignee:

Sonic Zhang

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2011R1     Release:

Category:

N/A     Board:

N/A

Processor:

BF537     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

gcc4.3-2011R1-RC2

App binary format:

N/A     

Summary: When test sport emulated uart, file received through uart in target is changed.

Details:

 

When test sport emulated uart, file received through uart in target is changed.

This both happen with bf537-stamp and bf533-stamp.

 

Bellow is the log and config files are attached.

--

Linux version 3.0.8-ADI-2011R1-svn10231 (test@uclinux55-bf537-cf) (gcc version 4.3.5 (ADI-2011R1-RC2) ) #30 Mon Nov 28 17:56:07 CST 2011

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Limiting kernel memory to 56MB due to anomaly 05000263

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x00128dc8

  rodata    = 0x00128dc8-0x00189900

  bss       = 0x0018a000-0x00199b30

  data      = 0x00199b30-0x001ac000

    stack   = 0x001aa000-0x001ac000

  init      = 0x001ac000-0x008d0000

  available = 0x008d0000-0x03800000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace active and enabled

Boot Mode: 0

Reset caused by Software reset

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

Compiled for ADSP-BF537 Rev 0.2

Blackfin Linux support by http://blackfin.uclinux.org/

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

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  External memory: cacheable in instruction cache

Data Cache Enabled for CPU0

  External memory: cacheable (write-back) in data cache

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 14224

Kernel command line: root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=10.100.4.50:10.100.4.174:10.100.4.174:255.255.255.0:bf537-stamp:eth0:off

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

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

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

Memory available: 47712k/65536k RAM, (7312k init code, 1183k kernel code, 525k data, 1024k dma, 7780k reserved)

NR_IRQS:146

Configuring Blackfin Priority Driven Interrupts

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

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

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

Blackfin L1 Instruction SRAM: 48 KB (35 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

stamp_init(): registering device resources

bio: create slab <bio-0> at 0

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs@ffc00500, dma channel@7

Switching to clocksource bfin_cs_cycles

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

UDP hash table entries: 256 (order: 0, 4096 bytes)

UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

NET: Registered protocol family 1

debug-mmrs: setting up Blackfin MMR debugfs

msgmni has been set to 93

io scheduler noop registered (default)

bfin-uart: Blackfin serial driver

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

bfin-sport-uart: Blackfin uart over sport driver

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

brd: module loaded

bfin_mii_bus: probed

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

bfin_mac bfin_mac.0: eth0: Blackfin on-chip Ethernet MAC driver, Version 1.1

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

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

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1970-03-02 18:01:58 UTC (5248918)

IP-Config: Complete:

     device=eth0, addr=10.100.4.50, mask=255.255.255.0, gw=10.100.4.174,

     host=bf537-stamp, domain=, nis-domain=(none),

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

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

Freeing unused kernel memory: 7312k freed

                           _____________________________________

        a8888b.           / Welcome to the uClinux distribution \

       d888888b.         /       _     _                         \

       8P"YP"Y88        /       | |   |_|            __  __ (TM)  |

       8|o||o|88  _____/        | |    _ ____  _   _ \ \/ /       |

       8'    .88       \        | |   | |  _ \| | | | \  /        |

       8`._.' Y8.       \       | |__ | | | | | |_| | /  \        |

      d/      `8b.       \      \____||_|_| |_|\____|/_/\_\       |

     dP   .    Y8b.       \   For embedded processors including   |

    d8:'  "  `::88b        \    the Analog Devices Blackfin      /

   d8"         'Y88b        \___________________________________/

  :8P    '      :888

   8a.   :     _a88P         For further information, check out:

._/"Yaa_:   .| 88P|            - http://blackfin.uclinux.org/

\    YP"    `| 8P  `.          - http://docs.blackfin.uclinux.org/

/     \.___.d|    .'           - http://www.uclinux.org/

`--..__)8888P`._.'  jgs/a:f    - http://www.analog.com/blackfin

 

Have a lot of fun...

 

 

BusyBox v1.18.4 (2011-11-28 17:52:31 CST) hush - the humble shell

 

root:/> version

kernel:    Linux release 3.0.8-ADI-2011R1-svn10231, build #30 Mon Nov 28 17:56:07 CST 2011

toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-2011R1-RC2)

user-dist: release svn-10535, build #396 Mon Nov 28 17:54:58 CST 2011

root:/> successful boot attempt

************** STEP 3: Start testing emulated uart

 

spawn /bin/sh

linux-vivi:~/work/cruise/checkouts/uclinux-dist/testsuites/serial> telnet 10.100.4.50

Trying 10.100.4.50...

Connected to 10.100.4.50.

Escape character is '^]'.

 

 

BusyBox v1.18.4 (2011-11-28 17:52:31 CST) hush - the humble shell

 

root:/>

Case 1 ...PASS

 

cat /proc/kallsyms > ccc

root:/>

Case 2 ...PASS

 

stty -F /dev/ttySS0 cs8 ispeed 57600 ospeed 57600 -icrnl -ixon igncr -opost -onlcr -isig -icanon -iexten -echo -echoe -ec

hok -echoke -hupcl -echoctl -parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts min 1 time 0

root:/>

Case 3 ...PASS

 

stty -F /dev/ttySS0 -a

speed 57600 baud;stty: /dev/ttySS0

 

intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z;

rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;

-parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts

-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr igncr -icrnl -ixon -ixoff -iuclc -ixany -imaxbel

-opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0

-isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop -echoprt -echoctl -echoke

root:/>

Case 4 ...PASS

 

cat /dev/ttySS0 > aaa

 

Case 5 ...PASS

 

spawn /bin/sh

linux-vivi:~/work/cruise/checkouts/uclinux-dist/testsuites/serial>

linux-vivi:~/work/cruise/checkouts/uclinux-dist/testsuites/serial>

Case 6 ...PASS

 

rcp root@10.100.4.50:/ccc .

linux-vivi:~/work/cruise/checkouts/uclinux-dist/testsuites/serial>

Case 7 ...PASS

 

stty -F /dev/ttyUSB0 cs8 ispeed 57600 ospeed 57600 -icrnl -ixo n igncr -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoke -hupcl -echoctl -parenb -parodd cs8 hupcl -cstopb cread c local -crtscts min 1 time 0

linux-vivi:~/work/cruise/checkouts/uclinux-dist/testsuites/serial>

Case 8 ...PASS

 

cat ccc > /dev/ttyUSB0

linux-vivi:~/work/cruise/checkouts/uclinux-dist/testsuites/serial> stty -F /dev/ttyUSB0 -a

speed 57600 baud; rows 0; columns 0; line = 0;

intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S;

susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;

-parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts

-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr igncr -icrnl -ixon -ixoff -iuclc -ixany -imaxbel -iutf8

-opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0

-isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop -echoprt -echoctl -echoke

linux-vivi:~/work/cruise/checkouts/uclinux-dist/testsuites/serial>

Case 9 ...PASS

 

 

Still wait.

^C

 

root:/>

root:/> Catted file is got on target.

 

Case 10 ...PASS

 

diff -u ccc aaa

Files ccc and aaa differ

root:/>

--

 

Follow-ups

 

--- Sonic Zhang                                              2011-11-30 01:59:49

Can't replicate manually via ttyS0.

 

--- Vivi Li                                                  2011-12-05 01:09:33

No such bug in 2010r1 branch via ttyUSB0.

But it does exist in 2011r1 branch.

 

--- Sonic Zhang                                              2011-12-06 02:42:43

Fixed.

local_irq_save other than local_irq_disable.

 

--- Vivi Li                                                  2011-12-08 01:12:48

OK now.

Close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.config.sport_uart    application/octet-stream    51880    Vivi Li

config.linux.sport_uart    application/octet-stream    35993    Vivi Li

Outcomes