I run the following command in the terminal:
servant @ creation: ~ $ echo 'SUBSYSTEM == "usb", SYSFS {idProduct} == "1506" SYSFS {idVendor} == "12D1", RUN + = "/ lib / udev / modem-modeswitch - vendor 0x 12D1 - Product 0x 1506 - type option-zerocd "'| sudo tee / etc/udev/rules.d/45-huawei1550.rules
[sudo] password for servant
tee: /: is a directory
tee: etc/udev/rules.d/45-huawei1550.rules: No such file or such
SUBSYSTEM == "usb", SYSFS {idProduct} == "1506" SYSFS {idVendor} == "12D1", RUN + = "/ lib / udev / modem-modeswitch - vendor 12D1 0x - 0x 1506 Product - type option -zerocd "
servant @ creation: ~ $
45 huawei1550.rules file does not appear in the directory / etc / udev / rules.d /
the modem is still not up.
I downloaded the driver on this link: http://www.huaweidevice.com/tcpsdownload/downLoadCenter?category=&flay=software&downloadID=NDAzMjM =
In the Linux driver, there is no file-45 Huawei Datacard.rules but
File Huawei-10-10-Datacard.rules and Huawei Datacard-and-old.rules also 49Huwaei
I installed the driver:
serviteur@creation:~$ cd /home/serviteur/driver
serviteur@creation:~/driver$ sudo ./install
INSTALL_PATH is not set ,auto install
CURRENT PATH=/home/serviteur/driver
INSTALL_PATH=/usr/local/Mobile_Partner
/usr/local/Mobile_Partner/driver/ndis_driver
Usage: modinfo [-0][-F field][-k kernelversion][-b basedir] module...
Prints out the information about one or more module(s).
If a fieldname is given, just print out that field (or nothing if not found).
Otherwise, print all information out in a readable form
If -0 is given, separate with nul, not newline.
If -b is given, use an image of the module tree.
ERROR: Removing 'cdc_ether': No such file or directory
ERROR: Removing 'usbnet': No such file or directory
ERROR: Removing 'hw_cdc_driver': No such file or directory
make -C src/ clean
make[1]: entrant dans le répertoire « /usr/local/Mobile_Partner/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
/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/add_header.sh "clean" "/lib/modules/3.2.0-23-lowlatency/build/include/linux/usb"
rmmod -f hw_cdc_driver
ERROR: Removing 'hw_cdc_driver': No such file or directory
make[1]: *** [clean] Erreur 1
make[1]: quittant le répertoire « /usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src »
make: *** [clean] Erreur 2
make -C src/ modules
make[1]: entrant dans le répertoire « /usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src »
#/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/add_header.sh "modules" "/lib/modules/3.2.0-23-lowlatency/build/include/linux/usb"
make -C /lib/modules/3.2.0-23-lowlatency/build SUBDIRS=/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src modules
make[2]: entrant dans le répertoire « /usr/src/linux-headers-3.2.0-23-lowlatency »
CC [M] /usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/hw_cdc_driver.o
/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c: In function ‘hw_change_mtu’:
/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:898:2: attention : format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c: In function ‘rx_tlp_parse’:
/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:1084:7: attention : ISO C89 interdit les mélanges de déclarations et de code [-Wdeclaration-after-statement]
/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c: In function ‘tx_complete’:
/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:1662:5: attention : format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat]
/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c: In function ‘cdc_ncm_config’:
/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:2035:24: attention : il manque un transtypage pour comparer des types distincts de pointeur [enabled by default]
/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:2036:3: attention : il manque un transtypage pour comparer des types distincts de pointeur [enabled by default]
/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:2036:3: attention : il manque un transtypage pour comparer des types distincts de pointeur [enabled by default]
/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:2040:21: attention : il manque un transtypage pour comparer des types distincts de pointeur [enabled by default]
/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:2056:3: attention : format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Wformat]
/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c: In function ‘hw_cdc_probe’:
/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:3021:26: attention : ‘ctx’ may be used uninitialized in this function [-Wuninitialized]
/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:2794:21: note: ‘ctx’ was declared here
Building modules, stage 2.
MODPOST 1 modules
CC /usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/hw_cdc_driver.mod.o
LD [M] /usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/hw_cdc_driver.ko
make[2]: quittant le répertoire « /usr/src/linux-headers-3.2.0-23-lowlatency »
strip --strip-debug hw_cdc_driver.o
make[1]: quittant le répertoire « /usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src »
make -C src/ install
make[1]: entrant dans le répertoire « /usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src »
#install -m 744 -c hw_cdc_driver.o /lib/modules/3.2.0-23-lowlatency/kernel/drivers/usb/net
#depmod -a
#modprobe hw_cdc_driver
/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/add_header.sh "install"
modprobe hw_cdc_driver
WARNING: All config files need .conf: /etc/modprobe.d/blacklist, it will be ignored in a future release.
make[1]: quittant le répertoire « /usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src »
The Linux NDIS driver is installed successfully.
have usb_modeswitch rules to HUAWEI DataCard: COUNT=1
RULESFILE =/lib/udev/rules.d/40-usb_modeswitch.rules
COUNT_START=1
COUNT_END=0
AUTORUNPATH=/home/serviteur/.kde/share/autostart
AUTORUNPATH=/home/serviteur/.kde/Autostart
AUTORUNPATH=/home/serviteur/.config/autostart
ADDRUNLEVEL=/etc/rc3.d
«/etc/rc3.d/S99runhwactivator» -> «/etc/init.d/runhwactivator»
«/etc/rc3.d/K10runhwactivator» -> «/etc/init.d/runhwactivator»
ADDRUNLEVEL=/etc/rc2.d
«/etc/rc2.d/S99runhwactivator» -> «/etc/init.d/runhwactivator»
«/etc/rc2.d/K10runhwactivator» -> «/etc/init.d/runhwactivator»
ADDRUNLEVEL=/etc/rc4.d
«/etc/rc4.d/S99runhwactivator» -> «/etc/init.d/runhwactivator»
«/etc/rc4.d/K10runhwactivator» -> «/etc/init.d/runhwactivator»
ADDRUNLEVEL=/etc/rc5.d
«/etc/rc5.d/S99runhwactivator» -> «/etc/init.d/runhwactivator»
«/etc/rc5.d/K10runhwactivator» -> «/etc/init.d/runhwactivator»
serviteur@creation:~/driver$
README.TXT
1.Installation
a. To install the Linux Driver tool only:
call the following command in the installation directory:
./install $PATH (The parameter "PATH" is where the driver directory is)
And the can copy usbmod file to /sbin/
copy startMobilePartner file to /sbin/
copy 10-Huawei-Datacard.rules file to /etc/udev/rules.d/
register the auto run settengs into the current system.
To make the settings applied, you must restart the system.
b. To integrated the Linux Driver tool into the third dashboard application:
call "install norestart" in the installation tool of the third dashboard application.
This call scheme will disable the restarting function in the tool installation.
And after the third dashboard application installed, its installation tool must restart the current system.
2. To inquire about the version of the Linux Driver tool,
call HWActivator --version.
3. The current version is : Linux Driver 4.19.07.00
HWActivator Linux Driver 4.19.07.00