主题 : 制作文件系统到mini2440上出现的问题? 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 8515
精华: 0
发帖: 62
金钱: 535 两
威望: 233 点
综合积分: 124 分
注册时间: 2009-08-26
最后登录: 2014-06-25
楼主  发表于: 2009-10-09 10:37

 制作文件系统到mini2440上出现的问题?

VFS: Mounted root (nfs filesystem).
Freeing init memory: 116K
init started: BusyBox v1.7.0 (2009-10-08 10:08:03 CST)
starting pid 717, tty '': '/etc/init.d/rcS'

process '/bin/sh' (pid 739) exited. Scheduling it for restart.
process '/bin/sh' (pid 740) exited. Scheduling it for restart.
process '/bin/sh' (pid 741) exited. Scheduling it for restart.
process '/bin/sh' (pid 742) exited. Scheduling it for restart.
process '/bin/sh' (pid 743) exited. Scheduling it for restart.
process '/bin/sh' (pid 744) exited. Scheduling it for restart.

starting pid 738, tty '': '/bin/sh'
process '/bin/sh' (pid 745) exited. Scheduling it for restart.

#
#
#
process '/bin/sh' (pid 746) exited. Scheduling it for restart.

process '/bin/sh' (pid 747) exited. Scheduling it for restart.
process '/bin/sh' (pid 748) exited. Scheduling it for restart.
process '/bin/sh' (pid 749) exited. Scheduling it for restart.
process '/bin/sh' (pid 750) exited. Scheduling it for restart.
process '/bin/sh' (pid 751) exited. Scheduling it for restart.
process '/bin/sh' (pid 752) exited. Scheduling it for restart.
使用nfs启动系统后一直出现process '/bin/sh' (pid 752) exited. Scheduling it for restart.不知道怎么解决?求高手指点。回车后可以输入命令,但是没有显示用户名,而只有#,而不是像这样的提示符[root@gui root]# ,是什么原因呢?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-10-09 11:13
"process '/bin/sh' (pid 752) exited. Scheduling it for restart"是因为/bin/sh进程异常退出了,init进程在不停的重新launch它;
提示符问题是busybox shell的设置问题;
"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: 8515
精华: 0
发帖: 62
金钱: 535 两
威望: 233 点
综合积分: 124 分
注册时间: 2009-08-26
最后登录: 2014-06-25
2楼  发表于: 2009-10-09 11:39
谢谢版主,那么该如何解决呢?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2009-10-09 11:45
提示符的问题很好解决,在busybox的配置里选中"Fancy shell prompts"就可以了。
/bin/sh退出的问题比较麻烦,因为我不知道它为什么异常退出
"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: 8515
精华: 0
发帖: 62
金钱: 535 两
威望: 233 点
综合积分: 124 分
注册时间: 2009-08-26
最后登录: 2014-06-25
4楼  发表于: 2009-10-09 12:03
在/etc/init.d/rcS中家上/bin/mount -t ramfs none /dev这个就退出了,不加上就好了。可是系统/dev目录下没有设备文件,而/proc有。
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
5楼  发表于: 2009-10-09 12:26
“/bin/mount -t ramfs none /dev”的意思是在/dev目录下挂载ramfs,这通常是为了给通过mdev或udev这样的东西在/dev目录下动态创建设备节点准备的。当然前提是你的内核必须支持ramfs(可以通过cat  /proc/filesystems的输出查询)
关于mdev在友善之臂提供的root_qtopia文件系统里的应用,参考我以前的帖子 http://www.aiothome.com/bbs/read.php?tid-1702.html
"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: 8515
精华: 0
发帖: 62
金钱: 535 两
威望: 233 点
综合积分: 124 分
注册时间: 2009-08-26
最后登录: 2014-06-25
6楼  发表于: 2009-10-09 14:38
cat /proc/devices
Character devices:
  1 mem
  2 pty
  3 ttyp
  4 /dev/vc/0
  4 tty
  4 ttyS
  5 /dev/tty
  5 /dev/console
  5 /dev/ptmx
  6 lp
  7 vcs
10 misc
13 input
29 fb
90 mtd
99 ppdev
128 ptm
136 pts
180 usb
189 usb_device
204 s3c2410_serial
253 usb_endpoint
254 rtc


/dev # ls
console    mtdblock1  null       shm        tty1       ttyS0      ttySAC1
mtdblock0  mtdblock2  pts        tty0       tty2       ttySAC0
/dev目录下只有这些设备文件好像不正常啊!什么原因呢?