Failed to execute /linuxrc. Attempting defaults...

Failed to execute /linuxrc. Attempting defaults...

boot ram 0x30008000
Copy linux kernel from 0xea0000b1 to 0x30008000, size = 0xea0000b3 ... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0,115200"
MACH_TYPE = 193
NOW, Booting Linux......
Uncompressing Linux................................................................................. done, boo.
Linux version 2.6.14 (root@ubuntu) (gcc version 3.4.1) #8 Thu Jul 12 20:06:31 CST 2007
CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)
Machine: SMDK2410
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410A (id 0x32410002)
S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz
S3C2410 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
Kernel command line: noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0,115200
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
PID hash table entries: 512 (order: 9, 8192 bytes)
timer tcon=00000000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 64MB = 64MB total
Memory: 62208KB available (2084K code, 418K data, 96K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
softlockup thread 0 started up.
NET: Registered protocol family 16
S3C2410: Initialising architecture
S3C2410 DMA Driver, (c) 2003-2004 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
NetWinder Floating Point Emulator V0.97 (double precision)
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
Initializing Cryptographic API
Console: switching to colour frame buffer device 80x25
fb0: Virtual frame buffer device, using 1024K of video memory
S3C2410 RTC, (c) 2004 Simtec Electronics
s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2410-nand: mapped registers at c4980000
s3c2410-nand: timing: Tacls 10ns, Twrph0 40ns, Twrph1 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 !!

Creating 5 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00020000 : "vivi"
0x00020000-0x00030000 : "param"
0x00030000-0x001f0000 : "kernel"
0x00200000-0x00220000 : "root"
0x00400000-0x040f8000 : "user"
mtd: partition "user" extends beyond the end of device "NAND 64MiB 3,3V 8-bit" -- size truncated to 0x3c00000
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
Reading data from NAND FLASH without ECC is not recommended
VFS: Mounted root (cramfs filesystem) readonly.
Mounted devfs on /dev
Freeing init memory: 96K
Error -3 while decompressing!
c036c3f0(-977428)->c3e01000(4096)
Error -3 while decompressing!
c02823f8(-1104412)->c3e02000(4096)
Failed to execute /linuxrc. Attempting defaults...
Kernel panic - not syncing: No init found. Try passing init= option to kernel

烧写完毕重启后出现如下错误:
Failed to execute /linuxrc, Attepting defualts
Kernel panic - not syncing: No init found, Try passing init=option to kernel

在网上搜了不少帖子,检查过启动参数设置,选择shell等常犯的错误后问题依旧。后来看到以为网友建议检查kernel和
文件系统的pagesize大小是否一致,也就是说俩个必须得一致。
Device Drivers
=>Block Device
=>(4096)Default Ram disk size

现在的问题是制作文件系统时如何设置相应的pagesize为4096

前两天也碰到,后来重新配置busybox后制作cramfs,就没再报那个错了.把ash下子选项全选中,另外,busybox会覆盖linuxrc,需要备份再拷回来,另外,设置775属性.

尝试了几次 busybox1.1.3 的还是无法启动起来.不知道有没有大侠移植 1.1.3时成功过.无奈只好换到busybox1.00版本.这次比较走运可以运行了.

“Error -3 while decompressing!“, 这是fs/cramfs/uncompress.c在解压的时候出的问题,原因还没搞清楚

所有的nandflash都有坏块,如果你能烧写完成证明已经跳过坏块.
检查你传的启动参数是否完全,如果还是不行就只能加入ecc校验机制,可以使能linux内核的ecc校验功能,但前提是bootloader烧写时支持ecc写入.这个在我们的板子重新去做的话不如直接换个flash

可以先看看你烧进去的cramfs映像是否正确,可以用cramfsck -x dir cramfs_image试一下,如果能正常运行,说明映像本身没问题。
还有就是烧到flash的文件系统损坏,这可能是由于与硬件有关,如果你在其它情况下系统能正常运行的话,那应该也不是这个问题了。
另外还有可能就是你的linuxrc本身有问题,最后信息提示找不到init进程哦。

我的文件系统是cramfs,/lib采用glibc2.3.2的库的时候就会出现以下错误:
VFS: Mounted root (cramfs filesystem) readonly.
Mounted devfs on /dev
Freeing init memory: 72K
Error -3 while decompressing!
c049e008(-2986576)->c0390000(4096)
Error -3 while decompressing!
c04a0824(-2996844)->c0391000(4096)
Error -3 while decompressing!
c04a0824(-2996844)->c0392000(4096)
Kernel panic - not syncing: No init found. Try passing init= option to kernel.

而换成glibc2.2.2的库一切正常, VFS: Mounted root (cramfs filesystem) readonly.
Mounted devfs on /dev
Freeing init memory: 72K
mount /etc as ramfs
re-create the /etc/mtab entries
mount: Mounting tmpfs on /dev/shm failed: No such file or directory
exec: 3: /usr/etc/rc.local: not found

Please press Enter to activate this console.


 

根文件系统,实际上要修改 /mtd/nand/s3c2410.c 的eec ,要改成 chip->eccmode =NAND_ECC_NONE;

这样基本可以解决类似

romfs: unable to read superblock

VFS: Cannot open root device "mtdblock3" or unknown-block(2,0)
的错。


 

Failed to execute /linuxrc. Attempting defaults...

Kernel panic - not syncing: No init found. Try passing init= option to kernel.

我前两天也碰到,后来重新配置busybox后制作cramfs,就没再报那个错了.把ash下子选项全选中,另外,busybox会覆盖linuxrc,需要备份再拷回来,另外,设置775属性.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值