I encountered the same problem. Earlier the datacard was working fine with Ubuntu 12.04, without installing any software. But as soon as I installed the linux drivers which were bundled with the device, it stopped working.
After a lot of searching, and digging into the install script, I found a simple solution. Run the following commands in the terminal, to get Huawei E303c working again:
sudo apt-get remove usb-modeswitch usb-modeswitch-data
sudo apt-get install usb-modeswitch
These commands will reinstall usb-modeswitch. Actually, the whole problem arises because Huawei drivers modify the usb-modeswitch data files, reinstalling them will solve the issue.
The problem is here:
/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:2589:3: error: implicit declaration of function ‘dbg’ [-Werror=implicit-function-declaration]
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:
7z l data.bin
Maybe there are too many files, so you can just grep
for the one you are looking for:
7z l data.bin | grep hw_cdc_driver.c
If you find it, then you need to extract the archive.
mkdir data_bin
mv data.bin data_bin
cd data_bin
7z x data.bin
rm data.bin
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:
cd data_bin
7z a data.bin data_bin
mv data.bin ..
Now you have replaced data.bin
with the fixed file. Try to install again.
Best Answer
Installing Mobile Partner 21 [Customized Version]
Mobile Partner is the most popular program, but it version 23 is not available for Linux, you can install version 21 following the steps below
First, you want to download
32bit - http://www.mediafire.com/download/9oa5g9dx5xeoy97/mp21.zip
64bit - http://ubuntuone.com/3w67SSZzET4ZdyJSfG51za
How to Install
You need login as root:
Go to the directory you downloaded the file to using
cd
, for exampleUnzip
Go into mp21 folder
Install MobilePartner by using the
install
scriptIf you had installed this software in your system before, you will get a prompt: "The software is exist, do you want overwrites? ([Y]/[N])", enter "y" to overwrites or "n" to exit.
If you do not had installed this software in your system before, you will get a prompt: "Please input the install path[/usr/local/Mobile_Partner]:". Then you can input install path(fullpath), or you may using the default path(/usr/local/Mobile_Partner) by press ENTER direct
Finish installing
How to run
Run MobilePartner in your install path eg: # //MobilePartner
Plug in your device, it will run automatically (Not supported in Xandros)
You have installed Mobile Partner to your Ubuntu machine, final result :