电子说
ec20
添加USB识别
添加配置到config.txt
echo -e "enable_uart=1 notg_mode=1" >> /boot/config.txt
也可以在Windows上,直接修改boot分区下的config.txt
安装ipk包
opkg update opkg install usb-modeswitch kmod-mii kmod-usb-net kmod-usb-wdm kmod-usb-net-qmi-wwan uqmi
可选ipk包
ADD SUPPORT FOR MBIM DEVICES
kmod-usb-net-cdc-mbim Kernel module for MBIM Devices
umbim MBIM modem utility
opkg update opkg install kmod-usb-net-cdc-mbim umbim
ADD SUPPORT FOR PC INTERFACE (TTYUSB0) - YOU NEED IT IF YOU WANT TO SEND AT COMMANDS, FOR EG. TO CHECK YOUR BALANCE BY USSD.
kmod-usb-serial-option
kmod-usb-serial
kmod-usb-serial-wwan
opkg update opkg install kmod-usb-serial-option kmod-usb-serial kmod-usb-serial-wwan
查看设备是否存在
安装lsusb命令,可不装
opkg update opkg install usbutils
重启设备应用驱动程序
lsusb Bus 002 Device 001: ID 1d6b:0003 Linux 5.10.161 xhci-hcd xHCI Host Controller Bus 001 Device 003: ID 0424:9e00 Bus 001 Device 006: ID 2c7c:0125 Quectel EC25-EUX Bus 001 Device 002: ID 1a40:0201 USB 2.0 Hub [MTT] Bus 001 Device 001: ID 1d6b:0002 Linux 5.10.161 xhci-hcd xHCI Host Controller
此时已经可以查看到EC25
编译拨号软件
下载Quectel_QConnectManager_Linux软件拨号
Quectel_QConnectManager_Linux
因为扩展了系统空间,选择直接将此压缩包放在openwrt设备上解压
opkg update && opkg install unzip make gcc #解压压缩包 unzip Quectel_QConnectManager_Linux_V1.6.0.16.zip
编译
在编译过程中发现缺失两个lib库 pthread,dl
选择从工具链中直接复制两个库到设备
下载工具链并解压到linux系统下
# 文件位置 # pthread < YourPath >/openwrt-toolchain-22.03.2-bcm27xx-bcm2711_gcc-11.2.0_musl.Linux-x86_64/toolchain-aarch64_cortex-a72_gcc-11.2.0_musl/lib/libpthread.a # dl < YourPath >/openwrt-toolchain-22.03.2-bcm27xx-bcm2711_gcc-11.2.0_musl.Linux-x86_64/toolchain-aarch64_cortex-a72_gcc-11.2.0_musl/lib/libdl.a
将这两个文件放到openwrt系统/usr/lib目录下,然后进入刚才解压拨号软件的文件夹中,执行make命令
cd quectel-CM make release
等待执行结束即可得到quectel-CM二进制文件,执行后即可拨号
./quectel-CM
审核编辑 黄宇
全部0条评论
快来发表一下你的评论吧 !