发新话题
打印

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

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

我最近在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的问题,是不是哪里我配置的不对?

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


谢谢!      

TOP

用绝对路径看看      
象一阵风 拂过我身边 忽然间 想要去很远 和你去看繁华世界

TOP

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

TOP

你是busybox吧

有runtime么      
象一阵风 拂过我身边 忽然间 想要去很远 和你去看繁华世界

TOP

是busybox呀,什么是runtime ?      

TOP

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

TOP

发新话题