busybox 的insmod can't insert operation not permitted 错误解决
来源:互联网 发布:出售淘宝0心店铺 编辑:程序博客网 时间:2024/05/16 07:16
busybox 的insmod can't insert operation not permitted 错误解决
1. 起因
因为要在Mac OS X操作一款Tiny2451的开发板。原本通过串口转USB线进入shell操作 但是Mac OS X 不认识这款非PL2303的USB串口线。
没办法之下,使用网线与电脑直联,用telnet 192.168.1.230 登录上,但是发现只能用用户名plg和密码plg登录。
hxy$ telnet 192.168.1.230Trying 192.168.1.230...Connected to 192.168.1.230.Escape character is '^]'.Kernel 3.6.0-FriendlyARM on (/dev/pts/0)FriendlyARM login: plgPassword: [plg@FriendlyARM plg]#
进去可操作,但是操作insmod 即有错。
/sbin/insmod ov7740_dev.koinsmod: can't insert './cmos_ov7740_dev.ko': Operation not permitted
经过搜索类似问题,原因在于insmod 必须用root用户来执行,错误提示就是权限不够。
2.解决办法
执行如下命令切换到root用户,然后再执行insmod命令即可。
su root
即可执行,但是有的会执行失败。提示
su: must be suid to work properly
这是busybox 本身权限不够,需要用如下命令修改权限
chmod 4755 busybox
chmod 4755与chmod 755 的区别在于开头多了一位,这个4表示其他用户执行文件时,具有与所有者相当的权限。一般拥有root权限,这个命令必须联接在串口用root用户操作才行。
0 0
- busybox 的insmod can't insert operation not permitted 错误解决
- 解决错误。remount failed:Operation not permitted
- linux操作提示:“Can't open file for writing”或“operation not permitted”的解决办法
- linux操作提示:“Can't open file for writing”或“operation not permitted”的解决办法
- 解决MacOS无法挂载NFS,Operation not permitted错误
- XenOprof 错误 Failed to open profile device: Operation not permitted 的解决
- insmod: error inserting 'hello.ko': -1 Operation not permitted
- insmod问题: init_module xxxxx.ko' failed (Operation not permitted)
- insmod: can't insert 'xxx.ko': Success
- svn: Can't move '.svn/tmp/entries' to '.svn/entries': Operation not permitted
- svn: Can't move '.svn/tmp/entries' to '.svn/entries': Operation not permitted
- CentOS6.5 上 DHCP 不能启动 Can't chown new lease file: Operation not permitted
- MAC /usr/bin/目录下 Operation not permitted的解决
- 驱动模块加载错误:insmod: can't insert 'xx.ko': invalid module format
- 模块插入错误 insmod: can't insert 'memdev.ko': Device or resource busy
- 模块插入错误 insmod: can't insert 'memdev.ko': Device or resource busy
- The operation couldn’t be completed. Operation not permitted
- QtCreator: ptrace operation not permitted错误解决方法
- ctype.h
- Service与Android系统设计(6)--- Native Service
- Eclipse / 命令行 创建多模块的Maven项目(父模块,子模块)
- LASIImageView - 显示进度指示并异步下载图片
- Java线程池管理及分布式Hadoop调度框架搭建
- busybox 的insmod can't insert operation not permitted 错误解决
- 学习iOS开发的建议:如何从菜鸟到专家
- Linux设备驱动模型之Kobject
- <category>
- <compatible-screens>
- 如何学习Cocoa
- <data>
- <grant-uri-permission>
- <instrumentation>