2008-09-12 17:39:40     Kernel boot output not printing to console ttyBF0

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

2008-09-12 17:39:40     Kernel boot output not printing to console ttyBF0

Ben Burleson (UNITED STATES)

Message: 62084   

 

Hi All,

 

I am stumped.  It seems that I have the kernel command line set correctly, but I'm not seeing the kernel boot output on my console.

 

After the device boots, I can telnet in.  Here is the dmesg dump:

 

Linux version 2.6.24.7-ADI-2008R2-pre-svn6578 (bburleson@bburleson-linux.lco.gtn) (gcc version 4.1.2 (ADI svn)) #6 Fri Sep 12 21:17:52 UTC 2008

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

Board Memory: 32MB

Kernel Managed Memory: 32MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x000fa2f0

  rodata    = 0x000fa420-0x0013fac4

  bss       = 0x0013fae0-0x0014c914

  data      = 0x0014c914-0x0015e000

    stack   = 0x0015c000-0x0015e000

  init      = 0x0015e000-0x00172000

  available = 0x00172000-0x01700000

  rootfs    = 0x01700000-0x01f00000

  DMA Zone  = 0x01f00000-0x02000000

Hardware Trace Active and Enabled

Blackfin support (C) 2004-2008 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 100 MHz System Clock

boot memmap: 0000000000172000 - 0000000001700000 (usable)

On node 0 totalpages: 5888

  DMA zone: 46 pages used for memmap

  DMA zone: 0 pages reserved

  DMA zone: 5842 pages, LIFO batch:0

  Normal zone: 0 pages used for memmap

  Movable zone: 0 pages used for memmap

NOMPU: setting up cplb tables for global access

Instruction Cache Enabled

Data Cache Enabled (write-back)

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

Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,115200 console=ttyBF0,115200 ip=172.16.4.230:172.16.4.206:172.16.4.254:255.255.255.0:BFINLCO:eth0:off

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 128 (order: 7, 512 bytes)

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

Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)

Kernel managed physical pages: 5888

Memory available: 21772k/32768k RAM, (80k init code, 996k kernel code, 400k data, 1024k dma, 8496k reserved)

Blackfin Scratchpad data SRAM: 4 KB

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

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

Blackfin Instruction SRAM: 48 KB (41 KB free)

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

Security Framework initialized

Capability LSM initialized

Mount-cache hash table entries: 512

net_namespace: 64 bytes

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

cm_bf537_init(): registering device resources

NET: Registered protocol family 2

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

TCP established hash table entries: 1024 (order: 1, 8192 bytes)

TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

TCP: Hash tables configured (established 1024 bind 1024)

TCP reno registered

io scheduler noop registered (default)

io scheduler cfq registered

timer_initialize: module loaded

simple-gpio: now handling 48 GPIOs: 0 - 47

Serial: Blackfin serial driver

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

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

bfin_mac_mdio: probed

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

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

uclinux[mtd]: RAM probe address=0x1700000 size=0x800000

Creating 1 MTD partitions on "RAM":

0x00000000-0x00800000 : "ROMfs"

TCP cubic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

VFS: Mounted root (ext2 filesystem).

Freeing unused kernel memory: 80k freed

Warning: unable to open an initial console.

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

 

 

And here is what I see on the console when booting:

 

U-Boot 1.1.6-svn6811 (ADI-2008R1) (Sep  3 2008 - 16:53:08)                    

                                                                              

CPU:   ADSP bf537-0.2 (Detected Rev: 0.2)                                     

Board: ADI BF537 LCO board                                                    

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

Clock: VCO: 500 MHz, Core: 500 MHz, System: 100 MHz                           

RAM:   32 MB                                                                  

Flash:  4 MB                                                                  

*** Warning - bad CRC, using default environment                              

                                                                              

Warning: Generating 'random' MAC address                                      

In:    serial                                                                 

Out:   serial                                                                 

Err:   serial                                                                 

Flash protect error at address 203e0000                                       

Command Sequence Error.                                                       

Vpp Low Error.                                                                

Net:   Blackfin EMAC                                                          

MAC:   B2:67:62:02:12:71                                                      

I2C:   ready                                                                  

Hit any key to stop autoboot:  0                                              

Using Blackfin EMAC device                                                    

TFTP from server 172.16.4.206; our IP address is 172.16.4.230                 

Filename 'uImage-fw75a-01'.                                                   

Load address: 0x1000000                                                       

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

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

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

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

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

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

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

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

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

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

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

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

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

done                                                                          

Bytes transferred = 4068526 (3e14ae hex)                                      

## Booting image at 01000000 ...                                              

   Image Name:   uClinux Kernel and ext2                                      

   Created:      2008-09-12  21:18:23 UTC                                     

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)                

   Data Size:    4068462 Bytes =  3.9 MB                                      

   Load Address: 00001000                                                     

   Entry Point:  0015e000                                                     

   Verifying Checksum ... OK                                                  

   Uncompressing Kernel Image ... OK                                          

Starting Kernel at = 15e000                                                   

 

 

 

And that's where console output goes quiet.  I would expect to see the linux kernel output here.  Does anybody have an idea about what I might have configured incorrectly??

 

Thanks,

 

Ben

QuoteReplyEditDelete

 

 

2008-09-12 17:46:36     Re: Kernel boot output not printing to console ttyBF0

Frank Van Hooft (CANADA)

Message: 62085   

 

Is your terminal program set for 115200 baud?  I think that by default Uboot is at 57600, so if you're seeing the uboot output but not the linux output, that might be a possible culprit.

QuoteReplyEditDelete

 

 

2008-09-12 17:55:05     Re: Kernel boot output not printing to console ttyBF0

Mike Frysinger (UNITED STATES)

Message: 62087   

 

you should check your board resources file and make sure it has proper bfin-uart resources declared.  look at the stamp.c for an example.

QuoteReplyEditDelete

 

 

2008-09-12 18:03:06     Re: Kernel boot output not printing to console ttyBF0

Ben Burleson (UNITED STATES)

Message: 62089   

 

Thanks for the quick feedback Frank.

 

I'm using minicom and it's set to 115200.  I changed the u-boot rate so it would be compatible.

 

Unfortunately that doesn't help, but thanks for your input.

 

-Ben

 

 

QuoteReplyEditDelete

 

 

2008-09-12 18:16:22     Re: Kernel boot output not printing to console ttyBF0

Ben Burleson (UNITED STATES)

Message: 62090   

 

Wow, I guess my brain had already checked out for the weekend.

 

Thanks Mike, your advice led me to the answer.  I looked in cm_bf537.c for the bfin-uart section.  Noticed that is surrounded by a #ifdef SERIAL_BFIN so I checked my config to make sure that is set.  Then I realized I checked "Enable UART0", but not "Console on Blackfin serial port".  That solved it.

 

Thanks for the fast replies guys.  The support here is great!

Attachments

    Outcomes