[#4654] Kernel panics upon boot - hits BUG_ON in arch/blackfin/kernel/cplb-nompu/cplbinit.c:428/generate_cplb_tables_cpu()

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

[#4654] Kernel panics upon boot - hits BUG_ON in arch/blackfin/kernel/cplb-nompu/cplbinit.c:428/generate_cplb_tables_cpu()

Submitted By: Thomas Langås

Open Date

2008-11-19 04:30:17     Close Date

2008-11-25 02:49:22

Priority:

Medium     Assignee:

Mike Frysinger

Status:

Closed     Fixed In Release:

N/A

Found In Release:

N/A     Release:

Category:

Kernel Functions     Board:

Custom

Processor:

BF561     Silicon Revision:

0.5

Is this bug repeatable?:

Yes     Resolution:

Fixed

Uboot version or rev.:

1.1.6     Toolchain version or rev.:

SVN - 2008-08-13

App binary format:

N/A     

Summary: Kernel panics upon boot - hits BUG_ON in arch/blackfin/kernel/cplb-nompu/cplbinit.c:428/generate_cplb_tables_cpu()

Details:

 

bfin> setenv bootargs root=/dev/mtdblock2 rootfstype=jffs2 rw earlyprintk=serial,uart0,115200 console=ttyBF0,115200 init=/sbin/init

bfin> run flashboot

## Booting image at 20100000 ...

   Image Name:   Linux-2.6.28-rc2-ADI-2009R1-pre-

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    1321563 Bytes =  1.3 MB

   Load Address: 00800000

   Entry Point:  00a4afc0

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = a4afc0 with arguments: root=/dev/mtdblock2 rootfstype=jffs2 rw earlyprintk=serial,uart0,115200 console=ttyBF0,115200 init=/sbin/init

Linux version 2.6.28-rc2-ADI-2009R1-pre-svn5719 (tlan@sarissa) (gcc version 4.1.2 (ADI svn)) #177 Wed Nov 19 09:36:24 CET 2008

console [early_BFuart0] enabled

early printk enabled on early_BFuart0

Entering memory_setup()

Board Memory: 128MB

Kernel Managed Memory: 128MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00800000-0x00994bb0

  rodata    = 0x00994bb0-0x00a17024

  bss       = 0x00a17030-0x00a2bbd8

  data      = 0x00a2bbd8-0x00a3e000

    stack   = 0x00a3c000-0x00a3e000

  init      = 0x00a3e000-0x00a5b000

  available = 0x00a5b000-0x07bff000

  DMA Zone  = 0x07c00000-0x08000000

Hardware Trace Active and Enabled

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

Compiled for ADSP-BF561 Rev 0.5

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 500 MHz core clock and 100 MHz System Clock

NOMPU: setting up cplb tables for global access

Hardware Trace:

   0 Target : <0x008036d4> { _dump_bfin_trace_buffer + 0x0 }

     Source : <0x00a4ba48> { _generate_cplb_tables_cpu + 0x458 } CALL pcrel

   1 Target : <0x00a4ba48> { _generate_cplb_tables_cpu + 0x458 }

     Source : <0x00a4b852> { _generate_cplb_tables_cpu + 0x262 } IF !CC JUMP

   2 Target : <0x00a4b804> { _generate_cplb_tables_cpu + 0x214 }

     Source : <0x00a4b7e8> { _generate_cplb_tables_cpu + 0x1f8 } IF CC JUMP

   3 Target : <0x00a4b7e2> { _generate_cplb_tables_cpu + 0x1f2 }

     Source : <0x00a4b5be> { _fill_cplbtab + 0xba } RTS

   4 Target : <0x00a4b590> { _fill_cplbtab + 0x8c }

     Source : <0x00a4b558> { _fill_cplbtab + 0x54 } JUMP.S

   5 Target : <0x00a4b52e> { _fill_cplbtab + 0x2a }

     Source : <0x00a4b5c4> { _fill_cplbtab + 0xc0 } JUMP.S

   6 Target : <0x00a4b5c0> { _fill_cplbtab + 0xbc }

     Source : <0x00a4b514> { _fill_cplbtab + 0x10 } IF !CC JUMP

   7 Target : <0x00a4b504> { _fill_cplbtab + 0x0 }

     Source : <0x00a4b7de> { _generate_cplb_tables_cpu + 0x1ee } CALL pcrel

   8 Target : <0x00a4b7c0> { _generate_cplb_tables_cpu + 0x1d0 }

     Source : <0x00a4b5be> { _fill_cplbtab + 0xba } RTS

   9 Target : <0x00a4b590> { _fill_cplbtab + 0x8c }

     Source : <0x00a4b558> { _fill_cplbtab + 0x54 } JUMP.S

  10 Target : <0x00a4b52e> { _fill_cplbtab + 0x2a }

     Source : <0x00a4b5c4> { _fill_cplbtab + 0xc0 } JUMP.S

  11 Target : <0x00a4b5c0> { _fill_cplbtab + 0xbc }

     Source : <0x00a4b514> { _fill_cplbtab + 0x10 } IF !CC JUMP

  12 Target : <0x00a4b504> { _fill_cplbtab + 0x0 }

     Source : <0x00a4b7bc> { _generate_cplb_tables_cpu + 0x1cc } CALL pcrel

  13 Target : <0x00a4b79e> { _generate_cplb_tables_cpu + 0x1ae }

     Source : <0x00a4b802> { _generate_cplb_tables_cpu + 0x212 } IF CC JUMP

  14 Target : <0x00a4b7ea> { _generate_cplb_tables_cpu + 0x1fa }

     Source : <0x00a4b8cc> { _generate_cplb_tables_cpu + 0x2dc } JUMP.S

  15 Target : <0x00a4b8c8> { _generate_cplb_tables_cpu + 0x2d8 }

     Source : <0x00a4b792> { _generate_cplb_tables_cpu + 0x1a2 } IF CC JUMP

BUG: failure at arch/blackfin/kernel/cplb-nompu/cplbinit.c:428/generate_cplb_tables_cpu()!

Kernel panic - not syncing: BUG!

 

Follow-ups

 

--- Mike Frysinger                                           2008-11-19 20:17:28

you need to fully describe your hardware

 

also, post your kernel .config file

 

--- Thomas Langås                                           2008-11-20 06:20:56

I don't know how detailed you want the hardware description, and what you want,

but this is some of the details:

* BF561 - ADSP-BF561SBBCZ-6a

* 128MB SDRAM - Micron 2xMT48LC32M16A2TG-75IT

* 64MB flash - Spansion S29GL512P10TFC010

* Ethernet - SMSC LAN91C111I-NU  (running in 32bit-mode)

 

.config is attached

 

--- Mike Frysinger                                           2008-11-20 14:55:23

go to the file & line indicated and change the test from '<=' to '<'

and see if that fixes your crash

 

--- Mike Frysinger                                           2008-11-21 11:11:00

well ive committed that change as it seems to fix things for me

 

--- Thomas Langås                                           2008-11-24 08:37:28

Yes, now it bugs on the next line instead.

 

--- Thomas Langås                                           2008-11-24 08:45:23

Changed that line to < instead of <=, and it worked fine.

 

--- Mike Frysinger                                           2008-11-25 02:49:22

ive converted all <= to < in trunk

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

config    application/octet-stream    26431    Thomas Langås

Attachments

Outcomes