2009-08-02 20:48:02     kernel panic, why?

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

2009-08-02 20:48:02     kernel panic, why?

light joy (UNITED STATES)

Message: 78276   

I compile the newest 2010R1-pre kernel under vdsp, but after kernel boot, it panic:

 

Linux version 2.6.30.1-ADI-2010R1-pre (wmz@localhost.localdomain) (gcc version

4.1.2 (ADI svn)) #4 Mon Jul 27 09:51:47 CST 2009

Board Memory: 48MB

Kernel Managed Memory: 32MB

Memory map:

fixedcode = 0x00000400-0x00000490

text      = 0x00010000-0x00175318

rodata    = 0x001b0000-0x001e0168

bss       = 0x011f0000-0x011fcc08

data      = 0x001e0200-0x00c70000

    stack   = 0x001e2000-0x001e4000

init      = 0x00c70000-0x011f0000

available = 0x011fcc08-0x01fff000

Hardware Trace Off and Disabled

Boot Mode: 2

Reset caused by Software reset

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

Compiled for ADSP-BF561 Rev 0.5

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 600 MHz core clock and 120 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

External memory: uncacheable in instruction cache

L2 SRAM        : uncacheable in instruction cache

Data Cache Enabled for CPU0

External memory: uncacheable in data cache

L2 SRAM        : uncacheable in data cache

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

Kernel command line: console=ttySS1,57600n7 root=/dev/mtdblock0 mem=32m max_mem=48m

NR_IRQS:121

Configuring Blackfin Priority Driven Interrupts

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

console [ttySS1] enabled

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

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

Memory available: 14056k/32768k RAM, (5632k init code, 1428k kernel code, 11295k

data, 0k dma, 356k reserved)

Calibrating delay loop... 1175.55 BogoMIPS (lpj=2351104)

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

Blackfin L2 SRAM: 128 KB (128 KB free)

net_namespace: 296 bytes

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

bio: create slab <bio-0> at 0

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 anticipatory registered (default)

io scheduler cfq registered

io scheduler noop registered

Serial: Blackfin serial driver

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

bfin-sport-uart.1: ttySS1 at MMIO 0xffc00900 (irq = 32) is a SPORT1

dm9000 Ethernet Driver, V1.31

dm9000 dm9000: read wrong id 0x2b2a2928

dm9000 dm9000: read wrong id 0x2b2a2928

dm9000 dm9000: read wrong id 0x2b2a2928

dm9000 dm9000: read wrong id 0x2b2a2928

dm9000 dm9000: read wrong id 0x2b2a2928

dm9000 dm9000: read wrong id 0x2b2a2928

dm9000 dm9000: read wrong id 0x2b2a2928

dm9000 dm9000: read wrong id 0x2b2a2928

dm9000 dm9000: wrong id: 0x2b2a2928

dm9000 dm9000: not found (-19).

msgmni has been set to 27

TCP cubic registered

Freeing unused kernel memory: 5632k freed

                           _____________________________________

        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.14.2 (2009-07-27 09:46:11 CST) hush - the humble shell

 

root:/> Kernel panic - not syncing: Attempted to kill init!

 

I pause the kernel by vdsp, and get the call stack:

_delay

panic

find_new_reaper

forget_original_parent

exit_notify

do_exit

sys_exit_group

get_signal_to_deliver

do_signal

<.Lsyscall_do_signals + 0xc>

 

The code around panic is:

static struct task_struct *find_new_reaper(struct task_struct *father)

{

………….

 

       if (unlikely(pid_ns->child_reaper == father)) {

              write_unlock_irq(&tasklist_lock);

              if (unlikely(pid_ns == &init_pid_ns))

                     panic("Attempted to kill init!"); // here panic

………….

}

 

Can anyone give ideas about this panic information?

QuoteReplyEditDelete

 

 

2009-08-02 21:46:30     Re: kernel panic, why?

Yi Li (CHINA)

Message: 78278   

 

> I compile the newest 2010R1-pre kernel under vdsp

 

> Linux version 2.6.30.1-ADI-2010R1-pre (wmz@localhost.localdomain) (gcc version 4.1.2 (ADI svn)) #4 Mon Jul 27 09:51:47 CST 2009

 

It looks you are using GCC to build kernel?

 

You may turn on "CONFIG_DEBUG_BUGVERBOSE" and analyze the trace:   docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:analyzing_traces

 

-Yi

QuoteReplyEditDelete

 

 

2009-08-02 22:01:46     Re: kernel panic, why?

light joy (UNITED STATES)

Message: 78279   

 

thanks, i'll try it.

 

> It looks you are using GCC to build kernel?

 

because vdsp can't generator the version file automatically, so i just copy one from gcc compiler version.

QuoteReplyEditDelete

 

 

2009-08-02 22:22:28     Re: kernel panic, why?

Yi Li (CHINA)

Message: 78280   

 

I'd suggest to use GNU toolchain to build kernel - since on this forum we only support GCC.

 

-Yi

QuoteReplyEditDelete

 

 

2009-08-02 23:33:15     Re: kernel panic, why?

Robin Getz (UNITED STATES)

Message: 78281   

 

Light:

 

If you use VDSP in any way - for any purpose - go ask ADI for help - we can not help you here.

 

  forms.analog.com/Form_Pages/support/dsp/dspSupport.asp

 

-Robin

Attachments

    Outcomes