华为移动宽带EC306如何安装?

华为移动宽带EC306如何安装?

如何安装华为移动宽带 EC 306 EVDO RevB 在 Ubuntu 12.04 LTS 64 位中?

此致


抱歉我的英语不好

当我在 ubuntu 上连接调制解调器时,它无法安装系统,而且也无法被识别为 CD-ROM。

我的电脑上没有安装Windows,但是我尝试在朋友的PC上的Windows下打开调制解调器,没有名为“Linux”的脚本文件,只有Windows。

lsusb:

serviteur@creation:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 002: ID 15d9:0a4c Trust International B.V. USB+PS/2 Optical Mouse
Bus 001 Device 007: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard

消息

Q: 0 ANSI: 2
[16619.060771] sr1: scsi-1 drive
[16619.060955] sr 13:0:0:0: Attached scsi CD-ROM sr1
[16619.061099] sr 13:0:0:0: Attached scsi generic sg3 type 5
[16619.061358] sd 14:0:0:0: Attached scsi generic sg4 type 0
[16619.063654] sd 14:0:0:0: [sdc] Attached SCSI removable disk
[16634.224923] usb 1-6: USB disconnect, device number 6
[16638.468041] usb 1-6: new high-speed USB device number 7 using ehci_hcd
[16638.586210] option 1-6:1.0: GSM modem (1-port) converter detected
[16638.586316] usb 1-6: GSM modem (1-port) converter now attached to ttyUSB0
[16638.586435] option 1-6:1.1: GSM modem (1-port) converter detected
[16638.586517] usb 1-6: GSM modem (1-port) converter now attached to ttyUSB1
[16638.586607] option 1-6:1.2: GSM modem (1-port) converter detected
[16638.586676] usb 1-6: GSM modem (1-port) converter now attached to ttyUSB2
[16638.586752] option 1-6:1.3: GSM modem (1-port) converter detected
[16638.586828] usb 1-6: GSM modem (1-port) converter now attached to ttyUSB3
[16638.586929] option 1-6:1.4: GSM modem (1-port) converter detected
[16638.586997] usb 1-6: GSM modem (1-port) converter now attached to ttyUSB4
[16638.587114] option 1-6:1.5: GSM modem (1-port) converter detected
[16638.587187] usb 1-6: GSM modem (1-port) converter now attached to ttyUSB5
[16638.646686] option1 ttyUSB5: GSM modem (1-port) converter now disconnected from ttyUSB5
[16638.646706] option 1-6:1.5: device disconnected
[16638.660755] scsi15 : usb-storage 1-6:1.5
[16638.663284] option1 ttyUSB4: GSM modem (1-port) converter now disconnected from ttyUSB4
[16638.663301] option 1-6:1.4: device disconnected
[16638.689043] scsi16 : usb-storage 1-6:1.4

答案1

连接加密狗/调制解调器/适配器/任何你喜欢的称呼,然后浏览板载存储器(通常在设备中显示为 CD-ROM)上的文件。你看到任何名为“linux”的脚本文件了吗?选择它并右键单击。在“属性”下,选中“执行”。

现在,打开文件并单击“在终端中运行”。

分享结果。

更新:有时,调制解调器存储介质无法在 Ubuntu 系统上安装。尝试在 Windows 上打开它(它们是为 Windows 设计的!:-( )。现在,将其上的所有文件复制到您的 Ubuntu 系统并按照前面所述进行操作。

更新2:[选项1] 设备存储在您的系统上显示为闪存驱动器。

在终端中执行以下命令(一行即可):

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

45-huawei1550.rules当目录中出现命令文件后/etc/udev/rules.d/ ,下次连接调制解调器时,操作系统将从中加载驱动程序。

现在,断开调制解调器并重新启动。插入调制解调器。打开network connections并根据您的位置和 ISP 设置连接。

[选项 2]: a. 仅安装 Linux 驱动工具:在安装目录中运行以下命令:

    `./install $PATH`        (The "PATH" is where the driver directory is)

然后将usbmod文件复制startMobilePartner/bin/

45-Huawei-Datacard.rules文件复制到/etc/dev/rules.d/

重新启动系统并再次连接调制解调器。

祝你好运。

答案2

解压 linuxdriver.gz 文件后,进入驱动程序目录并在终端中打开。运行以下命令

cd /path-to-the-directory-where-you-extracted
sudo chmod 777 install
sudo ./install

答案3

我在终端中运行以下命令:

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 /

调制解调器仍未启动。

我在这个链接上下载了驱动程序:http://www.huaweidevice.com/tcpsdownload/downLoadCenter?category=&flay=software&downloadID=NDAzMjM=

在Linux驱动程序中,没有文件45 Huawei Datacard.rules,但文件Huawei-10-10-Datacard.rules和Huawei Datacard-and-old.rules也有49Huwaei

我安装了驱动程序:

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$ 

自述文件.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

相关内容