FAQ: [#6520] bf561 trunk SMP kernel fail to boot up(2011)

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

[#6520] bf561 trunk SMP kernel fail to boot up

Submitted By: Mingquan Pan

Open Date

2011-04-02 04:17:33     Close Date

2011-04-17 22:45: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:

BF561     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

ADI-trunk/svn-5013

App binary format:

N/A     

Summary: bf561 trunk SMP kernel fail to boot up

Details:

 

bf561 SMP kernel configs with kgdb fails to boot up.

 

U-Boot 2010.06 (ADI-2010R1-RC1) (Sep 29 2010 - 17:50:45)

 

CPU:   ADSP bf561-0.3 (Detected Rev: 0.5) (bypass boot)

Board: ADI BF561 EZ-Kit Lite board

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

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

RAM:   64 MiB

F

RAM size is 64 MB.

lash: 8 MiB

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   SMC91111-0

Hit any key to stop autoboot:  0

bfin> set bootargs root=/dev/mtdblock0 rw ip=10.100.4.50 earlyprintk=serial,uart0,57600 console=ttyBF0,57600

bfin> set serverip 10.100.4.174

bfin> set ipaddr 10.100.4.50

bfin> save

Saving Environment to Flash...

Un-Protected 8 sectors

Erasing Flash...

........ done

Erased 8 sectors

Writing to Flash... done

Protected 8 sectors

bfin> printenv ethaddr

ethaddr=00:E0:22:FE:B1:3C

bfin> mac address=00:E0:22:FE:B1:3C

tftpboot 0x2000000 uImage

SMC91111: MAC 00:e0:22:fe:b1:3c

Using SMC91111-0 device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'uImage'.

Load address: 0x2000000

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

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

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

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

         #

done

Bytes transferred = 3824134 (3a5a06 hex)Image size is 3a5a06

 

bfin> run addip

bfin> bootm

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

   Image Name:   bf561-0.5-2.6.38.1-ADI-2011R1-pr

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    3824070 Bytes = 3.6 MiB

   Load Address: 00001000

   Entry Point:  001bd704

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001bd704

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 1187.84 BogoMIPS (lpj=2375680)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

Booting Core B.

Brought up 2 CPUs

Instruction Cache Enabled for CPU1

  External memory: cacheable in instruction cache

  L2 SRAM        : uncacheable in instruction cache

Data Cache Enabled for CPU1

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

  L2 SRAM        : uncacheable in data cache

SMP: Total of 2 processors activated (4.09 BogoMIPS).

Blackfin Scratchpad data SRAM: 4 KB

Blackfin Scratchpad data SRAM: 4 KB

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

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

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

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

Blackfin L1 Instruction SRAM: 16 KB (15 KB free)

Blackfin L1 Instruction SRAM: 16 KB (15 KB free)

Blackfin L2 SRAM: 128 KB (127 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_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_base@ffc00500, dma channel@16

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: 2, 16384 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

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

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

NET: Registered protocol family 1

debug-mmrs: setting up Blackfin MMR debugfs

msgmni has been set to 110

io scheduler noop registered (default)

bfin-uart: Blackfin serial driver

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

brd: module loaded

smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@fluxnic.net>

eth0: SMC91C11xFD (rev 1) at 2c010300 IRQ 82 [nowait]

eth0: Ethernet addr: 00:e0:22:fe:b1:3c

console [netcon0] enabled

netconsole: network logging started

kgdboe: local port 6443

kgdboe: local IP 10.100.4.50

kgdboe: interface 'eth0'

kgdboe: remote port 6442

kgdboe: remote IP 10.100.4.174

kgdboe: remote ethernet address ff:ff:ff:ff:ff:ff

kgdboe: device eth0 not up yet, forcing it

 

eth0: link down

eth0: link up, 100Mbps, full-duplex, lpa 0x41E1

kgdb: Registered I/O driver kgdboe.

kgdboe: debugging over ethernet enabled

TCP cubic registered

NET: Registered protocol family 17

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

Freeing unused kernel memory: 5728k freed

Reboot the linux kernel timeout!

 

************** STEP 3: Start KGDB TEST (SMP) (ethernet)

 

spawn bfin-uclinux-gdb /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/vmlinux

GNU gdb 6.6

Copyright (C) 2006 Free Software Foundation, Inc.

GDB is free software, covered by the GNU General Public License, and you are

welcome to change it and/or distribute copies of it under certain conditions.

Type "show copying" to see the conditions.

There is absolutely no warranty for GDB.  Type "show warranty" for details.

This GDB was configured as "--host=i686-pc-linux-gnu --target=bfin-uclinux"...

(gdb)

Case 1 ...PASS

 

Case 1 ...PASS

target remote udp:10.100.4.50:6443

warning: The remote protocol may be unreliable over UDP.

Some events may be lost, rendering further debugging impossible.

Remote debugging using udp:10.100.4.50:6443

 

Case 2 ...PASS

 

Case 2 ...PASS

break kgdb_test

Ignoring packet error, continuing...

warning: unrecognized item "timeout" in "qSupported" response

spawn /bin/sh

s aux | grep bfin-uclinux-gdbrk/cruise/checkouts/uclinux-dist/testsuites/kgdb> p

test     23446  1.0  2.8  34996 28332 pts/2    Ss+  00:23   0:00 bfin-uclinux-gdb /home/test/work/cruise/checkouts/uclinux-dist/linux-2.6.x/vmlinux

test     23457  0.0  0.0   3596   736 pts/3    S+   00:23   0:00 grep bfin-uclinux-gdb

ill -9 `pidof  bfin-uclinux-gdb`cruise/checkouts/uclinux-dist/testsuites/kgdb> k

linux66-561-jtag-capture:~/work/cruise/checkouts/uclinux-dist/testsuites/kgdb>

Last passed time: 2011_Feb_01_19_38, ucdist ver: 10073, kernel ver: 9588

 

Case 3 ...FAIL

 

Case 3 ...FAIL

 

Follow-ups

 

--- Sonic Zhang                                              2011-04-12 02:58:13

This bug has nothing to do with kgdb. Trunk SMP kernel fails to boot up on

bf561.

 

--- Sonic Zhang                                              2011-04-12 04:16:17

Mike's kernel commit 9589 "SMP: use standard cache functions" causes

recursive call in blackfin SMP cache flush code. Roll back and fix.

 

--- Mingquan Pan                                             2011-04-17 22:45:30

Yes, it boots up now.

BusyBox v1.18.4 (2011-04-17 19:53:40 CST) hush - the humble shell^M

^M

root:/> ^[[6nversion^M

kernel:    Linux release 2.6.38.3-ADI-2011R1-pre-svn9857, build #592 SMP Mon

Apr 18 07:24:37 CST 2011^M

toolchain: bfin-uclinux-gcc release gcc version 4.3.5 (ADI-trunk/svn-5013) ^M

user-dist: release svn-10140, build #6570 Mon Apr 18 07:23:36 CST 2011^M

root:/> ^[[6nsuccessful boot attempt

 

Close.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes