[#4697] kernel crash on bf533-stamp/bf533-ezkit after config IP for ethernet port

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

[#4697] kernel crash on bf533-stamp/bf533-ezkit after config IP for ethernet port

Submitted By: Mingquan Pan

Open Date

2008-12-04 05:52:00     Close Date

2008-12-30 01:40:30

Priority:

High     Assignee:

Michael Hennerich

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

N/A     Board:

N/A

Processor:

N/A     Silicon Revision:

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

    Toolchain version or rev.:

Nov 11

App binary format:

N/A     

Summary: kernel crash on bf533-stamp/bf533-ezkit after config IP for ethernet port

Details:

 

kernel running on bf533-stamp would freqent has dump info and make panic from about Nov 21.

This error can be seen in many test case logs on bf533 stamp board.

 

************** STEP 1: Start kermit.

 

C-Kermit 8.0.211, 10 Apr 2004, for Linux

Copyright (C) 1985, 2004,

  Trustees of Columbia University in the City of New York.

Type ? or HELP for help.

(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/nfs/) C-Kermit>set line /dev/ttyS0

(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/nfs/) C-Kermit>set speed 57600

/dev/ttyS0, 57600 bps

(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/nfs/) C-Kermit>set carrier-watch off

(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/nfs/) C-Kermit>set handshake none

(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/nfs/) C-Kermit>set flow-control none

(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/nfs/) C-Kermit>robust

(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/nfs/) C-Kermit>set file type bin

(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/nfs/) C-Kermit>set file name lit

(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/nfs/) C-Kermit>set rec pack 1000

(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/nfs/) C-Kermit>set send pack 1000

(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/nfs/) C-Kermit>set window 5

(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/nfs/) C-Kermit>set escape 129

(/home/test/work/cruise/checkouts/uclinux-dist/testsuites/nfs/) C-Kermit>connect

Connecting to /dev/ttyS0, speed 57600

Escape character: Code 129: enabled

Type the escape character followed by C to get back,

or followed by ? to see other options.

 

************** STEP 2: Reboot the kernel.

 

Try to figure out if we are in u-boot or the kernel----------------------------------------------------

 

bfin> version

 

U-Boot 2008.10-svn1496 (ADI-2009R1-pre) (Dec  3 2008 - 12:16:52)

bfin> We are in u-boot

sending reset

reset

 

 

U-Boot 2008.10-svn1496 (ADI-2009R1-pre) (Dec  3 2008 - 12:16:52)

 

CPU:   ADSP bf533-0.3 (Detected Rev: 0.3)

Board: ADI BF533 Stamp board

       Support:   blackfin.uclinux.org/

Clock: VCO: 497.664 MHz, Core: 497.664 MHz, System: 99.532 MHz

RAM:   128 MB

Fl

RAM size is 128 MB.

ash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   MAC:   F2:06:01:61:68:B5

Hit any key to stop autoboot:  0

bfin> set bootargs root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600

bfin> set serverip 10.100.4.174

bfin> set ipaddr 10.100.4.50

bfin> save

Saving Environment to Flash...

Un-Protected 1 sectors

Erasing Flash...

. done

Erased 1 sectors

Writing to Flash... done

Protected 1 sectors

bfin> tftpboot 0x2000000 linux

Using MAC Address F2:06:01:61:68:B5

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'linux'.

Load address: 0x2000000

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

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

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

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

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

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

done

Bytes transferred = 5095064 (4dbe98 hex)

Image size is 4dbe98

bfin> run addip

bfin> bootelf

Loading phdr 0 to 0x00001000 (1411180 bytes)

Loading phdr 1 to 0x0016923c (3073836 bytes)

Loading phdr 2 to 0x00457968 (6936 bytes)

Loading phdr 3 to 0x00459480 (192 bytes)

## Starting application at 0x00183190 ...

Linux version 2.6.28-rc2-ADI-2009R1-pre-svn5794 (test@uclinux75-bf533-stamp-wb) (gcc version 4.1.2 (ADI svn)) #76 Thu Dec 4 02:23:32 CST 2008

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

Board Memory: 128MB

Kernel Managed Memory: 128MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0010acf0

  rodata    = 0x0010acf0-0x0015986c

  bss       = 0x00159870-0x0016923c

  data      = 0x0016923c-0x00178000

    stack   = 0x00176000-0x00178000

  init      = 0x00178000-0x0045a000

  available = 0x0045a000-0x037ff000

  DMA Zone  = 0x07f00000-0x08000000

Hardware Trace Active and Enabled

Reset caused by Software reset

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

Compiled for ADSP-BF533 Rev 0.3

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 497 MHz core clock and 99 MHz System Clock

NOMPU: setting up cplb tables for global access

Instruction Cache Enabled for CPU0

Data Cache Enabled for CPU0 (write-back)

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

Kernel command line:

Configuring Blackfin Priority Driven Interrupts

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

bfin-rtc: invalid date; resetting

console [ttyBF0] enabled

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

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

Memory available: 52304k/131072k RAM, (2952k init code, 1063k kernel code, 437k data, 1024k dma, 73292k reserved)

Calibrating delay loop... 993.28 BogoMIPS (lpj=1986560)

Security Framework initialized

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

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

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

Blackfin L1 Instruction SRAM: 64 KB (57 KB free)

PDA for CPU0 reserved at 0015a880

net_namespace: 288 bytes

NET: Registered protocol family 16

Blackfin GPIO Controller

Blackfin DMA Controller

stamp_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: 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 102

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

Serial: Blackfin serial driver

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

brd: module loaded

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

eth0: SMC91C11xFD (rev 1) at 20300300 IRQ 40 [nowait]

eth0: Ethernet addr: f2:06:01:61:68:b5

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

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

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

TCP cubic registered

NET: Registered protocol family 17

rtc-bfin rtc-bfin: setting system clock to 1970-01-01 18:22:02 UTC (66122)

Freeing unused kernel memory: 2952k freed

dma_alloc_init: dma_page @ 0x00455000 - 256 pages at 0x07f00000

                           _____________________________________

        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.13.1 (2008-12-03 22:58:02 CST) built-in shell (msh)

Enter 'help' for a list of built-in commands.

 

root:/>

************** STEP 3: Start tetsting.

 

ifconfig eth0 10.100.4.50

eth0: link down

root:/> eth0: link up, 100Mbps, full-duplex, lpa 0x45E1

Data access CPLB miss

- Used by the MMU to signal a CPLB miss on a data access.

Kernel OOPS in progress

Deferred Exception context

 

No Valid process in current context

return address: [0x00005bd2]; contents of:

0x00005bb0:  0040  6079  544b  42d0  4008  4900  0200  0010

0x00005bc0:  0031  4e20  3208  e14a  0010  e10a  b4f4  5e8a

0x00005bd0:  9152 [9552] e14a  ffc0  e10a  0104  0000  9510

0x00005be0:  60f8  0801  1807  e14a  0016  e10a  a7a0  9110

 

SEQUENCER STATUS:               Not tainted

SEQSTAT: 00062026  IPEND: 9030  SYSCFG: 0006

  EXCAUSE   : 0x26

  physical IVG12 asserted : <0xffa00db0> { _evt_evt12 + 0x0 }

  physical IVG15 asserted : <0xffa00dc8> { _evt_system_call + 0x0 }

  logical irq   6 mapped  : <0xffa00388> { _timer_interrupt + 0x0 }

  logical irq  14 mapped  : <0x000b12ac> { _bfin_rtc_interrupt + 0x0 }

  logical irq  21 mapped  : <0x0009ec78> { _bfin_serial_dma_rx_int + 0x0 }

  logical irq  22 mapped  : <0x0009e9dc> { _bfin_serial_dma_tx_int + 0x0 }

  logical irq  40 mapped  : <0x000a7140> { _smc_interrupt + 0x0 }

RETE: <0x00000000> { _do_one_initcall + 0xfffff000 }

RETN: <0x00177e88> /* kernel dynamic memory */

RETX: <0x00000480> /* Maybe fixed code section */

RETS: <0x00008f40> { _bfin_demux_gpio_irq + 0x48 }

PC  : <0x00005bd2> { _get_gpiop_data + 0x12 }

DCPLB_FAULT_ADDR: <0x69726570> /* kernel dynamic memory */

ICPLB_FAULT_ADDR: <0x00005bd2> { _get_gpiop_data + 0x12 }

 

PROCESSOR STATE:

R0 : 00000001    R1 : 0000001f    R2 : 00000007    R3 : 0000001f

R4 : 00000000    R5 : 00000010    R6 : 00000029    R7 : 00000000

P0 : 000000d0    P1 : 00000001    P2 : 69726570    P3 : 0015a114

P4 : 00176000    P5 : 0016dabc    FP : 0016a7a0    SP : 00177dac

LB0: ffa0189c    LT0: ffa0189c    LC0: 00000000

LB1: 000a6230    LT1: 000a61a6    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : 00000000    I0 : 0000000f

B1 : 00000000    L1 : 00000000    M1 : 00000000    I1 : 00000000

B2 : 00000000    L2 : 00000000    M2 : 00000000    I2 : 00112dac

B3 : 00000000    L3 : 00000000    M3 : 00000000    I3 : 0000001b

A0.w: 0001f0a3   A0.x: 00000000   A1.w: 00000527   A1.x: 00000000

USP : 00178000  ASTAT: 02002000

 

No trace since you do not have CONFIG_DEBUG_BFIN_NO_KERN_HWTRACE enabled

 

 

Kernel Stack

Stack info:

SP: [0x00177f54] <0x00177f54> /* kernel dynamic memory */

Memory from 0x00177f50 to 00178000

00177f50: 00000000 [00000000] fffede7f  00000000  000f4240  00178000  0016a7a0  ffa0024c

00177f70: 00176000  0015a114  0016a7a0  00176000  ffa00988  00159874  00000000  00000000

00177f90: 00000000  00000000  00000000  037a7040  0000ffff  0000ffff  ffa00988  00000006

00177fb0: 00159874  00000000  00000000  001786d6  00164750  0018e534  00159880  00159874

00177fd0: 00000000  0018e534  001596c8  00000015  001780a8 <00190580> 00178000  001832ea

00177ff0: 00000000  00000000  00000000  00000000  2e2f2e2e

Return addresses in stack:

    address : <0x00190580> [ sh + 0x10580 ]

Modules linked in:

Kernel panic - not syncing: Kernel exception

 

 

Follow-ups

 

--- Vivi Li                                                  2008-12-24 05:06:55

fails at somewhere between svn version 5713 and 5803...

 

--- Michael Hennerich                                        2008-12-28 17:46:23

I'm on vacation until Jan 8th - and I don't have any BF533 HW to test with me.

I committed a patch correcting a typo - likely fixing the issue.

 

Please test again.

 

Best regards,

Michael 

 

--- Mingquan Pan                                             2008-12-29 04:04:53

Yes, looks good on bf533 stamp now.

 

--- Vivi Li                                                  2008-12-30 01:40:30

Also OK on bf533-ezkit. Close this bug.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes