LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1464|回复: 2

启动脚本linuxrc无法执行--增加出错信息

[复制链接]
发表于 2008-5-21 13:31:08 | 显示全部楼层 |阅读模式
我的linux_cmd_line "noinitrd root=/dev/mtdblock3 init=/linuxrc console=ttySAC0 ,115200

启动脚本文件linuxrc为:
#!/bin/sh

echo "mount /etc as ramfs"
/bin/mount -n -t ramfs ramfs /etc
/bin/cp -a /mnt/etc/* /etc

echo "re-create the /etc/mtab entries"
#re-create the /etc/mtab entries
/bin/mount -f -t cramfs -o remount,ro /dev/mtdblock/3 /

#!mount /proc as proc file system
echo"-----------mount /proc as proc"
/bin/mount -n -t proc none /proc

#!mount /sys as sysfs file system
echo "-----------mount /sys as sysfs"
/bin/mount -n -t sysfs none /sys
exec /sbin/init

用busybox自己生成的脚本能够执行。我把BUSYBOX生成的脚本linuxrc删除后,自己编辑的上面给出的linuxrc,出现如下错误:

Creating 5 MTD partitions on "NAND 64MiB 3,3V 8-bit":
0x00000000-0x00020000 : "vivi"
0x00020000-0x00030000 : "param"
0x00030000-0x00230000 : "kernel"
0x00230000-0x00530000 : "root"
0x00530000-0x04000000 : "usr"
mice: PS/2 mouse device common for all mice
ts: Compaq touchscreen protocol output
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
IPv4 over IPv4 tunneling driver
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Reading data from NAND FLASH without ECC is not recommended
VFS: Mounted root (cramfs filesystem) readonly.
Mounted devfs on /dev
Freeing init memory: 104K
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
发表于 2008-5-21 15:29:57 | 显示全部楼层
究竟是 "无法执行" 还是 "死掉"?

详细的描述信息是有必要的
回复 支持 反对

使用道具 举报

发表于 2008-5-21 16:24:26 | 显示全部楼层
Post by bsdhnit;1852825

/bin/mount -n -t ramfs armfs /etc  

ramfs armfs 有错误吧!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表