2009-11-27 21:51:21     Console Not Working for SVN (Bf548 EZKIT)

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

2009-11-27 21:51:21     Console Not Working for SVN (Bf548 EZKIT)

David Kasper (UNITED STATES)

Message: 82820   

 

I have recently downloaded SVN revision 7883 (on 11/26/09), configured BF548 EZKIT, selected defaults and built uClinux.  My problem is I don't get a shell for UART1 (minicom doesn't respond after uClinux boots).  Is my u-boot configuration incorrect as it indicates ttyBF0 (changing it to ttyBF1 had no effect)?  I also answered bf548 versus bf548m when building the kernel.  Any help is appreciated.

 

Thanks,

 

David Kasper

 

u-boot configuration:

 

ramargs=set bootargs root=/dev/mtdblock0 rw earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF0,57600

 

uClinux Boot Message (uart init hilited below in red):

 

bfin> bootm

## Booting image at 01000000 ...

   Image Name:   bf548-2.6.31.6-ADI-2010R1-pre-sv

   Created:      2009-11-28   3:21:01 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    5115997 Bytes =  4.9 MB

   Load Address: 00001000

   Entry Point:  00292b18

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 292b18

Linux version 2.6.31.6-ADI-2010R1-pre-svn7883 (kasper@localhost.localdomain) (gcc version 4.1.2 (ADI svn)) #12 Fri Nov 27 199

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

  rodata    = 0x001ad5b0-0x002481cc

  bss       = 0x00249000-0x00260c18

  data      = 0x00260c18-0x00280000

    stack   = 0x0027e000-0x00280000

  init      = 0x00280000-0x0095b000

  available = 0x0095b000-0x03dff000

  DMA Zone  = 0x03e00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 3

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

Compiled for ADSP-BF548 Rev 0.2

Blackfin Linux support by   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: 15747

Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF0,57600

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

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

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

Memory available: 53336k/65536k RAM, (7020k init code, 1713k kernel code, 843k data, 2048k dma, 572k reserved)

NR_IRQS:263

Configuring Blackfin Priority Driven Interrupts

Console: colour dummy device 80x25

Linux version 2.6.31.6-ADI-2010R1-pre-svn7883 (kasper@localhost.localdomain) (gcc version 4.1.2 (ADI svn)) #12 Fri Nov 27 199

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

  rodata    = 0x001ad5b0-0x002481cc

  bss       = 0x00249000-0x00260c18

  data      = 0x00260c18-0x00280000

    stack   = 0x0027e000-0x00280000

  init      = 0x00280000-0x0095b000

  available = 0x0095b000-0x03dff000

  DMA Zone  = 0x03e00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 3

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

Compiled for ADSP-BF548 Rev 0.2

Blackfin Linux support by   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: 15747

Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart1,57600 console=tty0 console=ttyBF0,57600

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

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

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

Memory available: 53336k/65536k RAM, (7020k init code, 1713k kernel code, 843k data, 2048k dma, 572k reserved)

NR_IRQS:263

Configuring Blackfin Priority Driven Interrupts

Console: colour dummy device 80x25

console [tty0] enabled

Calibrating delay loop... 1046.52 BogoMIPS (lpj=2093056)

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)

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

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

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

musb_hdrc: USB Host mode controller at ffc03c00 using DMA, IRQ 82

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 @ 0x02091000 - 512 pages at 0x03e00000

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 104

io scheduler noop registered

io scheduler anticipatory registered (default)

bf54x-lq043: FrameBuffer initializing...

Console: switching to colour frame buffer device 80x24

bfin-otp: initialized

bfin-uart: Blackfin serial driver

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

brd: module loaded

register bfin atapi driver

scsi0 : pata-bf54x

ata1: PATA max UDMA/66 irq 68

smsc911x: Driver version 2008-10-21.

smsc911x-mdio: probed

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

net eth0: MAC Address: 00:e0:22:fe:be:1c

physmap platform flash device: 02000000 at 20000000

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

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

RedBoot partition parsing not available

Using physmap partition information

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

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

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

0x000000440000-0x000001000000 : "file system(nor)"

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

bf5xx-nand bf5xx-nand.0: page_size=256, 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 2 MTD partitions on "NAND 256MiB 3,3V 8-bit":

0x000000000000-0x000000400000 : "linux kernel(nand)"

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

m25p80 spi0.1: m25p16 (2048 Kbytes)

Creating 2 MTD partitions on "m25p80":

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

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

ata1.00: 78140160 sectors, multi 16: LBA

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

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

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

ata1.00: configured for UDMA/66

blk_queue_max_hw_segments: set to minimum 1

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

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

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

sda:

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

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

bf54x-keys: Blackfin BF54x Keypad registered IRQ 76

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

i2c /dev entries driver

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

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

bfin-sdh bfin-sdh.0: unable to request DMA channel

bfin-sdh: probe of bfin-sdh.0 failed with error -16

usbcore: registered new interface driver usbhid

usbhid: v2.6:USB HID core driver

Advanced Linux Sound Architecture Driver Version 1.0.20.

dma rx:0 tx:1, err irq:10, regs:ffc00800

AD1980 SoC Audio Codec

asoc: AC97 <-> bf5xx-ac97 mapping ok

ALSA device list:

  #0: bf5xx-board (AD1980)

sda1

TCP cubic registered

NET: Registered protocol family 17

turn off boot console early_BFuart1

 

>>> Minicom doesn't respond at this point

QuoteReplyEditDelete

 

 

2009-11-27 22:12:10     Re: Console Not Working for SVN (Bf548 EZKIT)

Mike Frysinger (UNITED STATES)

Message: 82821   

 

update your u-boot to latest svn or fix the console= options yourself

QuoteReplyEditDelete

 

 

2009-11-27 22:41:46     Re: Console Not Working for SVN (Bf548 EZKIT)

David Kasper (UNITED STATES)

Message: 82822   

 

Mike,

 

Is it an easy fix with the existing u-boot; do you know what the console option should be?

 

Thanks,

 

Dave

QuoteReplyEditDelete

 

 

2009-11-27 23:03:20     Re: Console Not Working for SVN (Bf548 EZKIT)

Mike Frysinger (UNITED STATES)

Message: 82823   

 

set it to the actual console you're using and not ttyBF0

QuoteReplyEditDelete

 

 

2009-11-27 23:18:55     Re: Console Not Working for SVN (Bf548 EZKIT)

David Kasper (UNITED STATES)

Message: 82824   

 

Mike,

 

I updated bootargs and now the problem is fixed.

 

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

 

Thanks for your help!

 

Dave

Attachments

    Outcomes