主题 : 整死人的问题:Kernel panic - not syncing: No init found.  Try passing init= option to kernel 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 20483
精华: 0
发帖: 3
金钱: 15 两
威望: 3 点
综合积分: 6 分
注册时间: 2010-05-02
最后登录: 2010-05-30
楼主  发表于: 2010-05-02 20:48

 整死人的问题:Kernel panic - not syncing: No init found.  Try passing init= option to kernel

这是我的内核启动信息:


uboot的设置环境情况:[mini2410 #] printenv
bootargs=root=/dev/mtdblock2 noinitrd console=ttySAC0,115200
bootcmd=nand read 0x30008000 0x80000 0x200000;bootm
bootdelay=5
baudrate=115200
ethaddr=08:00:3e:26:0a:5b
bootfile="uImage"
serverip=192.168.45.173
filesize=28A
fileaddr=30008000
netmask=255.255.255.0
ipaddr=192.168.1.13
serverip=192.168.1.12
update_kernel=tftp 0x30008000 uImage;nand erase 0x80000 0x200000;nand write 0x30
008000 0x80000 0x200000
update_rootfs=tftp 0x30008000 root.cramfs;nand erase 0x280000 0x400000;nand writ
e 0x30008000 0x280000 0x400000
update_boot=tftp 0x30008000 u-boot.bin;nand erase 0x0000 0x80000;nand write 0x30
008000 0x0000 0x80000
update_usr=nand erase 0x00680000 0x03980000
stdin=serial
stdout=serial
stderr=serial
Environment size: 762/16380 bytes



按复位键启动uboot、内核:

U-Boot 1.3.2 (Dec  7 2024 - 18:08:47)
DRAM:  32 MB
Flash: 512 kB
NAND:  64 MiB
In:    serial
Out:   serial
Err:   serial
Found DM9000 ID:90000a46 at address 10000000 !
DM9000 work in 16 bus width
bd->bi_entaddr: 08:00:3e:26:0a:5b
[eth_init]MAC:8:0:3e:26:a:5b:
Hit any key to stop autoboot:  0
NAND read: device 0 offset 0x80000, size 0x200000
2097152 bytes read: OK
## Booting image at 30008000 ...
   Image Name:   linux-2.6.22.6
   Created:      2010-05-02  11:13:58 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2063660 Bytes =  2 MB
   Load Address: 30008000
   Entry Point:  30008040
   Verifying Checksum ... OK
test:hdr->ih_type:2
test:hdr->ih_comp:0
   XIP Kernel Image ... OK
test:hdr->ih_type:2
test:hdr->ih_os:5
Starting kernel ...
test:machid:805306624
test: bi_boot_params:0x31f5bfb8
test:starting 1
Uncompressing Linux.............................................................
.............................................................................. d
one, booting the kernel.
Linux version 2.6.22.6 (root@localhost.localdomain) (gcc version 3.4.6) #22 Sun
May 2 19:13:39 CST 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=00007177
Machine: SMDK2410
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410A (id 0x32410002)
S3C2410: core 202.800 MHz, memory 101.400 MHz, peripheral 50.700 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
USB Control, (c) 2010 s3c2410
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.  Total pages: 8128
Kernel command line: root=/dev/mtdblock2 noinitrd console=ttySAC0,115200
irq: clearing subpending status 00000002
PID hash table entries: 128 (order: 7, 512 bytes)
timer tcon=00500000, tcnt a509, tcfg 00000200,00000000, usec 00001e4c
Console: colour dummy device 80x30
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 27900KB available (3992K code, 425K data, 124K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
S3C2410 Power Management, (c) 2004 Simtec Electronics
S3C2410: Initialising architecture
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c2800000, irq 33
DMA channel 1 at c2800040, irq 34
DMA channel 2 at c2800080, irq 35
DMA channel 3 at c28000c0, irq 36
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: 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
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
fuse init (API version 7.8)
yaffs May  1 2010 12:23:15 Installing.
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
s3c2410-lcd s3c2410-lcd: no platform data for lcd, cannot attach
s3c2410-lcd: probe of s3c2410-lcd failed with error -22
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
s3c2410-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
s3c2410-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
s3c2410-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: module loaded
dm9000 Ethernet Driver
eth0: dm9000 at c285e000,c2860002 IRQ 18 MAC: 00:30:34:f4:ad:f7
usbcore: registered new interface driver asix
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver net1080
usbcore: registered new interface driver cdc_subset
usbcore: registered new interface driver zaurus
usbcore: registered new interface driver zd1211rw
usbcore: registered new interface driver zd1201
Linux video capture interface: v2.00
em28xx v4l2 driver version 0.0.1 loaded
usbcore: registered new interface driver em28xx
usbcore: registered new interface driver usbvision
USBVision USB Video Device Driver for Linux : 0.9.9
usbcore: registered new interface driver pvrusb2
drivers/media/video/pvrusb2/pvrusb2-main.c: Hauppauge WinTV-PVR-USB2 MPEG2 Encod
er/Tuner : V4L in-tree version
drivers/media/video/pvrusb2/pvrusb2-main.c: Debug mask is 15 (0xf)
ovcamchip: v2.27 for Linux 2.6 : OV camera chip I2C driver
usbcore: registered new interface driver ov511
drivers/media/video/ov511.c: v1.64 for Linux 2.5 : ov511 USB Camera Driver
drivers/media/video/se401.c: SE401 usb camera driver version 0.24 registering
usbcore: registered new interface driver se401
usbcore: registered new interface driver stv680
drivers/media/video/stv680.c: [usb_stv680_init:1543] STV(i): usb camera driver v
ersion v0.25 registering
drivers/media/video/stv680.c: STV0680 USB Camera Driver v0.25
w9968cf: V4L driver for W996[87]CF JPEG USB Dual Mode Camera Chip 1:1.33-basic
usbcore: registered new interface driver w9968cf
usbcore: registered new interface driver zr364xx
drivers/media/video/zr364xx.c: Zoran 364xx module loaded
sn9c102: V4L2 driver for SN9C1xx PC Camera Controllers v1:1.44
usbcore: registered new interface driver sn9c102
et61x251: V4L2 driver for ET61X[12]51 PC Camera Controllers v1:1.04
usbcore: registered new interface driver et61x251
pwc: Philips webcam module version 10.0.13 loaded.
pwc: Supports Philips PCA645/646, PCVC675/680/690, PCVC720[40]/730/740/750 & PCV
C830/840.
pwc: Also supports the Askey VC010, various Logitech Quickcams, Samsung MPC-C10
and MPC-C30,
pwc: the Creative WebCam 5 & Pro Ex, SOTEC Afina Eye and Visionite VCS-UC300 and
VCS-UM100.
usbcore: registered new interface driver Philips webcam
zc0301: V4L2 driver for ZC0301[P] Image Processor and Control Chip v1:1.07
usbcore: registered new interface driver zc0301
usbcore: registered new interface driver ibmcam
usbcore: registered new interface driver ultracam
drivers/media/video/usbvideo/konicawc.c: Konica Webcam driver v1.4
usbcore: registered new interface driver konicawc
usbcore: registered new interface driver vicam
drivers/media/video/usbvideo/quickcam_messenger.c: Logitech Quickcam Messenger U
SB v0.01
usbcore: registered new interface driver QCM
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2410-nand s3c2410-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=3 29ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 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 64MiB 3,3V 8-bit":
0x00000000-0x00030000 : "U-Boot-1.3.4"
0x00030000-0x00500000 : "Linux2.6.22.2 Kernel"
0x00500000-0x04000000 : "YAFFS"
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
s3c2410 TouchScreen successfully loaded
input: s3c2410 TouchScreen as /class/input/input0
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-i2c s3c2410-i2c: slave address 0x10
s3c2410-i2c s3c2410-i2c: bus frequency set to 99 KHz
s3c2410-i2c s3c2410-i2c: i2c-0: S3C I2C adapter
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
ieee80211: 802.11 data/management/control stack, git-1.1.13
ieee80211: Copyright (C) 2004-2005 Intel Corporation <jketreno@linux.intel.com>
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem).
Freeing init memory: 124K
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.


各位高手好,这个系统就卡在Kernel panic - not syncing: No init found.  Try passing init= option to kernel这里,进不了。我已经搞了一个星期多了,五一也没得放假啊。

我想请问各位高手:这个系统问题出在哪里,是内核吗,还是根文件系统呢
内核的
Boot options  --->
noinitrd root=/dev/mtdblock2  rootfstype=yaffs  console=ttySAC0,115200 init=/linuxrc mem=64M) Default kernel command string
我烧学的根文件系统是yaffs.img
我也试过:
Boot options  --->
noinitrd root=/dev/mtdblock2  rootfstype=cramfs  console=ttySAC0,115200 init=/linuxrc mem=64M) Default kernel command string
我烧学的根文件系统是root.cramfs
但都是不行
想请问下面几行是什么意思,对根文件系统有什么影响:
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem).
级别: 新手上路
UID: 8342
精华: 0
发帖: 28
金钱: 185 两
威望: 58 点
综合积分: 56 分
注册时间: 2009-08-19
最后登录: 2011-02-24
1楼  发表于: 2010-05-05 21:59

 Re:整死人的问题:Kernel panic - not syncing: No init found. Try passing init= option to kernel

建议先更新bootloader,然后检查文件系统。
天青色等烟雨
级别: 新手上路
UID: 20483
精华: 0
发帖: 3
金钱: 15 两
威望: 3 点
综合积分: 6 分
注册时间: 2010-05-02
最后登录: 2010-05-30
2楼  发表于: 2010-05-08 15:49

 Re:整死人的问题:Kernel panic - not syncing: No init found. Try passing init= option to kernel

谢谢楼上,根据你们的提示,我进入了根文件系统了:
(1)我再到内核把Boot options  --->
noinitrd root=/dev/mtdblock2  rootfstype=cramfs  console=ttySAC0,115200 init=/linuxrc mem=64M) Default kernel command string
(2)启动代码变成:VFS: Mounted root (cramfs filesystem)。。。
然后烧写根文件系统是root.cramfs结果行了,之前的内核启动信息都是 VFS: Mounted root (yaffs filesystem).,无论怎么烧都不行
(3)还有 我改了:根系统的烧写地址(依照内核的nand参数)
现在只能用cramfs,yaffs 还是不行啊