免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 14258 | 回复: 11
打印 上一主题 下一主题

Failed to execute /linuxrc;Kernel panic - not syncing: No init found. [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-02-10 15:55 |只看该作者 |倒序浏览
U-Boot 1.2.0 (Feb  8 2009 - 07:29:4

U-Boot code: 33F80000 -> 33F99878  BSS: -> 33F9E078
DRAM:  64 MB
NAND:    64 MB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
HELLO-2410 # [A
Unknown command '[A' - try 'help'
HELLO-2410 #
HELLO-2410 # tftp 30007fc0 uImage-ram2
NE2000 - eeprom ESA: 08:08:08:26:0a:5b
TFTP from server 202.202.213.123; our IP address is 202.202.213.111
Filename 'uImage-ram2'.
Load address: 0x30007fc0
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #######################
done
Bytes transferred = 1444800 (160bc0 hex)
HELLO-2410 # tftp 30800000 ramdisk.image.gz
NE2000 - eeprom ESA: 08:08:08:26:0a:5b
TFTP from server 202.202.213.123; our IP address is 202.202.213.111
Filename 'ramdisk.image.gz'.
Load address: 0x30800000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
done
Bytes transferred = 2994021 (2daf65 hex)
HELLO-2410 # bootm 30007fc0
## Booting image at 30007fc0 ...
   Image Name:   linux-2.6.24
   Created:      2009-02-08   1:13:25 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1444736 Bytes =  1.4 MB
   Load Address: 30007fc0
   Entry Point:  30008000
   Verifying Checksum ... OK
   XIP Kernel Image ... OK

Starting kernel ...

Uncompressing Linux.............................................................................................. done, booting the kernel.
Linux version 2.6.24 (root@localhost.localdomain) (gcc version 3.4.1) #2 Sun Feb 8 09:12:02 CST 2009
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=00007177
Machine: SMDK2410
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410 (id 0x32410000)
S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 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: initrd=0x30800000,0x20000 root=/dev/ram rw init=/linuxrc console=ttySAC0,115200
irq: clearing pending ext status 00080100
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=00500000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
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: 61696KB available (2664K code, 303K data, 120K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 64 bytes
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 c4800000, irq 33
DMA channel 1 at c4800040, irq 34
DMA channel 2 at c4800080, irq 35
DMA channel 3 at c48000c0, irq 36
SCSI subsystem initialized
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 204
TCP reno registered
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 128K
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
fuse init (API version 7.9)
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
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
nbd: registered device at major 43
BAST NOR-Flash Driver, (c) 2004 Simtec Electronics
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2410-nand s3c2410-nand: Tacls=1, 10ns Twrph0=4 40ns, Twrph1=1 10ns
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 4 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00020000 : "uboot"
0x00020000-0x00030000 : "param"
0x00030000-0x00330000 : "kernel"
0x00330000-0x03f30000 : "root"
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-i2c s3c2410-i2c: slave address 0x10
s3c2410-i2c s3c2410-i2c: bus frequency set to 390 KHz
s3c2410-i2c s3c2410-i2c: i2c-0: S3C I2C adapter
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RAMDISK: Compressed image found at block 0
RAMDISK: ran out of compressed data
invalid compressed format (err=1)
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 120K
attempt to access beyond end of device
ram0: rw=0, want=9416, limit=8192
attempt to access beyond end of device
ram0: rw=0, want=9416, limit=8192
Warning: unable to open an initial console.
Failed to execute /linuxrc. Attempting defaults...
attempt to access beyond end of device
ram0: rw=0, want=9418, limit=8192
Buffer I/O error on device ram0, logical block 4708
attempt to access beyond end of device
ram0: rw=0, want=10402, limit=8192
Buffer I/O error on device ram0, logical block 5200
attempt to access beyond end of device
ram0: rw=0, want=10404, limit=8192
Buffer I/O error on device ram0, logical block 5201
attempt to access beyond end of device
ram0: rw=0, want=9418, limit=8192
Buffer I/O error on device ram0, logical block 4708
attempt to access beyond end of device
ram0: rw=0, want=10402, limit=8192
Buffer I/O error on device ram0, logical block 5200
attempt to access beyond end of device
ram0: rw=0, want=10404, limit=8192
Buffer I/O error on device ram0, logical block 5201
attempt to access beyond end of device
ram0: rw=0, want=9300, limit=8192
attempt to access beyond end of device
ram0: rw=0, want=9300, limit=8192
attempt to access beyond end of device
ram0: rw=0, want=9418, limit=8192
Buffer I/O error on device ram0, logical block 4708
attempt to access beyond end of device
ram0: rw=0, want=10402, limit=8192
Buffer I/O error on device ram0, logical block 5200
attempt to access beyond end of device
ram0: rw=0, want=10404, limit=8192
Buffer I/O error on device ram0, logical block 5201
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

论坛徽章:
0
2 [报告]
发表于 2009-02-10 20:57 |只看该作者

回复 #1 linuxway.w 的帖子

文件系统没有挂载

论坛徽章:
0
3 [报告]
发表于 2009-02-11 09:38 |只看该作者
是否是配置内核的时候没有悬赏ext2?根据这里挂在的是ext2,我试试吧

论坛徽章:
0
4 [报告]
发表于 2009-02-11 10:02 |只看该作者
选上ext2还是不行,大家再帮帮忙啊,感谢!

论坛徽章:
0
5 [报告]
发表于 2009-02-18 15:57 |只看该作者
我也遇到这问题啊,怎么解决啊

论坛徽章:
0
6 [报告]
发表于 2009-02-18 19:28 |只看该作者
问题解决了,
是ramdisk大小出了问题,
1.可以在uboot启动cmd中添加 ramdisk_size=8092(默认为4M,改为8M)
2.在配置内核的时候也可以修改为8092

评分

参与人数 1可用积分 +15 收起 理由
yidou + 15

查看全部评分

论坛徽章:
0
7 [报告]
发表于 2009-05-19 10:09 |只看该作者
原帖由 linuxway.w 于 2009-2-18 19:28 发表
问题解决了,
是ramdisk大小出了问题,
1.可以在uboot启动cmd中添加 ramdisk_size=8092(默认为4M,改为8M)
2.在配置内核的时候也可以修改为8092

也遇到过这个问题,配置内核时有3个选项 一个是默认的ramdisk size 一个是ram数量 一个是默认的块size 那么假如我制作的ramdisk 要求16m 那么如何设置才能保证正常工作呢.

论坛徽章:
0
8 [报告]
发表于 2009-05-19 10:10 |只看该作者
你上面的串口输出限制是8192 这个数字是怎么算出来的呢

论坛徽章:
0
9 [报告]
发表于 2009-05-19 10:16 |只看该作者
经过测试,默认ramdisk size 大小设置成多少 串口输出的限制就*2 这个2是怎么的出来的呢

论坛徽章:
0
10 [报告]
发表于 2009-05-19 12:34 |只看该作者

回复 #9 allan-qyz 的帖子

我记得当时直接在uboot命令行设置ramdisk大小就行了哦
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP