主题 : 想把移植好的Android系统中dev目录下面的tty设备文件复制到sd卡中时出现没有权限 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 12299
精华: 0
发帖: 13
金钱: 65 两
威望: 13 点
贡献值: 0 点
综合积分: 26 分
注册时间: 2010-01-04
最后登录: 2010-02-08
楼主  发表于: 2010-02-03 12:09

 想把移植好的Android系统中dev目录下面的tty设备文件复制到sd卡中时出现没有权限

异常如下:
cp: cannot create './tty9': Operation not permitted
我应该是以root用户进入到android的系统中,怎么会不能cp呢,并且我都chmod 777 /dev/* 去修改权限了。请斑竹帮我看一下是怎么回事
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-02-03 13:56
在android上,所有的设备节点都是由init进程在初始化过程中动态创建的,你为什么要把它们复制出来?
"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: 12299
精华: 0
发帖: 13
金钱: 65 两
威望: 13 点
贡献值: 0 点
综合积分: 26 分
注册时间: 2010-01-04
最后登录: 2010-02-08
2楼  发表于: 2010-02-03 15:38
我想采用nfs方式挂载文件系统时在dev目录下面放置这些设备文件,就不用自己去创建了,这个想法是否有问题呀
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2010-02-03 16:51

 回 2楼(wangjh0601) 的帖子

是的,就算是nfs的时候完整的设备节点也应该由andorid的init进程创建。可能你只需要在nfs目录的dev目录下用创建console和null节点
"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: 12299
精华: 0
发帖: 13
金钱: 65 两
威望: 13 点
贡献值: 0 点
综合积分: 26 分
注册时间: 2010-01-04
最后登录: 2010-02-08
4楼  发表于: 2010-02-03 17:16
这个问题我解决了,请教一下斑竹,在nfs挂载android系统启动过程中要用到几个启动脚本文件(如/etc/init.d/rcS等),这些文件是否都要自己配置的呀
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
5楼  发表于: 2010-02-03 17:58
Android的init进程不需要/etc/init.d/rcS这些脚本。
"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."