講解下華為ET128在TQ2440上的移植和使用,首先下載usb-modeswitch-1.1.3.tar.bz2 和 libusb-0.1.12.tar.gz 以及 ppp-2.4.5.tar.gz
相關文件下載在Linux公社FTP 的 1號服務器裡,下載地址:
FTP地址:ftp://www.linuxidc.com
用戶名:www.linuxidc.com
密碼:www.muu.cc
在 2011年LinuxIDC.com\3月\華為ET128在TQ2440上的移植和使用[附相關文件]
下載方法見 http://www.linuxidc.net/thread-1187-1-1.html
(1)[email protected]:/www.linuxidc.com/3g# tar xvfj usb-modeswitch-1.1.3.tar.bz2
[email protected]:/www.linuxidc.com/3g# tar zxvf libusb-0.1.12.tar.gz
[email protected]:/www.linuxidc.com/3g# cd libusb-0.1.12
[email protected]:/www.linuxidc.com/3g/libusb-0.1.12# ls
acinclude.m4 config.h.in doc libusb-config.in Makefile.am usb.h.in
aclocal.m4 config.sub Doxyfile libusb.pc.in Makefile.in usbi.h
apidocs configure Doxyfile.in libusb.spec missing usbpp.cpp
AUTHORS configure.in error.c libusb.spec.in NEWS usbpp.h
bsd.c COPYING error.h LICENSE README
ChangeLog darwin.c INSTALL.libusb linux.c README.in
compile depcomp INSTALL.libusb.in linux.h tests
config.guess descriptors.c install-sh ltmain.sh usb.c
[email protected]:/www.linuxidc.com/3g/libusb-0.1.12# mkdir _install
[email protected]:/www.linuxidc.com/3g/libusb-0.1.12# ./configure --prefix=/www.linuxidc.com/3g/libusb-0.1.12/_install/ --host=arm-linux CC=arm-linux-gcc CXX=arm-linux-g++
[email protected]:/www.linuxidc.com/3g/libusb-0.1.12# make
[email protected]:/www.linuxidc.com/3g/libusb-0.1.12# make install
[email protected]:/www.linuxidc.com/3g/libusb-0.1.12# cd ..
[email protected]:/www.linuxidc.com/3g# ls
libusb-0.1.12 libusb-0.1.12.tar.gz usb-modeswitch-1.1.3 usb-modeswitch-1.1.3.tar.bz2
[email protected]:/www.linuxidc.com/3g# cd usb-modeswitch-1.1.3
[email protected]:/www.linuxidc.com/3g/usb-modeswitch-1.1.3# ls
ChangeLog device_reference.txt README usb_modeswitch.c usb_modeswitch.h
COPYING Makefile usb_modeswitch.1 usb_modeswitch.conf usb_modeswitch.tcl
[email protected]:/www.linuxidc.com/3g/usb-modeswitch-1.1.3# gedit Makefile &
CC = arm-linux-gcc
CFLAGS = -Wall -l usb -I/www.linuxidc.com/3g/libusb-0.1.12/_install/include -L/www.linuxidc.com/3g/libusb-0.1.12/_install/lib
/*
[email protected]:/www.linuxidc.com/3g/libusb-0.1.12# cd ..
[email protected]:/www.linuxidc.com/3g# ls
[email protected]:/www.linuxidc.com/3g# cd usb-modeswitch-1.1.3
[email protected]:/www.linuxidc.com/3g/usb-modeswitch-1.1.3# ls
[email protected]:/www.linuxidc.com/3g/usb-modeswitch-1.1.3# cd ..
[email protected]:/www.linuxidc.com/3g# cd libusb-0.1.12/_install/
[email protected]:/www.linuxidc.com/3g/libusb-0.1.12/_install# pwd
/www.linuxidc.com/3g/libusb-0.1.12/_install
[email protected]:/www.linuxidc.com/3g/libusb-0.1.12/_install#
*/
[email protected]:/www.linuxidc.com/3g/usb-modeswitch-1.1.3# make
arm-linux-gcc -o usb_modeswitch usb_modeswitch.c -Wall -l usb -I/www.linuxidc.com/3g/libusb-0.1.12/_install/include -L/www.linuxidc.com/3g/libusb-0.1.12/_install/lib
(2)[email protected]:/www.linuxidc.com/3g# tar zxvf ppp-2.4.5.tar.gz
[email protected]:/www.linuxidc.com/3g# cd ppp-2.4.5
[email protected]:/www.linuxidc.com/3g/ppp-2.4.5# ls
Changes-2.3 contrib linux pppdump README.eap-srp README.MSCHAP81 README.sol2
chat etc.ppp modules pppstats README.linux README.pppoe scripts
common FAQ PLUGINS README README.MPPE README.pppol2tp SETUP
configure include pppd README.cbcp README.MSCHAP80 README.pwfd solaris
[email protected]:/www.linuxidc.com/3g/ppp-2.4.5# ./configure --prefix=arm-linux
[email protected]:/www.linuxidc.com/3g/ppp-2.4.5# make CC=arm-linux-gcc
(3)linux-kernel + drvers
(4)[email protected]:/www.linuxidc.com/3g/libusb-0.1.12# cd _install/
[email protected]:/www.linuxidc.com/3g/libusb-0.1.12/_install# ls
bin include lib
[email protected]:/www.linuxidc.com/3g/libusb-0.1.12/_install# cd lib/
[email protected]:/www.linuxidc.com/3g/libusb-0.1.12/_install/lib# ls
libusb-0.1.so.4 libusb.a libusbpp-0.1.so.4 libusbpp.a libusbpp.so pkgconfig
libusb-0.1.so.4.4.4 libusb.la libusbpp-0.1.so.4.4.4 libusbpp.la libusb.so
[email protected]:/www.linuxidc.com/3g/libusb-0.1.12/_install/lib# cp * /nfs/
[email protected]:/www.linuxidc.com/3g# cd ppp-2.4.5
[email protected]:/www.linuxidc.com/3g/ppp-2.4.5# ls
Changes-2.3 contrib linux pppd README.cbcp README.MSCHAP80 README.pwfd solaris
chat etc.ppp Makefile pppdump README.eap-srp README.MSCHAP81 README.sol2
common FAQ modules pppstats README.linux README.pppoe scripts
configure include PLUGINS README README.MPPE README.pppol2tp SETUP
[email protected]:/www.linuxidc.com/3g/ppp-2.4.5# chmod 777 chat/chat
[email protected]:/www.linuxidc.com/3g/ppp-2.4.5# chmod 777 pppd/pppd
[email protected]:/www.linuxidc.com/3g/ppp-2.4.5# cp chat/chat /nfs/
[email protected]:/www.linuxidc.com/3g/ppp-2.4.5# cp pppd/pppd /nfs/