I extracted the linux driver tar file in my desktop directory and the run following commands:
cd Desktop/driver ./install /home//Desktop/driver
and i got following errors:
DRIVER COPY START
STA_PATH_FLAG=.
STA_PATH_FULL=/home/pratik/Desktop/driver/install
START_PATH_DRIVER=/home/pratik/Desktop/driver
CURRENT install from ./install
INSTALL_PATH=/home/pratik/Desktop
DRIVER COPY END
make -C src/ clean
make[1]: Entering directory `/home/pratik/Desktop/driver/ndis_driver/ndis_src/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers *.order
/home/pratik/Desktop/driver/ndis_driver/ndis_src/src/add_header.sh "clean" "/lib/modules/3.8.0-19-generic/build/include/linux/usb"
rmmod -f hw_cdc_driver
make[1]: Leaving directory `/home/pratik/Desktop/driver/ndis_driver/ndis_src/src'
make -C src/ modules
make[1]: Entering directory `/home/pratik/Desktop/driver/ndis_driver/ndis_src/src'
#/home/pratik/Desktop/driver/ndis_driver/ndis_src/src/add_header.sh "modules" "/lib/modules/3.8.0-19-generic/build/include/linux/usb"
make -C /lib/modules/3.8.0-19-generic/build SUBDIRS=/home/pratik/Desktop/driver/ndis_driver/ndis_src/src modules
make[2]: Entering directory `/usr/src/linux-headers-3.8.0-19-generic'
CC [M] /home/pratik/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.o
make[2]: Leaving directory `/usr/src/linux-headers-3.8.0-19-generic'
make[1]: Leaving directory `/home/pratik/Desktop/driver/ndis_driver/ndis_src/src'
make -C src/ install
make[1]: Entering directory `/home/pratik/Desktop/driver/ndis_driver/ndis_src/src'
#install -m 744 -c hw_cdc_driver.o /lib/modules/3.8.0-19-generic/kernel/drivers/usb/net
#depmod -a
#modprobe hw_cdc_driver
/home/pratik/Desktop/driver/ndis_driver/ndis_src/src/add_header.sh "install"
modprobe hw_cdc_driver
make[1]: Leaving directory `/home/pratik/Desktop/driver/ndis_driver/ndis_src/src'
#[31;1m
Install NDIS driver failed.
The compiling environment is not all ready.
Please check gcc, make and kernel buid(/lib/modules/3.8.0-19-generic/build) to be all installed?
#[34;1mNow please enter any key to finish other installations.#[0;0m
#[31;1mNDIS is disabled, and only Modem can be used.#[0;0m
USBSERIAL_TARGET_PATH =
ACM_TARGET_PATH =
have usb_modeswitch rules to HUAWEI DataCard: COUNT=1
RULESFILE =/lib/udev/rules.d/40-usb_modeswitch.rules
COUNT_START=1
COUNT_END=0
3
ttyUSB%n COUNT=3
2-1.3:1.3 unbind and bind option
COUNT_END=2
2-1.3:1.2 unbind and bind option
COUNT_END=1
2-1.3:1.0 unbind and bind option
COUNT_END=0
ADDRUNLEVEL=/etc/rc5.d
ADDRUNLEVEL=/etc/rc3.d
ADDRUNLEVEL=/etc/rc2.d
ADDRUNLEVEL=/etc/rc4.d
Please tell me how to solve this problem of installation of linux driver of huwaei modem in my ubuntu 13.04
Here you see the "how to install driver":
and this is how to solve the problem:
The problem is here:
I had a similar problem with another Huawei modem driver, and I fixed the source code.
First, let's find out where the hw_cdc_driver.c file is. Run the file command on all the files in the ~/Desktop/driver directory:
file * You'll see some of them are "7-zip archive data" files. Run 7z l on each of them, to see the contents:
Maybe there are too many files, so you can just grep for the one you are looking for:
If you find it, then you need to extract the archive.
Now you have the contents of the archive in the data_bin directory. Search for the hw_cdc_driver.c file, open it, and go to line 2589 (the one from the error). You can just comment that line containing dbg (add a // in front of it) and save then close the file.
To pack the archive with the modified file, use 7z again:
Now you have replaced data.bin with the fixed file. Try to install again.
///I put just my experience with this modem..hope to be helpfur for you...
YOU CAN MERGE THIS PROBLEM WITH YOUR PROBLEM I HOPE TO BE USEFUL :)
you can also follow link
this is again help