搜索

7

主题

7

帖子

72

积分

注册会员

Rank: 2

积分
72
发表于 2020-12-23 13:18:08 12620 浏览 1 回复

开发板无法执行helloworld

linux虚拟机下执行 arm-none-linux-gnueabi-gcc -o helloworld helloworld.c -static
编译helloworld 拷贝到u盘 在开发板上加载u盘以后 执行 ./helloworld
提示 /system/bin/sh: ./helloworld: cannot execute - Permission denied

在虚拟机下使用 chmod 修改权限以后 重新拷贝执行文件到u盘 还是提示一样的问题

126|root@android:/mnt/udisk1 # chmod 777 helloworld                           
root@android:/mnt/udisk1 # ./helloworld                                       
/system/bin/sh: ./helloworld: cannot execute - Permission denied


有没有路过的大神帮忙看看,感激不尽
回复

使用道具 举报

151

主题

508

帖子

3567

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3567
发表于 2020-12-28 09:55:37
权限不足有可能是所链接库的权限问题,可以用动态方式编译一下试试
回复 点赞

使用道具 举报

返回列表
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

登录或注册

官方客服

QQ:2551456065

官方QQ群

195631883

扫一扫关注迅为公众号

群号652692981

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