Ubuntu – How tonstall NDIS Driver for Huawei mobile broadband devices

ndiswrappersoftware installation

My 3G dongal requires the proprietary driver to properly work with Ubuntu.
It comes along with Huawei Mobile Partner installer. I was able to install Huawei Mobile Partner and the corresponding driver in Ubuntu Linux 10.04 without an any problem.

However, I can't install it in Ubuntu 13.10. (Didn't work since 12.04)
It gives the below error.
I've tried installing build-essential.

Any help is appreciated!

enter image description here

"make: *** [install] Error 2
Install NDIS driver failed.
The compiling environment is not all ready.
Please check gcc, make and kernel build(/lib/modules/3.8.0-26-generic/build) to be all installed?
Now please enter any key to finish other installations.
NDIS is disabled, and only Modem can be used".
These packages gcc, make, and others are installed.

(The output is taken from a previous version of Ubuntu. The same error message is generated in 13.10. You can regenerate this error by trying to install my driver package. The mobile broadband is not required for the installation)

Best Answer

Solution for NDIS Driver failed to install problem on HUAWEI Broadband devices:

  • Run the below command after installing the Huawei Modem Driver with NDIS driver install failed.

      sudo gedit /usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c

enter image description here

  • Locate to the line Ln 2718,change dbg ("cant't kmalloc dev"); to //dbg ("cant't kmalloc dev");(adding double // infront of dbg),save the file and close the terminal.

  • Open new terminal and Change the directory path to /usr/local/Mobile_Partner/driver by running the below command

      cd /usr/local/Mobile_Partner/driver
  • Reinstall the driver by running the below command

      sudo ./install
  • Now,it shows NDIS driver installed successfully.

enter image description here

Related Question