ec20
添加USB識(shí)別
添加配置到config.txt
echo -e "enable_uart=1 notg_mode=1" >> /boot/config.txt
也可以在Windows上,直接修改boot分區(qū)下的config.txt
安裝ipk包
opkg update opkg install usb-modeswitch kmod-mii kmod-usb-net kmod-usb-wdm kmod-usb-net-qmi-wwan uqmi
可選ipk包
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
查看設(shè)備是否存在
安裝lsusb命令,可不裝
opkg update opkg install usbutils
重啟設(shè)備應(yīng)用驅(qū)動(dòng)程序
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
此時(shí)已經(jīng)可以查看到EC25
編譯撥號(hào)軟件
下載Quectel_QConnectManager_Linux軟件撥號(hào)
Quectel_QConnectManager_Linux
因?yàn)閿U(kuò)展了系統(tǒng)空間,選擇直接將此壓縮包放在openwrt設(shè)備上解壓
opkg update && opkg install unzip make gcc #解壓壓縮包 unzip Quectel_QConnectManager_Linux_V1.6.0.16.zip
編譯
在編譯過(guò)程中發(fā)現(xiàn)缺失兩個(gè)lib庫(kù) pthread,dl
選擇從工具鏈中直接復(fù)制兩個(gè)庫(kù)到設(shè)備
下載工具鏈并解壓到linux系統(tǒng)下
# 文件位置 # pthread /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 /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
將這兩個(gè)文件放到openwrt系統(tǒng)/usr/lib目錄下,然后進(jìn)入剛才解壓撥號(hào)軟件的文件夾中,執(zhí)行make命令
cd quectel-CM make release
等待執(zhí)行結(jié)束即可得到quectel-CM二進(jìn)制文件,執(zhí)行后即可撥號(hào)
./quectel-CM
審核編輯黃宇
-
4G
+關(guān)注
關(guān)注
15文章
5517瀏覽量
118974 -
OpenWrt
+關(guān)注
關(guān)注
10文章
130瀏覽量
39296 -
樹(shù)莓派
+關(guān)注
關(guān)注
116文章
1706瀏覽量
105607
發(fā)布評(píng)論請(qǐng)先 登錄
相關(guān)推薦
評(píng)論