AnsweredAssumed Answered

Hello! I am new here.there are problems about my uCLinux kernel based on blackfin561.

Question asked by fuhui on Mar 1, 2012
Latest reply on Mar 1, 2012 by fuhui

Starting Kernel at = 00198b98

Linux version 3.0.8-ADI-2011R1 (root@witchfox-desktop) (gcc version 4.5.3 (ADI-2011R1-RC4_45) ) #7 Thu Mar 1 15:02:17 CST 2012

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0011a138

  rodata    = 0x0011a138-0x00171f0c

  bss       = 0x00172000-0x00181b4c

  data      = 0x00181b4c-0x00192000

    stack   = 0x00190000-0x00192000

  init      = 0x00192000-0x0071e000

  available = 0x0071e000-0x03f00000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace active and enabled

Boot Mode: 0

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

Compiled for ADSP-BF561 Rev any, running on 0.5

Blackfin Linux support by http://blackfin.uclinux.org/

Processor Speed: 500 MHz core clock and 100 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        : cacheable (write-through) in data cache

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

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=192.168.1.101:192.168.1.100:192.168.1.1:255.255.255.0:BF561-ezkit:eth0:off

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

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

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

Memory available: 56616k/65536k RAM, (5680k init code, 1124k kernel code, 480k data, 1024k dma, 612k reserved)

NR_IRQS:153

Configuring Blackfin Priority Driven Interrupts

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)

pid_max: default: 32768 minimum: 301

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: 16 KB (3 KB free)

Blackfin L2 SRAM: 128 KB (128 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

NULL pointer access

Kernel OOPS in progress

Deferred Exception context

CURRENT PROCESS:

COMM=kworker/u:0 PID=5  CPU=0

invalid mm

return address: [0x0001ba82]; contents of:

0x0001ba60:  0010  0c07  1fef  e420  007c  e421  007d  e620

0x0001ba70:  007e  e621  007f  e421  007d  a130  5401  e620

0x0001ba80:  007d [e421] 007c  a0f0  5401  e620  007c  e14d

0x0001ba90:  0018  e3ff  edcf  e10d  30a4  9128  0040  3007

 

ADSP-BF561-0.65535(Detected 0.5) 500(MHz CCLK) 100(MHz SCLK) (mpu off)

Linux version 3.0.8-ADI-2011R1 (root@witchfox-desktop) (gcc version 4.5.3 (ADI-2011R1-RC4_45) ) #7 Thu Mar 1 15:02:17 CST 2012

 

SEQUENCER STATUS:        Not tainted

SEQSTAT: 00000027  IPEND: 8008  IMASK: ffff  SYSCFG: 0006

  EXCAUSE   : 0x27

  physical IVG3 asserted : <0xffa00808> { _trap + 0x0 }

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

  logical irq   6 mapped  : <0x00006718> { _bfin_coretmr_interrupt + 0x0 }

RETE: <0x00000000> /* Maybe null pointer? */

RETN: <0x02029df0> /* kernel dynamic memory (maybe user-space) */

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

RETS: <0x0000f936> { _copy_process + 0x1c2 }

PC  : <0x0001ba82> { _do_sigtimedwait + 0x96 }

DCPLB_FAULT_ADDR: <0x000001f0> /* Maybe null pointer? */

ICPLB_FAULT_ADDR: <0x0001ba82> { _do_sigtimedwait + 0x96 }

PROCESSOR STATE:

R0 : 0204c580    R1 : 000000fc    R2 : 0201e120    R3 : 00000000

R4 : 00000008    R5 : 00004011    R6 : 00000000    R7 : 00804111

P0 : 00000000    P1 : 000000fc    P2 : 00177470    P3 : 0202a800

P4 : 00000000    P5 : 02029e50    FP : 001830a4    SP : 02029d14

LB0: ffa018b8    LT0: ffa018b8    LC0: 00000000

LB1: 00001730    LT1: 00001730    LC1: 00000000

B0 : 00000000    L0 : 00000000    M0 : ffffffff    I0 : 00185188

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

B2 : 00000000    L2 : 00000000    M2 : 00000000    I2 : 0000001f

B3 : 00000000    L3 : 00000000    M3 : 00000000    I3 : 00000000

A0.w: 0000001e   A0.x: 00000000   A1.w: 00000009   A1.x: 00000000

USP : 00000000  ASTAT: 02002020

 

Hardware Trace:

   0 Target : <0x00003bb0> { _trap_c + 0x0 }

     Source : <0xffa0079c> { _exception_to_level5 + 0xa4 } JUMP.L

   1 Target : <0xffa006f8> { _exception_to_level5 + 0x0 }

     Source : <0xffa005ac> { _bfin_return_from_exception + 0x18 } RTX

   2 Target : <0xffa00594> { _bfin_return_from_exception + 0x0 }

     Source : <0xffa00650> { _ex_trap_c + 0x74 } JUMP.S

   3 Target : <0xffa005dc> { _ex_trap_c + 0x0 }

     Source : <0xffa00870> { _trap + 0x68 } JUMP (P4)

   4 Target : <0xffa00826> { _trap + 0x1e }

     Source : <0xffa00822> { _trap + 0x1a } IF CC JUMP pcrel

   5 Target : <0xffa00808> { _trap + 0x0 }

      FAULT : <0x0001ba82> { _do_sigtimedwait + 0x96 } R1 = [P4 + -0x70]

     Source : <0x0000f932> { _copy_process + 0x1be } RTS

   6 Target : <0x0000f928> { _copy_process + 0x1b4 }

     Source : <0x0000ff44> { _copy_process + 0x7d0 } JUMP.S

   7 Target : <0x0000ff2c> { _copy_process + 0x7b8 }

     Source : <0x0002128c> { _attach_pid + 0x34 } RTS

   8 Target : <0x0002128a> { _attach_pid + 0x32 }

     Source : <0x00021286> { _attach_pid + 0x2e } IF CC JUMP pcrel

   9 Target : <0x00021258> { _attach_pid + 0x0 }

     Source : <0x0000ff28> { _copy_process + 0x7b4 } CALL pcrel

  10 Target : <0x0000ff20> { _copy_process + 0x7ac }

     Source : <0x000102cc> { _copy_process + 0xb58 } JUMP.S

  11 Target : <0x00010276> { _copy_process + 0xb02 }

     Source : <0x0002128c> { _attach_pid + 0x34 } RTS

  12 Target : <0x00021258> { _attach_pid + 0x0 }

     Source : <0x00010272> { _copy_process + 0xafe } CALL pcrel

  13 Target : <0x00010264> { _copy_process + 0xaf0 }

     Source : <0x0002128c> { _attach_pid + 0x34 } RTS

  14 Target : <0x00021258> { _attach_pid + 0x0 }

     Source : <0x00010260> { _copy_process + 0xaec } CALL pcrel

  15 Target : <0x00010246> { _copy_process + 0xad2 }

     Source : <0x0001023c> { _copy_process + 0xac8 } IF CC JUMP pcrel

Kernel Stack

Stack info:

SP: [0x02029f20] <0x02029f20> /* kernel dynamic memory (maybe user-space) */

FP: (0x02029f48)

Memory from 0x02029f20 to 0202a000

02029f20:[00000000] ffffffff  00000006  0001e308  0204ef20  00000000  0001e2e8  0202a805

02029f40: 00189974  00000000 (00000000)<0001ee4e> 0204ef20  00000000  02028000  02028000

02029f60: 00001014  02028000  02028000  00020598  02007da0  0017cf34  00000010  0017d0b8

02029f80: 00185120  02007db0  0201bf14  00020490  00000000  02028000  00001014  02028000

02029fa0: 00000000 <000234d0> 0201bf14  00020490  00000000  02007da0  00000000  00000000

02029fc0: 00000000  00000000  00000000  00023474  00000000  02007da0  00000000  02029fdc

02029fe0: 02029fdc <000014f6> 00000000  00000000  00000000  00000000  ffffffff  00000006

Return addresses in stack:

   frame  1 : <0x0001ee4e> { _process_one_work + 0xc2 }

    address : <0x000234d0> { _kthread + 0x5c }

    address : <0x000014f6> { _kernel_thread_helper + 0x6 }

Modules linked in:

Kernel panic - not syncing: Kernel exception

Hardware Trace:

Stack info:

SP: [0x02029c1c] <0x02029c1c> /* kernel dynamic memory (maybe user-space) */

FP: (0x02029f48)

Memory from 0x02029c10 to 0202a000

02029c10: 0000000b  02029c1c  00000013 [00147644] 00119f94  02029d14  00147644  001774cf

02029c30: 001774cf  001774cf  02029c64  001830a4  000040b8  02029d14  ffe02014  0202a800

02029c50: 00008000  0000000b  00000027  00000013  02029d14  0000003f  ffffe07c  0000000a

02029c70: 00000000  0003000b  00008050  00000026  0018f374  0003af52  02028000  00000010

02029c90: 0018fd8c  00000002  00000001  02028000  00000000  00001730  ffa018b8  00000000

02029cb0: 00000000  00000041  0000ffff  00000000  00000000  00000000  0000000c  00000010

02029cd0: 0018fd8c  00000000  fffffffe  010182e0  02028000  0201830c  00000000  0100b68c

02029cf0: ffa007a0  00174000  00008008  00000027  00004011  00000008  00000001  00000000

02029d10: 00000480  00000480  00008008  00000027  00000000  02029df0  00000480  0001ba82

02029d30: 0000f936  0204c580  02002020  00001730  ffa018b8  00001730  ffa018b8  00000000

02029d50: 00000000  00000009  00000000  0000001e  00000000  00000000  00000000  00000000

02029d70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

02029d90: ffffffff  00000000  0000001f  00000001  00185188  00000000  001830a4  02029e50

02029db0: 00000000  0202a800  00177470  000000fc  00000000  00804111  00000000  00004011

02029dd0: 00000008  00000000  0201e120  000000fc  0204c580  0204c580  00000000  00000006

02029df0: ffffffff  00000000  02018ac0  00000000  00000000  0201e120  00000000  001837c0

02029e10: 00189974  00000000  02029e18  02029e18  000016ae  02029e50  02007da0  0204ef20

02029e30: 0001e0cc  00004011  ffa024a2  02029f00  001830a4  00000000  00000000  00000000

02029e50: 00000000  00008002  00000000  00000000  00000000  00000000  000014f0  00000000

02029e70: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

02029e90: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

02029eb0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

02029ed0: 00000000  00000000  00000000  00000000  00000000  00000000  00000000  00000000

02029ef0: 00000000  00000000  0001e0cc  00000000  00000000  00000000  00000000  00000000

02029f10: 00000000  00000000  0204ef20  00000000  00000000  ffffffff  00000006  0001e308

02029f30: 0204ef20  00000000  0001e2e8  0202a805  00189974  00000000 (00000000)<0001ee4e>

02029f50: 0204ef20  00000000  02028000  02028000  00001014  02028000  02028000  00020598

02029f70: 02007da0  0017cf34  00000010  0017d0b8  00185120  02007db0  0201bf14  00020490

02029f90: 00000000  02028000  00001014  02028000  00000000 <000234d0> 0201bf14  00020490

02029fb0: 00000000  02007da0  00000000  00000000  00000000  00000000  00000000  00023474

02029fd0: 00000000  02007da0  00000000  02029fdc  02029fdc <000014f6> 00000000  00000000

02029ff0: 00000000  00000000  ffffffff  00000006

Return addresses in stack:

   frame  1 : <0x0001ee4e> { _process_one_work + 0xc2 }

    address : <0x000234d0> { _kthread + 0x5c }

    address : <0x000014f6> { _kernel_thread_helper + 0x6 }

 

 

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

   Image Name:   Linux-2.6.28.10-ADI-2009R1

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    3650014 Bytes =  3.5 MB

   Load Address: 00001000

   Entry Point:  00165664

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 00165664

Linux version 2.6.28.10-ADI-2009R1 (root@witchfox-desktop) (gcc version 4.1.2 (ADI svn)) #3 Thu Mar 1 15:22:43 CST 2012

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x000ecea0

  rodata    = 0x000ecea0-0x00136bbc

  bss       = 0x00137000-0x00148750

  data      = 0x00148750-0x00158000

    stack   = 0x00156000-0x00158000

  init      = 0x00158000-0x006f6000

  available = 0x006f6000-0x03eff000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 0

Reset caused by Software reset

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

Compiled for ADSP-BF561 Rev 0.5

Blackfin Linux support by http://blackfin.uclinux.org/

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

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

Data Cache Enabled for CPU0 (write-back)

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

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600 ip=192.168.1.101:192.168.1.100:192.168.1.1:255.255.255.0:BF561-ezkit:eth0:off

Configuring Blackfin Priority Driven Interrupts

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

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

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

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

Memory available: 56812k/65536k RAM, (5752k init code, 943k kernel code, 429k data, 1024k dma, 572k reserved)

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

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: 16 KB (5 KB free)

Blackfin L2 SRAM: 128 KB (128 KB free)

net_namespace: 288 bytes

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_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

Hardware Trace:

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

     Source : <0x00039a56> { _cache_alloc_refill + 0x176 } CALL pcrel

   1 Target : <0x00039a56> { _cache_alloc_refill + 0x176 }

     Source : <0x0003994c> { _cache_alloc_refill + 0x6c } IF !CC JUMP

   2 Target : <0x00039940> { _cache_alloc_refill + 0x60 }

     Source : <0x000399b2> { _cache_alloc_refill + 0xd2 } IF CC JUMP

   3 Target : <0x000399b0> { _cache_alloc_refill + 0xd0 }

     Source : <0x00039a28> { _cache_alloc_refill + 0x148 } JUMP.S

   4 Target : <0x00039a1a> { _cache_alloc_refill + 0x13a }

     Source : <0x000399a4> { _cache_alloc_refill + 0xc4 } IF !CC JUMP

   5 Target : <0x0003995b> { _cache_alloc_refill + 0x7b }

     Source : <0x00039986> { _cache_alloc_refill + 0xa6 } IF CC JUMP

   6 Target : <0x00039960> { _cache_alloc_refill + 0x80 }

     Source : <0x00039958> { _cache_alloc_refill + 0x78 } JUMP.S

   7 Target : <0x00039946> { _cache_alloc_refill + 0x66 }

     Source : <0x00039a16> { _cache_alloc_refill + 0x136 } IF CC JUMP

   8 Target : <0x00039a0c> { _cache_alloc_refill + 0x12c }

     Source : <0x00039944> { _cache_alloc_refill + 0x64 } IF !CC JUMP

   9 Target : <0x0003993c> { _cache_alloc_refill + 0x5c }

     Source : <0x00039926> { _cache_alloc_refill + 0x46 } IF !CC JUMP

  10 Target : <0x00039902> { _cache_alloc_refill + 0x22 }

     Source : <0x00039c4a> { _cache_alloc_refill + 0x36a } IF CC JUMP

  11 Target : <0x00039c06> { _cache_alloc_refill + 0x326 }

     Source : <0x000202c0> { ___mutex_init + 0xc } RTS

  12 Target : <0x000202b4> { ___mutex_init + 0x0 }

     Source : <0x00049bca> { _inode_init_once + 0x82 } JUMP.L

  13 Target : <0x00049b5a> { _inode_init_once + 0x12 }

     Source : <0xffa015ee> { _memset + 0x2e } RTS

  14 Target : <0xffa015c0> { _memset + 0x0 }

     Source : <0x00049b56> { _inode_init_once + 0xe } CALL pcrel

  15 Target : <0x00049b48> { _inode_init_once + 0x0 }

     Source : <0x00049bd0> { _init_once + 0x0 } JUMP.L

BUG: failure at mm/slab.c:3000/cache_alloc_refill()!

Kernel panic - not syncing: BUG!

 

 

 

This is my kernel boot information. But I did not know the reason.I need help sincerely.I also put forward my config file.If you need more information ,please tell me quick.

Attachments

Outcomes