主题 : cm10 for tiny210v2 复制链接 | 浏览器收藏 | 打印
咕唧咕唧
级别: 侠客
UID: 30422
精华: 1
发帖: 114
金钱: 620 两
威望: 124 点
贡献值: 1 点
综合积分: 248 分
注册时间: 2010-10-16
最后登录: 2016-05-27
10楼  发表于: 2013-04-23 22:31
牛人牛人啊
级别: 新手上路
UID: 2039
精华: 0
发帖: 19
金钱: 115 两
威望: 35 点
贡献值: 0 点
综合积分: 38 分
注册时间: 2008-10-20
最后登录: 2013-06-01
11楼  发表于: 2013-05-19 16:12

 请问init.rc如何修改?出现init: cannot execve xxxx Permission denied

tiny210 上的,出现一堆init: cannot execve('/system/bin/keystore'): Permission denied是咋回事
uboot 的启动参数,使用友善提供的linux3.08内核。
baudrate=115200
bootargs= console=ttySAC0,115200 root=/dev/mmcblk0p3 rw rootfstype=ext4 rootdelay=1 init=/init lcd=H43
bootcmd=fatload mmc 0:1 0x20000000 uImage ; bootm 0x20000000
bootdelay=3
ethact=dm9000
ethaddr=00:40:5c:26:0a:5b
gatewayip=192.168.0.1
ipaddr=192.168.186.13
netmask=255.255.255.0
serverip=192.168.186.13
stderr=serial
stdin=serial
stdout=serial

Environment size: 396/16380 bytes

出现如下:已经确认system/bin 权限,改为777也无济于事。请问init.rc如何修改?
[    2.824090] regulator_init_complete: pd_mfc_supply: disabling
[    2.829255] regulator_init_complete: pd_tv_supply: disabling
[    2.834926] s3c-rtc s3c64xx-rtc: rtc disabled, re-enabling
[    2.840358] s3c-rtc s3c64xx-rtc: setting system clock to 2012-01-02 01:41:57 UTC (1325468517)
[    2.851999] FIMC0 registered successfully
[    2.854168] FIMC1 registered successfully
[    2.858198] FIMC2 registered successfully
[    2.860895] S5PC1XX TVOUT Driver, (c) 2009 Samsung Electronics
[    2.867165] s5p-tvout s5p-tvout: hpd status is cable removed
[    2.878586] Waiting 1sec before mounting root device...
[    6.872974] EXT4-fs (mmcblk0p3): recovery complete
[    6.880442] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
[    6.880546] VFS: Mounted root (ext4 filesystem) on device 179:3.
[    6.880647] Freeing init memory: 188K
[    6.914379] init (1): /proc/1/oom_adj is deprecated, please use /proc/1/oom_score_adj instead.
[    7.040025] init: cannot open '/initlogo.rle'
[    7.083350] init: cannot execve('/system/bin/dbus-daemon'): Permission denied
[    7.084441] init: cannot execve('/system/bin/mediaserver'): Permission denied
[    7.084902] init: cannot execve('/system/bin/drmserver'): Permission denied
[    7.085830] init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
[    7.093798] android_usb: already disabled
[    7.095501] android_usb: already disabled
[    7.099811] init: cannot execve('/system/bin/keystore'): Permission denied
[    7.105914] adb_bind_config
[    7.109474] android_work: did not send uevent (0 0   (null))
[    7.250641] warning: `adbd' uses 32-bit capabilities (legacy support in use)
root@android:/ # [    7.519557] PVR_K:(Warning): SysFinalise: Version string: SGX540 S5PC110 [543, drivers/gpu/pvr/s5pc110/sysconfig.c]
[    7.952352] init: cannot execve('/system/bin/bootanimation'): Permission denied
[    8.589549] request_suspend_state: wakeup (3->0) at 8106484085 (2012-01-02 01:42:03.244564336 UTC)
[    8.591219] init: untracked pid 1502 exited
[    8.599767] init: cannot execve('/system/bin/mediaserver'): Permission denied
[   11.602086] init: cannot execve('/system/bin/keystore'): Permission denied
[   11.602700] init: cannot execve('/system/bin/dbus-daemon'): Permission denied
[   11.603232] init: cannot execve('/system/bin/drmserver'): Permission denied
[   12.265500] request_suspend_state: wakeup (0->0) at 11782436487 (2012-01-02 01:42:06.920516946 UTC)
[   12.267387] init: untracked pid 1767 exited
[   12.269771] init: cannot execve('/system/bin/mediaserver'): Permission denied
[   17.274202] init: cannot execve('/system/bin/keystore'): Permission denied
[   17.274471] init: cannot execve('/system/bin/dbus-daemon'): Permission denied
[   17.275269] init: cannot execve('/system/bin/mediaserver'): Permission denied
[   17.275750] init: cannot execve('/system/bin/drmserver'): Permission denied
[   17.901593] request_suspend_state: wakeup (0->0) at 17418530323 (2012-01-02 01:42:12.556610074 UTC)
[   17.903208] init: untracked pid 1982 exited
[   17.910117] init: cannot execve('/system/bin/mediaserver'): Permission denied

                                                                    
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
12楼  发表于: 2013-05-19 17:30

 回 12楼(飘之叶) 的帖子

能否把你现在文件系统镜像里的init.rc打包传上来看看?
"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: 2039
精华: 0
发帖: 19
金钱: 115 两
威望: 35 点
贡献值: 0 点
综合积分: 38 分
注册时间: 2008-10-20
最后登录: 2013-06-01
13楼  发表于: 2013-05-19 22:26
我是按照楼主的方法修改,直接把文件拷贝到SDcard 里面的,也试着换了友善4.0.3文件系统里面的init.rc也是同样的结果。附件是CM10.1用的的的init.rc.多谢帮忙看看。
级别: 新手上路
UID: 2039
精华: 0
发帖: 19
金钱: 115 两
威望: 35 点
贡献值: 0 点
综合积分: 38 分
注册时间: 2008-10-20
最后登录: 2013-06-01
14楼  发表于: 2013-05-20 22:06
问题解决了 在使用gnome-disk-unitily 格式化SD卡的时候默认使用了 "take ownership of filesystem“把这个选项取消掉即可。
级别: 新手上路
UID: 2039
精华: 0
发帖: 19
金钱: 115 两
威望: 35 点
贡献值: 0 点
综合积分: 38 分
注册时间: 2008-10-20
最后登录: 2013-06-01
15楼  发表于: 2013-05-20 23:13
之前的问题解决了不过还有一堆问题
[    7.687245] init: untracked pid 1848 exited
[   11.367917] request_suspend_state: wakeup (0->0) at 10888571732 (2012-01-02 22:12:48.022120316 UTC)
[   11.370463] init: untracked pid 1849 exited
[   11.371382] init: untracked pid 1850 exited
[   17.005500] request_suspend_state: wakeup (0->0) at 16526157399 (2012-01-02 22:12:53.659705858 UTC)
[   17.008202] init: untracked pid 2063 exited
[   17.009192] init: untracked pid 2064 exited
[   21.329502] request_suspend_state: wakeup (0->0) at 20850162267 (2012-01-02 22:12:57.983710975 UTC)
[   21.332012] init: untracked pid 2277 exited
[   21.333121] init: untracked pid 2278 exited
[   28.198383] request_suspend_state: wakeup (0->0) at 27719046569 (2012-01-02 22:13:04.852594903 UTC)
[   28.203712] init: untracked pid 2491 exited
[   28.204714] init: untracked pid 2492 exited
[   31.884402] request_suspend_state: wakeup (0->0) at 31405066388 (2012-01-02 22:13:08.538615138 UTC)
[   31.886899] init: untracked pid 2705 exited
[   31.887831] init: untracked pid 2706 exited
[   36.216379] request_suspend_state: wakeup (0->0) at 35737046754 (2012-01-02 22:13:12.870595254 UTC)
[   36.218914] init: untracked pid 2919 exited
[   36.219899] init: untracked pid 2920 exited
[   41.557421] request_suspend_state: wakeup (0->0) at 41078091421 (2012-01-02 22:13:18.211639879 UTC)
[   41.560000] init: untracked pid 3133 exited
附件: init.tar.gz (5 K) 下载次数:4
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
16楼  发表于: 2013-05-21 12:41

 回 16楼(飘之叶) 的帖子

用logcat看一下Android的log?
"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: 2039
精华: 0
发帖: 19
金钱: 115 两
威望: 35 点
贡献值: 0 点
综合积分: 38 分
注册时间: 2008-10-20
最后登录: 2013-06-01
17楼  发表于: 2013-05-22 22:36
logcat
显示
复制代码
  1. D/AndroidRuntime( 2691): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
  2. D/AndroidRuntime( 2691): CheckJNI is OFF
  3. E/dalvikvm( 2691): Could not stat dex cache directory '/cache/dalvik-cache': No such file or directory
  4. I/dalvikvm( 2691): Unable to open or create cache for /system/framework/core.jar (/cache/dalvik-cache/system@framework@core.jar@classes.dex)
  5. D/dalvikvm( 2691): Unable to process classpath element '/system/framework/core.jar'
  6. E/dalvikvm( 2691): Could not stat dex cache directory '/cache/dalvik-cache': No such file or directory
  7. I/dalvikvm( 2691): Unable to open or create cache for /system/framework/core-junit.jar (/cache/dalvik-cache/system@framework@core-junit.jar@classes.dex)
  8. D/dalvikvm( 2691): Unable to process classpath element '/system/framework/core-junit.jar'
  9. E/dalvikvm( 2691): Could not stat dex cache directory '/cache/dalvik-cache': No such file or directory
  10. I/dalvikvm( 2691): Unable to open or create cache for /system/framework/bouncycastle.jar (/cache/dalvik-cache/system@framework@bouncycastle.jar@classes.dex)
  11. D/dalvikvm( 2691): Unable to process classpath element '/system/framework/bouncycastle.jar'

在ini.rc中添加
复制代码
  1.     mkdir /cache/dalvik-cache 0777 system system
  2.     chown system system /cache/dalvik-cache
  3.     chmod 0777 /cache/dalvilk-cache

就可以看到桌面,不过
狂打
[   20.303707] android_usb: already disabled
[   20.306580] android_usb: already disabled
[   20.315713] android_usb: already disabled
[   20.315932] android_usb: already disabled
[   20.318971] android_usb: already disabled
[   20.322924] android_usb: already disabled
[   20.326568] android_usb: already disabled
[   20.331555] android_usb: already disabled
[   20.335029] android_usb: already disabled
[   20.338475] android_usb: already disabled
[   20.342504] android_usb: already disabled
老大还有其他招没有?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
18楼  发表于: 2013-05-23 12:31

 回 18楼(飘之叶) 的帖子

建议一个帖子讨论一个问题。
[   20.303707] android_usb: already disabled

这是内核打印出来的调试信息,你可以试试先从内核源代码里把打印这个信息的地方找出来,看看为什么会打印它。
"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: 90281
精华: 0
发帖: 5
金钱: 25 两
威望: 5 点
贡献值: 0 点
综合积分: 10 分
注册时间: 2013-04-15
最后登录: 2013-09-06
19楼  发表于: 2013-05-25 18:27
很好,很强大,这个必须顶起。
学习啦
学而时习之,不亦乐乎!