主题 : Kernel panic - not syncing: Attempted to kill the idle task!出错,求助!!! 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 21719
精华: 0
发帖: 7
金钱: 35 两
威望: 7 点
贡献值: 0 点
综合积分: 14 分
注册时间: 2010-05-20
最后登录: 2017-09-13
楼主  发表于: 2010-05-23 22:16

 Kernel panic - not syncing: Attempted to kill the idle task!出错,求助!!!

编译完android内核,烧到板子上运行出现Kernel panic - not syncing: Attempted to kill the idle task!错误  请问是怎么回事呢?有遇见过的么?是内核哪项配置选错了呢?下面是我的启动过程,麻烦大家帮帮忙;
Copy linux kernel from 0x00060000 to 0x30008000, size = 0x00200000 ... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0"
MACH_TYPE = 1999
NOW, Booting Linux......
Uncompressing Linux........................................................................................................ done, booting the kernel.
Linux version 2.6.25 (root@localhost.localdomain) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #1 Sun May 23 21:35:36 CST 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: SMDK2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=00000000, tcnt a4ca, tcfg 00000200,00000000, usec 00001e57
Console: colour dummy device 80x30
console [ttySAC0] enabled
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c0004000
[00000000] *pgd=00000000
Internal error: Oops: 5 [#1]
Modules linked in:
CPU: 0    Not tainted  (2.6.25 #1)
PC is at kmem_cache_alloc+0x20/0x80
LR is at init_rs_internal+0xfc/0x460
pc : [<c008da68>]    lr : [<c01472ec>]    psr: 600000d3
sp : c030bec8  ip : c030bee8  fp : c030bee4
r10: 00000000  r9 : 41129200  r8 : 00000000
r7 : 000000d0  r6 : 00000000  r5 : 60000053  r4 : c031c5c4
r3 : 600000d3  r2 : c031c5dc  r1 : 000000d0  r0 : 00000000
Flags: nZCv  IRQs off  FIQs off  Mode SVC_32  ISA ARM  Segment kernel
Control: c000717f  Table: 30004000  DAC: 00000017
Process swapper (pid: 0, stack limit = 0xc030a268)
Stack: (0xc030bec8 to 0xc030c000)
bec0:                   c031c5c4 00000008 00000100 0000011d c030bf24 c030bee8
bee0: c01472ec c008da58 c030bf64 c030bef8 c002c5e4 c002c010 000005d1 c034fdb8
bf00: 00000000 c0024f2c c030dd60 3002342c 41129200 300230b8 c030bf3c c030bf28
bf20: c01476b0 c0147200 00000001 00000010 c030bfb4 c030bf40 c001e264 c0147698
bf40: 00000010 00000000 c032ac70 00000000 c032ac48 41129200 c030bf94 c030bf68
bf60: c004af5c c004a328 c030bf94 c030bf78 c0177214 c0320574 c0329be8 c03205f8
bf80: c030dd60 3002342c c030bfb4 c030bf98 c01773b8 c004acd8 c0023b80 c0024f30
bfa0: c0024f2c c030dd60 c030bfcc c030bfb8 c001a34c c001e22c c0329060 c0024f30
bfc0: c030bff4 c030bfd0 c0008bf8 c001a330 c00087cc 00000000 00000000 c0024f30
bfe0: c0007175 c0329a0c 00000000 c030bff8 30008034 c0008a64 00000000 00000000
Backtrace:
[<c008da48>] (kmem_cache_alloc+0x0/0x80) from [<c01472ec>] (init_rs_internal+0xfc/0x460)
r7:0000011d r6:00000100 r5:00000008 r4:c031c5c4
[<c01471f0>] (init_rs_internal+0x0/0x460) from [<c01476b0>] (init_rs+0x28/0x30)
[<c0147688>] (init_rs+0x0/0x30) from [<c001e264>] (ram_console_early_init+0x48/0x2c8)
[<c001e21c>] (ram_console_early_init+0x0/0x2c8) from [<c001a34c>] (console_init+0x2c/0x48)
r7:c030dd60 r6:c0024f2c r5:c0024f30 r4:c0023b80
[<c001a320>] (console_init+0x0/0x48) from [<c0008bf8>] (start_kernel+0x1a4/0x2b8)
r5:c0024f30 r4:c0329060
[<c0008a54>] (start_kernel+0x0/0x2b8) from [<30008034>] (0x30008034)
r5:c0329a0c r4:c0007175
Code: e1a07001 e10f5000 e3853080 e121f003 (e590c000)
---[ end trace ca143223eefdc828 ]---
Kernel panic - not syncing: Attempted to kill the idle task!
级别: 新手上路
UID: 5051
精华: 0
发帖: 37
金钱: 355 两
威望: 200 点
贡献值: 0 点
综合积分: 74 分
注册时间: 2009-04-09
最后登录: 2011-06-20
1楼  发表于: 2010-05-24 00:55
nand驱动    dm9000驱动没有搞好
级别: 新手上路
UID: 21719
精华: 0
发帖: 7
金钱: 35 两
威望: 7 点
贡献值: 0 点
综合积分: 14 分
注册时间: 2010-05-20
最后登录: 2017-09-13
2楼  发表于: 2010-05-24 11:28
谢谢楼上的 请问能说的具体一点么????nand分区是不是得和我的VIVI分区一模一样?包括name都也得一模一样么?我的vivi分区是4个分区  我按照网上的只在nand分区上写了3个分区 是不是这出了问题?希望知道的能帮我下 我是个新手  不是很会
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2010-05-24 12:42
[<c008da48>] (kmem_cache_alloc+0x0/0x80) from [<c01472ec>] (init_rs_internal+0xfc/0x460)
r7:0000011d r6:00000100 r5:00000008 r4:c031c5c4
[<c01471f0>] (init_rs_internal+0x0/0x460) from [<c01476b0>] (init_rs+0x28/0x30)
[<c0147688>] (init_rs+0x0/0x30) from [<c001e264>] (ram_console_early_init+0x48/0x2c8)
[<c001e21c>] (ram_console_early_init+0x0/0x2c8) from [<c001a34c>] (console_init+0x2c/0x48)

问题出在Android的ram console驱动,这个驱动需要一块预分配的内存空间。如果你对它没有特别的需求的话,可以在内核配置中禁用掉它。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 21719
精华: 0
发帖: 7
金钱: 35 两
威望: 7 点
贡献值: 0 点
综合积分: 14 分
注册时间: 2010-05-20
最后登录: 2017-09-13
4楼  发表于: 2010-05-24 19:16
谢谢 kasim    我禁用后没有了那错误 可是出现了新错误 我不答明白是内核编译出错了还是别的什么?一下是启动信息  希望遇到过这问题的帮下忙  谢谢了
Copy linux kernel from 0x00060000 to 0x30008000, size = 0x00200000 ... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0"
MACH_TYPE = 1999
NOW, Booting Linux......
Uncompressing Linux........................................................................................................ done, booting the kernel.
Linux version 2.6.25 (root@localhost.localdomain) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #5 Mon May 24 16:01:13 CST 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: SMDK2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=00000000, tcnt a4ca, tcfg 00000200,00000000, usec 00001e57
Console: colour dummy device 80x30
console [ttySAC0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 61312KB available (2932K code, 497K data, 144K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 152 bytes
android_power_init
android_power_init done
NET: Registered protocol family 16
S3C2410 Power Management, (c) 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4800000, irq 33
DMA channel 1 at c4800040, irq 34
DMA channel 2 at c4800080, irq 35
DMA channel 3 at c48000c0, irq 36
S3C244X: Clock Support, DVS off
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
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
NetWinder Floating Point Emulator V0.97 (double precision)
ashmem: initialized
JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Console: switching to colour frame buffer device 30x40
fb0: s3c2410fb frame buffer device
lp: driver loaded but no devices found
ppdev: user-space parallel port driver
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
brd: module loaded
loop: module loaded
dm9000 Ethernet Driver, V1.30
Uniform Multi-Platform E-IDE driver
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
BAST NOR-Flash Driver, (c) 2004 Simtec Electronics
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=1, 9ns Twrph0=4 39ns, Twrph1=1 9ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
NAND_ECC_NONE selected by board driver. This is not recommended !!
Scanning device for bad blocks
Creating 3 MTD partitions on "NAND 128MiB 3,3V 8-bit":
0x00000000-0x00040000 : "vivi"
0x00060000-0x00260000 : "kernel"
0x00260000-0x3ffe0000 : "yaffs2"
mtd: partition "yaffs2" extends beyond the end of device "NAND 128MiB 3,3V 8-bit" -- size truncated to 0x7da0000
usbmon: debugfs is not available
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
mice: PS/2 mouse device common for all mice
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 98 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
logger: created 64K log 'log_main'
logger: created 64K log 'log_events'
logger: created 64K log 'log_radio'
TCP cubic registered
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
List of all partitions:
0100       4096 ram0 (driver?)
0101       4096 ram1 (driver?)
0102       4096 ram2 (driver?)
0103       4096 ram3 (driver?)
0104       4096 ram4 (driver?)
0105       4096 ram5 (driver?)
0106       4096 ram6 (driver?)
0107       4096 ram7 (driver?)
0108       4096 ram8 (driver?)
0109       4096 ram9 (driver?)
010a       4096 ram10 (driver?)
010b       4096 ram11 (driver?)
010c       4096 ram12 (driver?)
010d       4096 ram13 (driver?)
010e       4096 ram14 (driver?)
010f       4096 ram15 (driver?)
1f00        256 mtdblock0 (driver?)
1f01       2048 mtdblock1 (driver?)
1f02     128640 mtdblock2 (driver?)
No filesystem could mount root, tried:  ext3 ext2 cramfs msdos vfat romfs
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)
级别: 新手上路
UID: 21719
精华: 0
发帖: 7
金钱: 35 两
威望: 7 点
贡献值: 0 点
综合积分: 14 分
注册时间: 2010-05-20
最后登录: 2017-09-13
5楼  发表于: 2010-05-25 16:22
总算找到错误了 原因是内核没有增加对yaffs2文件和devfs文件的支持  增加后就能正常启动