(笔记)编译quectel-CM
·
下载
git clone https://github.com/quectel-open-source/Quectel_QConnectManager_Linux.git
编译成静态文件
make clean
make CROSS_COMPILE=arm-linux-gnueabihf- \
CC="arm-linux-gnueabihf-gcc -static" \
EXTRA_CFLAGS="-Os -s" \
EXTRA_LDFLAGS="-static" \
LDLIBS="-Wl,-Bstatic -lpthread -lc -ldl -lrt -Wl,-Bdynamic"
最终会编译成一个quectel-CM文件
查看是否编译成功
file quectel-CM
readelf -d quectel-CM | grep NEEDED
如果输出中没有NEEDED关键字就说明编译成静态文件了
推送到板子上
adb push quectel-CM /system/bin
adb shell chmod 755 /system/bin/quectel-CM
如果显示只读,就重新挂载下再push
adb root
adb remount
更多推荐



所有评论(0)