简体   繁体   English

无法执行/ usr / bin / qmicli:没有这样的文件或目录

[英]unable to execute /usr/bin/qmicli: No such file or directory

I am using linux kernel 3.6.9 with Sierra wireless MC7354. 我正在将Linux内核3.6.9与Sierra无线MC7354配合使用。 This module plugged with Verizon wireless activated sim card with ARM9 processor based embedded board. 该模块插入了Verizon无线激活sim卡以及基于ARM9处理器的嵌入式板。 By enabling kernel qcserial driver and qmi_wwan drivers, we are able to get ifconfig –a command output as follows: 通过启用内核qcserial驱动程序和qmi_wwan驱动程序,我们可以获取ifconfig –a命令输出,如下所示:

wwan0 Link encap:Ethernet HWaddr 1A:11:193:11:11
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

To establish broadband connection, thought of speak with modem by using libqmi protocol approach. 要建立宽带连接,可以想到使用libqmi协议方法与调制解调器通话。 Downloaded libqmi-1.12.6 in my development Ubuntu machine and configured with ARM compiler. 在我的开发Ubuntu计算机上下载了libqmi-1.12.6,并使用ARM编译器进行了配置。

After making, moved qmi-network qmicli qmi-proxy programs to my actual embedded board usr/bin folder and 制作完成后,将qmi-network qmicli qmi-proxy程序移到我的实际嵌入式板usr / bin文件夹中,

libqmi-glib.so, libqmi-glib.so.1 and libqmi-glib.so.1.3.0 to usr/lib folders. libqmi-glib.so,libqmi-glib.so.1和libqmi-glib.so.1.3.0到usr / lib文件夹。

(Can't install actual target board with limited memory card limitations). (不能在存储卡限制有限的情况下安装实际目标板)。

When I try to run 当我尝试跑步

./qmi-network /dev/cdc-wdm0 status

Getting following error: 出现以下错误:

Loading profile...
APN: VZW
Getting status with 'qmicli -d /dev/cdc-wdm0 --wds-get-packet-service-status '...
./qmi-network: line 257: qmicli: not found
error: couldn't get packet service status

Some reason I couldn't able to run qmicli program in my target board. 由于某些原因,我无法在目标板上运行qmicli程序。 Can anyone help me on this…. 谁可以帮我这个事…。

Looks like I am missing copying some dependencies from my linux development machine to target ARM platform. 看来我缺少从Linux开发机复制某些依赖项到目标ARM平台的想法。

Thanks, 谢谢,

Thanks you for your suggestion Marco. 谢谢您的建议Marco。

Some reason I couldn't able to run qmicli program in my target board. 由于某些原因,我无法在目标板上运行qmicli程序。 Can anyone help me on this…. 谁可以帮我这个事…。

Actual cause of this problem is with wrong cross compile options selected while configuring and building libqmi libraries. 造成此问题的实际原因是在配置和构建libqmi库时选择了错误的交叉编译选项。

After rebuilding, able to execute qmicli commands. 重建后,能够执行qmicli命令。

Thanks. 谢谢。

qmi-network relies on qmicli being in the $PATH, I guess that's your issue. qmi-network依赖于$ PATH中的qmicli,我想这是您的问题。

BUT, the location of the qmi-proxy binary is chosen during compilation of libqmi; 但是,在编译libqmi时会选择qmi-proxy二进制文件的位置。 it is set to the " --libexec= " defined or to the default one ( $prefix/libexec ) if none specified. 如果未指定,则设置为定义的“ --libexec= ”或默认值( $prefix/libexec )。

A usual compilation would use --prefix=/usr during configure, and this will end up installing: 在配置过程中,通常的编译将使用--prefix=/usr ,最终将安装:

/usr/bin/qmicli
/usr/bin/qmi-network
/usr/lib/libqmi.*
/usr/libexec/qmi-proxy

I'd suggest you first try to play with qmicli directly, and only once everything works, play with qmi-network (which is just a wrapper script on top of qmicli). 我建议您首先尝试直接与qmicli一起玩,并且只有在一切正常后,才能与qmi-network(这只是qmicli之上的包装脚本)一起玩。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM