+ -
当前位置:首页 → 问答吧 → 为什么移植的linuxshell下不能执行./hello?

为什么移植的linuxshell下不能执行./hello?

时间:2008-01-19

来源:互联网

我最近在2410移植了一套vivi+2.6.22kernel+cramfs,交叉编译的内核模块能装载(insmod/rmmod没问题),可是在shell下运行我的测试hello程序,显示错误,我把sh切换成ash也是一样:(如下)

test和testhello都是交叉编译的用户态测试程序

报错解图
# ./test
sh: ./test: not found
# ./testhello
sh: ./testhello: not found

# ash
# ./test
ash: ./test: not found
# ./testhello
ash: ./testhello: not found

去掉./当然也不行
# testhello
-sh: testhello: not found

shell不能解释./test和./testhello,不知道是文件系统的问题(静态编译),还是kernel的问题,是不是哪里我配置的不对?

忘有经验的高手指点一下。


谢谢!      

作者: yanan_tian95   发布时间: 2008-01-19

用绝对路径看看      

作者: AIKO_sex   发布时间: 2008-01-19

谢谢,我试了,绝对路径也不行呀,也是报那样的错误
# /mydriver/test
    -sh: /mydriver/test: not found
# ./mydriver/test  
    -sh: ./mydriver/test: not found      

作者: yanan_tian95   发布时间: 2008-01-19

你是busybox吧

有runtime么      

作者: AIKO_sex   发布时间: 2008-01-21

是busybox呀,什么是runtime ?      

作者: yanan_tian95   发布时间: 2008-01-21

Runtime SUID/SGID configuration via /etc/busybox.conf ?这个我选了呀 ,可是我我有/etc/busybox.conf 文件呀,应该怎么弄呢?      

作者: yanan_tian95   发布时间: 2008-01-21