2009-12-10 11:17:23     SVN Trunk: Not able to use the console(BF526 ezbrd)

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

2009-12-10 11:17:23     SVN Trunk: Not able to use the console(BF526 ezbrd)

kumar v (INDIA)

Message: 83362   




I downloaded the latest uclinux/toolchain from SVN trunk. And built the distribution for BF526 ezbrd.


In u-boot (ADI-2009R2-pre, not SVN) I have set the bootargs to:


root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart1,57600 console=ttyBF1,57600


With this I am able to boot the linux properly, but after booting I do not have any control on the console. I mean I cannot enter anything using the keyboard from the host. I tried using hyperterminal/minicom but no luck.


Please suggest me what could be the problem?


I have put the kernel logs as inline for your reference:




bfin> bootm

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

   Image Name:   bf527-2.6.32-ADI-2010R1-pre-svn7

   Created:      2009-12-10  15:34:21 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    4153197 Bytes =  4 MB

   Load Address: 00001000

   Entry Point:  001ea8c0

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001ea8c0

Linux version 2.6.32-ADI-2010R1-pre-svn7944 (vhemanth@A2MD06034L) (gcc version 4

.3.4 (ADI-trunk/svn-3762) ) #25 Thu Dec 10 21:04:13 IST 2009

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-0x00146420

  rodata    = 0x00146420-0x001b3f5c

  bss       = 0x001b4000-0x001c6ff4

  data      = 0x001c6ff4-0x001de000

    stack   = 0x001de000-0x001e0000

  init      = 0x001e0000-0x0078b000

  available = 0x0078b000-0x03f00000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 1

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

Compiled for ADSP-BF526 Rev 0.0

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 400 MHz core clock and 80 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: 16002

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial

,uart1,57600 console=ttyBF1,57600

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: 56220k/65536k RAM, (5804k init code, 1301k kernel code, 615k d

ata, 1024k dma, 572k reserved)

Hierarchical RCU implementation.


Configuring Blackfin Priority Driven Interrupts

Console: colour dummy device 80x25

console [ttyBF1] enabled, bootconsole disabled

console [ttyBF1] enabled, bootconsole disabled

Calibrating delay loop... 796.67 BogoMIPS (lpj=1593344)

Security Framework initialized

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

NET: Registered protocol family 16

Blackfin DMA Controller

ezbrd_init(): registering device resources

bio: create slab <bio-0> at 0

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

Switching to clocksource jiffies

musb_hdrc: version 6.0, musb-dma, host, debug=0

musb_hdrc: USB Host mode controller at ffc03800 using DMA, IRQ 59

musb_hdrc musb_hdrc.0: MUSB HDRC host driver

musb_hdrc musb_hdrc.0: new USB bus registered, assigned bus number 1

usb usb1: configuration #1 chosen from 1 choice

hub 1-0:1.0: USB hub found

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

hub 1-0:1.0: 1 port detected

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

NET: Registered protocol family 1

msgmni has been set to 109

io scheduler noop registered (default)

bfin-otp: initialized

bfin-uart: Blackfin serial driver

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

brd: module loaded

physmap platform flash device: 00400000 at 20000000

physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank

Intel/Sharp Extended Query Table at 0x0039

Intel/Sharp Extended Query Table at 0x0039

Intel/Sharp Extended Query Table at 0x0039

Intel/Sharp Extended Query Table at 0x0039

Intel/Sharp Extended Query Table at 0x0039

cfi_cmdset_0001: Erase suspend on write enabled

cmdlinepart partition parsing not available

RedBoot partition parsing not available

Using physmap partition information

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

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

0x000000040000-0x000000200000 : "linux kernel(nor)"

0x000000200000-0x000000400000 : "file system(nor)"

m25p80 spi0.1: sst25wf040 (512 Kbytes)

Creating 2 MTD partitions on "m25p80":

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

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

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_b

ase@ffc00500, dma channel@7

bfin_mii_bus: probed

bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1, mdc_


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

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

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

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


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

usbcore: registered new interface driver usbhid

usbhid: v2.6:USB HID core driver

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1970-01-25 16:57:34 UTC (2134654)

Freeing unused kernel memory: 5804k 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|            -   blackfin.uclinux.org/

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

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

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


Have a lot of fun...



BusyBox v1.15.2 (2009-12-10 12:05:47 IST) hush - the humble shell


root:/> (!!!!! But cannot enter any thing from here)...








2009-12-10 11:29:03     SVN Trunk: Not able to use the console(BF526 ezbrd)

Michael Hennerich (GERMANY)

Message: 83363    Check your UART related switch settings on your EZBRD




2009-12-11 01:20:02     Re: SVN Trunk: Not able to use the console(BF526 ezbrd)

kumar v (INDIA)

Message: 83374   


Hi Michael,


1. It is not a HW problem since  earlier we were using 2009 release but never saw this kind of issue. But with the trunk version we are seeing something strange. Moreover, currently also at uboot level uart terminal works fine but its erratic after linux boots. Attached is the waveform of activity on UART Rx / Tx lines on uboot and linux when we type "a" at respective prompts.


2. After kernel boot up, when we type some command (on hyperterminal) example: "ls", then it shows back the list of files in the directory. Problem is what ever I type is not ECHOed back on the console and the terminal messages are erratic. However it seems to execute the commands properly like cd /bin, init, reboot.


Please suggest us on what could be the issue.









2009-12-11 05:30:37     Re: SVN Trunk: Not able to use the console(BF526 ezbrd)

Michael Hennerich (GERMANY)

Message: 83397    I'm seeing the same thing on the BF518-EZBRD too.

- will have a look....






2009-12-11 05:44:08     Re: SVN Trunk: Not able to use the console(BF526 ezbrd)

Michael Hennerich (GERMANY)

Message: 83398    Known issue:

[#5739] Blackfin serial dma is wonky after 2.6.32 upgrade



Use Serial PIO mode until this bug is fixed.





2009-12-11 11:21:37     Re: SVN Trunk: Not able to use the console(BF526 ezbrd)

Mike Frysinger (UNITED STATES)

Message: 83403   


do not use trunk if you want something stable




2009-12-11 11:49:07     Re: SVN Trunk: Not able to use the console(BF526 ezbrd)


Message: 83405   




I think Kumar needed something he could send us a patch to review - so that would be trunk.