FAQ: [#6917] Disable RTS on BF548-EZKIT, set switch sw7.4 on, message still shows on serial console(2011)

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

[#6917] Disable RTS on BF548-EZKIT, set switch sw7.4 on, message still shows on serial console

Submitted By: Vivi Li

Open Date

2011-12-01 03:21:58     Close Date

2011-12-06 22:21:54

Priority:

Medium     Assignee:

Sonic Zhang

Status:

Closed     Fixed In Release:

N/A

Found In Release:

2011R1     Release:

Category:

N/A     Board:

N/A

Processor:

BF548     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: Disable RTS on BF548-EZKIT, set switch sw7.4 on, message still shows on serial console

Details:

 

Disable RTS on BF548-EZKIT, set switch sw7.4 on, it can't withhold message from being print on serial console.

This bug is found on 2011r1 branch. Trunk should have same problem.

 

Bellow is the log on serial console:

--

U-Boot 2011.09-dirty (ADI-2011R1) (Nov 10 2011 - 17:53:02)

 

CPU:   ADSP bf548-0.0 (Detected Rev: 0.2) (parallel flash boot)

Board: ADI BF548 EZ-Kit board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 525 MHz, Core: 525 MHz, System: 131.250 MHz

RAM:   64 MiB

Flash: 16 MiB

NAND:  256 MiB

MMC:   Blackfin SDH: 0

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   smc911x-0

Hit any key to stop autoboot:  0

smc911x: detected LAN9218 controller

smc911x: phy initialized

smc911x: MAC 00:e0:22:fe:bf:4c

Using smc911x-0 device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'uImage'.

Load address: 0x1000000

Loading: #################################################################

         #################################################################

         #################################################################

         #################################################################

         #################################################################

         ##########################################

done

Bytes transferred = 5376844 (520b4c hex)

## Booting kernel from Legacy Image at 01000000 ...

   Image Name:   bf548-0.2-3.0.8-ADI-2011R1-svn10

   Created:      2011-12-01   5:48:44 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    5376780 Bytes = 5.1 MiB

   Load Address: 00001000

   Entry Point:  0026fe48

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 0026fe48

Linux version 3.0.8-ADI-2011R1-svn10231 (test@linux73-bf537-wt-adxl) (gcc version 4.3.5 (ADI-2011R1-RC2) ) #90 Thu Dec 1 13:48:31

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart1] enabled

early printk enabled on early_BFuart1

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x001a71a0

  rodata    = 0x001a71a0-0x00238a14

  bss       = 0x00239000-0x0024aa20

  data      = 0x0024aa20-0x00266000

    stack   = 0x00264000-0x00266000

  init      = 0x00266000-0x009f4000

  available = 0x009f4000-0x03e00000

  DMA Zone  = 0x03e00000-0x04000000

Hardware Trace active and enabled

Boot Mode: 1

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

Compiled for ADSP-BF548 Rev 0.2

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

Processor Speed: 525 MHz core clock and 131 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  External memory: cacheable in instruction cache

  L2 SRAM        : uncacheable in instruction cache

Data Cache Enabled for CPU0

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

  L2 SRAM        : uncacheable in data cache

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

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF1,57600 if

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: 52688k/65536k RAM, (7736k init code, 1688k kernel code, 764k data, 2048k dma, 612k reserved)

NR_IRQS:295

Configuring Blackfin Priority Driven Interrupts

console [ttyBF1] enabled, bootconsole disabled

console [ttyBF1] enabled, bootconsole disabled

Calibrating delay loop... 1044.48 BogoMIPS (lpj=2088960)

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 (41 KB free)

Blackfin L2 SRAM: 128 KB (128 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

bio: create slab <bio-0> at 0

SCSI subsystem initialized

spi spi0.2: Warning: SPI CPHA not set: Slave Select not under software control!

See Documentation/blackfin/bfin-spi-notes.txt

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

bfin-spi bfin-spi.1: Blackfin on-chip SPI Controller Driver, Version 1.0, regs@ffc02300, dma channel@5

i2c-bfin-twi i2c-bfin-twi.0: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc00700

i2c-bfin-twi i2c-bfin-twi.1: Blackfin BF5xx on-chip I2C TWI Contoller, regs_base@ffc02200

Advanced Linux Sound Architecture Driver Version 1.0.24.

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 102

io scheduler noop registered (default)

bf54x-lq043: FrameBuffer initializing...

dma_alloc_init: dma_page @ 0x02a06000 - 512 pages at 0x03e00000

bfin-uart: Blackfin serial driver

bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 48) is a BFIN-UART

bfin-otp: initialized

brd: module loaded

register bfin atapi driver

scsi0 : pata-bf54x

ata1: PATA max UDMA/66 irq 68

physmap platform flash device: 02000000 at 20000000

physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000089 Chip ID 0x00881e

Intel/Sharp Extended Query Table at 0x010A

Intel/Sharp Extended Query Table at 0x010A

Intel/Sharp Extended Query Table at 0x010A

Intel/Sharp Extended Query Table at 0x010A

Intel/Sharp Extended Query Table at 0x010A

Using buffer write method

Using auto-unlock on power-up/resume

cfi_cmdset_0001: Erase suspend on write enabled

Using physmap partition information

Creating 5 MTD partitions on "physmap-flash.0":

0x000000000000-0x000000080000 : "bootloader(nor)"

0x000000080000-0x000000480000 : "linux kernel(nor)"

0x000000480000-0x000000fe0000 : "file system(nor)"

0x000000fe0000-0x000000ff8000 : "config(nor)"

0x000000ff8000-0x000001000000 : "u-boot env(nor)"

m25p80 spi0.1: m25p16 (2048 Kbytes)

Creating 2 MTD partitions on "m25p80":

0x000000000000-0x000000080000 : "bootloader(spi)"

0x000000080000-0x000000200000 : "linux kernel(spi)"

BF5xx on-chip NAND FLash Controller Driver, Version 1.2 (c) 2007 Analog Devices, Inc.

bf5xx-nand bf5xx-nand.0: data_width=8, wr_dly=3, rd_dly=3

NAND device: Manufacturer ID: 0x20, Chip ID: 0xda (ST Micro NAND 256MiB 3,3V 8-bit)

Creating 3 MTD partitions on "NAND 256MiB 3,3V 8-bit":

0x000000000000-0x000000080000 : "bootloader(nand)"

0x000000080000-0x000000480000 : "linux kernel(nand)"

0x000000480000-0x000010000000 : "file system(nand)"

smsc911x: Driver version 2008-10-21

smsc911x-mdio: probed

smsc911x smsc911x.0: eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1)

smsc911x smsc911x.0: eth0: MAC Address: 00:e0:22:fe:bf:4c

ata1.00: ATA-7: FUJITSU MHW2040AT, 0000000B, max UDMA/100

ata1.00: 78140160 sectors, multi 16: LBA

input: bf54x-keys as /devices/platform/bf54x-keys/input/input0

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

ata1.00: configured for UDMA/66

blk_queue_max_segments: set to minimum 1

scsi 0:0:0:0: Direct-Access     ATA      FUJITSU MHW2040A 0000 PQ: 0 ANSI: 5

i2c /dev entries driver

sd 0:0:0:0: [sda] 78140160 512-byte logical blocks: (40.0 GB/37.2 GiB)

sd 0:0:0:0: [sda] Write Protect is off

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

sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA

ALSA device list:

  No soundcards found.

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1970-01-05 15:27:53 UTC (401273)

smsc911x smsc911x.0: eth0: SMSC911x/921x identified at 0x24000000, IRQ: 175

sda: sda1 sda2

sd 0:0:0:0: [sda] Attached SCSI disk

IP-Config: Complete:

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

     host=bf548-ezkit, domain=, nis-domain=(none),

     bootserver=10.100.4.174, rootserver=10.100.4.174, rootpath=

Freeing unused kernel memory: 7736k 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-30 18:07:05 CST) hush - the humble shell

 

root:/>

root:/>

root:/> version

kernel:    Linux release 3.0.8-ADI-2011R1-svn10231, build #90 Thu Dec 1 13:48:35 CST 2011

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

user-dist: release svn-10530, build #30 Thu Dec 1 13:46:23 CST 2011

root:/>

00037734 T _should_remove_suid

0003778c T _file_remove_suid

00037804 T _sys_readahead

00037894 T _find_get_pages_tag

0003797c T _find_get_pages_contig

00037a60 T _find_get_pages

00037b30 T _find_get_page

00037bc8 T ___lock_page_killable

00037c44 T ___lock_page

00037cbc t _sleep_on_page

00037ccc t _sleep_on_page_killable

00037d00 T _end_page_writeback

00037d84 T _unlock_page

00037de4 T _find_lock_page

00037e58 T _wait_on_page_bit_killable

00037efc T _wait_on_page_bit

00037f94 t _wait_on_page_read

00037fe8 T ___lock_page_or_retry

00038064 T _add_to_page_cache_locked

000381bc T _add_to_page_cache_lru

00038248 T _grab_cache_page_write_begin

000382dc t _do_read_cache_page

00038404 T _read_cache_page_gfp

00038424 T _read_cache_page_async

00038448 T _read_cache_page

0003845c T _grab_cache_page_nowait

000384f4 T _find_or_create_page

0003855c T _filemap_fdatawait_range

000386b8 T _filemap_fdatawait

000386f4 T ___filemap_fdatawrite_range

00038758 T _filemap_write_and_wait_range

000387b0 T _generic_file_direct_write

00038914 T ___generic_file_aio_write

00038c90 T _generic_file_aio_write

00038d28 T _generic_file_aio_read

000392d8 T _filemap_flush

00039300 T _filemap_fdatawrite

00039324 T _filemap_write_and_wait

00039360 T

(switch 7.4 to on, it can't withhold the output message from being print on serial console, so fail)

--

 

Bellow is the log through telnet:

--

test@linux-vivi:~> 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-30 18:07:05 CST) hush - the humble shell

 

root:/> ls /dev/tty*

/dev/tty     /dev/ttyBF1

root:/> rtscts_test ttyBF1 -d

RTS on /dev/ttyBF1 is disabled.

root:/> cat /proc/kallsyms > /dev/ttyBF1

^C

root:/>

--

 

Follow-ups

 

--- Sonic Zhang                                              2011-12-05 05:44:49

Fixed. Use tty CTS control. Should connect the CTS pin to 3V when do manual CTS

disable test.

 

--- Vivi Li                                                  2011-12-06 22:39:54

OK now.

Close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config.linux.rts_cts    application/octet-stream    43644    Vivi Li

config.config.rts_cts    application/octet-stream    51869    Vivi Li

Outcomes