嵌入式Linu下3G模块的驱动和应用.doc

上传人:m**** 文档编号:561816464 上传时间:2023-05-12 格式:DOC 页数:28 大小:79.25KB
返回 下载 相关 举报
嵌入式Linu下3G模块的驱动和应用.doc_第1页
第1页 / 共28页
嵌入式Linu下3G模块的驱动和应用.doc_第2页
第2页 / 共28页
嵌入式Linu下3G模块的驱动和应用.doc_第3页
第3页 / 共28页
嵌入式Linu下3G模块的驱动和应用.doc_第4页
第4页 / 共28页
嵌入式Linu下3G模块的驱动和应用.doc_第5页
第5页 / 共28页
点击查看更多>>
资源描述

《嵌入式Linu下3G模块的驱动和应用.doc》由会员分享,可在线阅读,更多相关《嵌入式Linu下3G模块的驱动和应用.doc(28页珍藏版)》请在金锄头文库上搜索。

1、嵌入式 Linux 下 3G 模块的驱动和应用1、开发资源1.1 、硬件资源:ZTE-mf637u中国联通 ZTE-mu351中国移动1.2 、软件资源:1.2.1 、usb-modeswitch-1.1.3 libusb-0.1.12.tar.gzusb-modeswitch-1.1.3.tar.bz21.2.2、ppp-2.4.4 libpcap-0.9.8.tar.gz ppp-2.4.4.tar.gz1.2.3 、wvdial1.2.3.1 、wvdial-1.54.0(arm-linux-gcc 3.4.1) zlib-1.2.5.tar.bz2openssl-0.9.7g.tar.

2、gzopenssl-0.9.7g-fix_mans-1.patch wvstreams-4.0.1.tar.bz2wvstreams-4.0.1-tcl84-1.patch wvdial-1.54.0.tar.gz1.2.3.2 、wvdial_1.60.4(arm-linux-gcc 4.2.2)zlib-1.2.5.tar.bz2 openssl-0.9.8n.tar.gzopenssl-0.9.8n-fix_mans-1.patchwvstreams-4.6.1.tar.gz wvdial_1.60.4.tar.gz2、Linux 开发环境2.1 、主机环境2.1.1 、主机 linux

3、 系统Fedora Core 62.1.2 、主机编译环境2.1.2.1 、gcc -v Using built-in specs.Target: i386-redhat-linuxConfigured with: ./configure -prefix=/usr -mandir=/usr/share/man-infodir=/usr/share/info -enable-shared -enable-threads=posix-enable-checking=release -with-system-zlib -enable-cxa_atexit-disable-libunwind-exce

4、ptions -enable-libgcj-multifile-enable-languages=c,c+,objc,obj-c+,java,fortran,ada -enable-java-awt=gtk-disable-dssi -enable-plugin -with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre-with-cpu=generic -host=i386-redhat-linux Thread model: posixgcc version 4.1.1 20221011 (Red Hat 4.1.1-30)2.1.2.2

5、 、/usr/local/arm/3.4.1/bin/arm-linux-gcc -vReading specs from /usr/local/arm/3.4.1/lib/gcc/arm-linux/3.4.1/specs Configured with:/work/crosstool-0.27/build/arm-linux/gcc-3.4.1-glibc-2.3.2/gcc-3.4.1/configure-target=arm-linux -host=i686-host_pc-linux-gnu -prefix=/usr/local/arm/3.4.1-with-headers=/usr

6、/local/arm/3.4.1/arm-linux/include-with-local-prefix=/usr/local/arm/3.4.1/arm-linux -disable-nls -enable-threads=posix-enable-symvers=gnu -enable-cxa_atexit -enable-languages=c,c+ -enable-shared-enable-c99 -enable-long-long Thread model: posixgcc version 3.4.12.1.2.3 、/usr/local/arm/4.2.2/usr/bin/ar

7、m-linux-gcc -v Using built-in specs.Target: arm-unknown-linux-gnueabiConfigured with:/home/scsuh/workplace/coffee/buildroot-20221011/toolchain_build_arm/gcc-4.2.2/configu re -prefix=/usr -build=i386-pc-linux-gnu -host=i386-pc-linux-gnu-target=arm-unknown-linux-gnueabi -enable-languages=c,c+-with-sys

8、root=/usr/local/arm/4.2.2-eabi/-with-build-time-tools=/usr/local/arm/4.2.2-eabi/usr/arm-unknown-linux-gnueabi/bin-disable-cxa_atexit -enable-target-optspace -with-gnu-ld -enable-shared-with-gmp=/usr/local/arm/4.2.2-eabi/gmp -with-mpfr=/usr/local/arm/4.2.2-eabi/mpfr-disable-nls -enable-threads -disab

9、le-multilib -disable-largefile -with-arch=armv4t-with-float=soft -enable-cxx-flags=-msoft-float Thread model: posixgcc version 4.2.22.2 、开发板环境2.2.1 、CES-6410 开发平台Samsung S3C6410X, ARM1176JZF-S 128MB,Mobile DDR SDRAMUSB HOST:一个 USB HOST 接口,USB2.0 全速12Mbits/s3、Linux 应用软件的编译3.1、usb-modeswitch-1.1.3root

10、localhost cdma# tar xzf libusb-0.1.12.tar.gz rootlocalhost cdma# cp libusb-0.1.12 libusb-0.1.12-arm rootlocalhost cdma# cd libusb-0.1.12-armrootlocalhost libusb-0.1.12-arm#./configure -prefix=/works/cdma/install-host=arm-linux CC=arm-linux-gcc CXX=arm-linux-g+ rootlocalhost libusb-0.1.12-arm# make r

11、ootlocalhost libusb-0.1.12-arm# make installrootlocalhost libusb-0.1.12-arm# cd .rootlocalhost cdma# tar xjf usb-modeswitch-1.1.3.tar.bz2rootlocalhost cdma# cp usb-modeswitch-1.1.3 usb-modeswitch-1.1.3-arm rootlocalhost cdma# cd usb-modeswitch-1.1.3-armrootlocalhost usb-modeswitch-1.1.3-arm#修改 Makef

12、ile CC= gcc 改为CC= arm-linux-gcc CFLAGS+= -Wall -l usb 改为CFLAGS+= -Wall -l usb -I/works/cdma/install/include -L/works/cdma/install/lib修改 usb_modeswitch.c/readConfigFile(“/etc/usb_modeswitch.setup“);改为readConfigFile(“/etc/usb_modeswitch.setup“); rootlocalhost usb-modeswitch-1.1.3-arm# make rootlocalho

13、st usb-modeswitch-1.1.3-arm# make install rootlocalhost usb-modeswitch-1.1.3-arm# cd . rootlocalhost cdma#3.2、ppp-2.4.4rootlocalhost cdma# tar xzf libpcap-0.9.8.tar.gz rootlocalhost cdma# cp libpcap-0.9.8 libpcap-0.9.8-armrootlocalhost libpcap-0.9.8-arm# ./configure -prefix=/works/cdma/install-host=

14、arm-linux -with-pcapmake: * No rule to make target pcap-yes.o”, needed by libpcap.a”.Stop.修改 MakefilePSRC =pcap-yes.c改为PSRC =pcap-linux.crootlocalhost libpcap-0.9.8-arm# make rootlocalhost libpcap-0.9.8-arm# make install rootlocalhost libpcap-0.9.8-arm# cd .rootlocalhost cdma# tar xzvf ppp-2.4.4.tar.gz rootlocalhost cdma# cd ppp-2.4.4rootlocalhost ppp-2.4.4# ./configure -host=arm-linux vi pppd/MakefileLIBS+= -lpcapCFLAGS+= -DPPP_FILTER改为LIBS+= -lpcap -L././libpcap-0.9.8CFLAGS+= -DPPP_FILTER -I././libpcap-0.9.8rootlocalhost ppp-2.4.4# make CC=arm-linux-gcc3.3 、wvdial

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 商业/管理/HR > 其它文档 > 租房合同

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号