Activation Codes and Methods, Hardware Details, Sniffing
Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: How to support Huawei ET302

Post by Josh » 06 Nov 2012, 22:38

Thanks for the info. I really should start to post the "echo" line with the class restriction. The respective kernel that understands this must be spread wide by now.

Also, there is no negative effect if the kernel is older.

abianyu
Posts: 7
Joined: 08 Jun 2016, 16:11

Re: How to support Huawei ET302

Post by abianyu » 09 Jun 2016, 15:27

Josh wrote:Thanks for the info. I really should start to post the "echo" line with the class restriction. The respective kernel that understands this must be spread wide by now.

Also, there is no negative effect if the kernel is older.
i met the same problem.
does any body fixed this?
i also install huawei linux driver , doesn't work.

root@raspberrypi:~/Desktop/driver# ./install /root/Desktop
DRIVER COPY START
STA_PATH_FLAG=.
STA_PATH_FULL=/root/Desktop/driver/install
START_PATH_DRIVER=/root/Desktop/driver
CURRENT install from ./install
INSTALL_PATH=/root/Desktop
DRIVER COPY END
have usb_modeswitch rules to HUAWEI DataCard: COUNT=0
ls: cannot access /dev/ttyUSB?: No such file or directory
ttyUSB%n not exist,ok
libkmod: ERROR ../libkmod/libkmod-module.c:753 kmod_module_remove_module: could not remove 'cdc_ether': No such file or directory
Error: could not remove module cdc_ether: No such file or directory
libkmod: ERROR ../libkmod/libkmod-module.c:753 kmod_module_remove_module: could not remove 'usbnet': No such file or directory
Error: could not remove module usbnet: No such file or directory
libkmod: ERROR ../libkmod/libkmod-module.c:753 kmod_module_remove_module: could not remove 'hw_cdc_driver': No such file or directory
Error: could not remove module hw_cdc_driver: No such file or directory
make -C src/ clean
make[1]: Entering directory '/root/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
/root/Desktop/driver/ndis_driver/ndis_src/src/add_header.sh "clean" "/lib/modules/3.18.11+/build/include/linux/usb"
rmmod -f hw_cdc_driver
libkmod: ERROR ../libkmod/libkmod-module.c:753 kmod_module_remove_module: could not remove 'hw_cdc_driver': No such file or directory
Error: could not remove module hw_cdc_driver: No such file or directory
Makefile:37: recipe for target 'clean' failed
make[1]: *** [clean] Error 1
make[1]: Leaving directory '/root/Desktop/driver/ndis_driver/ndis_src/src'
Makefile:30: recipe for target 'clean' failed
make: *** [clean] Error 2
make -C src/ modules
make[1]: Entering directory '/root/Desktop/driver/ndis_driver/ndis_src/src'
#/root/Desktop/driver/ndis_driver/ndis_src/src/add_header.sh "modules" "/lib/modules/3.18.11+/build/include/linux/usb"
make -C /lib/modules/3.18.11+/build SUBDIRS=/root/Desktop/driver/ndis_driver/ndis_src/src modules
make[2]: Entering directory '/root/Desktop/driver/ndis_driver/ndis_src/src'
make[2]: *** /lib/modules/3.18.11+/build: No such file or directory. Stop.
make[2]: Leaving directory '/root/Desktop/driver/ndis_driver/ndis_src/src'
Makefile:32: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/root/Desktop/driver/ndis_driver/ndis_src/src'
Makefile:27: recipe for target 'modules' failed
make: *** [modules] Error 2
make -C src/ install
make[1]: Entering directory '/root/Desktop/driver/ndis_driver/ndis_src/src'
#install -m 744 -c hw_cdc_driver.o /lib/modules/3.18.11+/kernel/drivers/usb/net
#depmod -a
#modprobe hw_cdc_driver
/root/Desktop/driver/ndis_driver/ndis_src/src/add_header.sh "install"
modprobe hw_cdc_driver
FATAL: Module hw_cdc_driver not found.
Makefile:43: recipe for target 'install' failed
make[1]: *** [install] Error 1
make[1]: Leaving directory '/root/Desktop/driver/ndis_driver/ndis_src/src'
Makefile:33: recipe for target 'install' failed
make: *** [install] Error 2

Install NDIS driver failed.
The compiling environment is not all ready.
Please check gcc, make and kernel buid(/lib/modules/3.18.11+/build) to be all installed?

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: How to support Huawei ET302

Post by LOM » 10 Jun 2016, 05:40

abianyu wrote:i met the same problem.
does any body fixed this?
i also install huawei linux driver , doesn't work.
There is no linux kernel driver directly supporting your device and I don't think it is supported in Huawei's own "linux datacard driver", it is not listed in their udev rules files.
I think you'd better look for another td-scdma dongle, Huawei has others which can work in linux.

abianyu
Posts: 7
Joined: 08 Jun 2016, 16:11

Re: How to support Huawei ET302

Post by abianyu » 10 Jun 2016, 15:26

LOM wrote:
abianyu wrote:i met the same problem.
does any body fixed this?
i also install huawei linux driver , doesn't work.
There is no linux kernel driver directly supporting your device and I don't think it is supported in Huawei's own "linux datacard driver", it is not listed in their udev rules files.
I think you'd better look for another td-scdma dongle, Huawei has others which can work in linux.

Hey, thanks for reply:

i found et30 listed in their rules file "driver\50-Huawei-Datacard.rules ":
Line 91: SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v12D1p1D50*", KERNEL=="sr[0-9]", NAME="hwcdrom", MODE="0666"
Line 1003: SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v12D1p1D50*", KERNEL=="ttyACM*", ATTRS{bInterfaceNumber}=="01", ATTRS{bInterfaceProtocol}=="01", NAME="ttyUSB_utps_modem"
Line 1004: SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v12D1p1D50*", KERNEL=="ttyACM*", ATTRS{bInterfaceNumber}=="03", ATTRS{bInterfaceProtocol}=="01", NAME="ttyUSB_utps_pcui"

i also found in chinese forum that sb installed huawei linux driver successfully(https://forum.suse.org.cn/viewtopic.php?f=3&t=589), but i didn't success.

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: How to support Huawei ET302

Post by LOM » 10 Jun 2016, 16:40

abianyu wrote:
Hey, thanks for reply:

i found et30 listed in their rules file "driver\50-Huawei-Datacard.rules ":
You are right, I found it now when turning off "case sensitive" in the search, I searched for 1d50 .. :oops:

the udev rule shows that 2 ttyACM devices are expected, one for the ppp modem and one for AT cmds so the Huawei ndis driver is not used from what I can see.

abianyu
Posts: 7
Joined: 08 Jun 2016, 16:11

Re: How to support Huawei ET302

Post by abianyu » 11 Jun 2016, 12:46

LOM wrote:
abianyu wrote:
Hey, thanks for reply:

i found et30 listed in their rules file "driver\50-Huawei-Datacard.rules ":
You are right, I found it now when turning off "case sensitive" in the search, I searched for 1d50 .. :oops:

the udev rule shows that 2 ttyACM devices are expected, one for the ppp modem and one for AT cmds so the Huawei ndis driver is not used from what I can see.
currently, i can't install the huawei linux driver successfully, how to fix the problem?

when installing ,it shows:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
root@raspberrypi:~/Desktop/driver# ./install /root/D*
DRIVER COPY START
STA_PATH_FLAG=.
STA_PATH_FULL=/root/Desktop/driver/install
START_PATH_DRIVER=/root/Desktop/driver
CURRENT install from ./install
INSTALL_PATH=/root/Desktop
DRIVER COPY END
have usb_modeswitch rules to HUAWEI DataCard: COUNT=0
ls: cannot access /dev/ttyUSB?: No such file or directory
ttyUSB%n not exist,ok
libkmod: ERROR ../libkmod/libkmod-module.c:753 kmod_module_remove_module: could not remove 'cdc_ether': No such file or directory
Error: could not remove module cdc_ether: No such file or directory
libkmod: ERROR ../libkmod/libkmod-module.c:753 kmod_module_remove_module: could not remove 'usbnet': No such file or directory
Error: could not remove module usbnet: No such file or directory
libkmod: ERROR ../libkmod/libkmod-module.c:753 kmod_module_remove_module: could not remove 'hw_cdc_driver': No such file or directory
Error: could not remove module hw_cdc_driver: No such file or directory
make -C src/ clean
make[1]: Entering directory '/root/Desktop/driver/ndis_driver/ndis_src/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_version s Module.symvers Modules.symvers *.order
/root/Desktop/driver/ndis_driver/ndis_src/src/add_header.sh "clean" "/lib/modul es/3.18.11+/build/include/linux/usb"
rmmod -f hw_cdc_driver
libkmod: ERROR ../libkmod/libkmod-module.c:753 kmod_module_remove_module: could not remove 'hw_cdc_driver': No such file or directory
Error: could not remove module hw_cdc_driver: No such file or directory
Makefile:37: recipe for target 'clean' failed
make[1]: *** [clean] Error 1
make[1]: Leaving directory '/root/Desktop/driver/ndis_driver/ndis_src/src'
Makefile:30: recipe for target 'clean' failed
make: *** [clean] Error 2
make -C src/ modules
make[1]: Entering directory '/root/Desktop/driver/ndis_driver/ndis_src/src'
#/root/Desktop/driver/ndis_driver/ndis_src/src/add_header.sh "modules" "/lib/mo dules/3.18.11+/build/include/linux/usb"
make -C /lib/modules/3.18.11+/build SUBDIRS=/root/Desktop/driver/ndis_driver/ndi s_src/src modules
make[2]: Entering directory '/root/Desktop/driver/ndis_driver/ndis_src/src'
make[2]: *** /lib/modules/3.18.11+/build: No such file or directory. Stop.
make[2]: Leaving directory '/root/Desktop/driver/ndis_driver/ndis_src/src'
Makefile:32: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/root/Desktop/driver/ndis_driver/ndis_src/src'
Makefile:27: recipe for target 'modules' failed
make: *** [modules] Error 2
make -C src/ install
make[1]: Entering directory '/root/Desktop/driver/ndis_driver/ndis_src/src'
#install -m 744 -c hw_cdc_driver.o /lib/modules/3.18.11+/kernel/drivers/usb/net
#depmod -a
#modprobe hw_cdc_driver
/root/Desktop/driver/ndis_driver/ndis_src/src/add_header.sh "install"
modprobe hw_cdc_driver
FATAL: Module hw_cdc_driver not found.
Makefile:43: recipe for target 'install' failed
make[1]: *** [install] Error 1
make[1]: Leaving directory '/root/Desktop/driver/ndis_driver/ndis_src/src'
Makefile:33: recipe for target 'install' failed
make: *** [install] Error 2

Install NDIS driver failed.
The compiling environment is not all ready.
Please check gcc, make and kernel buid(/lib/modules/3.18.11+/build) to be all installed?


------------------------------------------------------------------------------------------------------------------------------------------------------------------
my linux os is: Linux raspberrypi 3.18.11+ #781 PREEMPT Tue Apr 21 18:02:18 BST 2015 armv6l GNU/Linux

the driver dl url : http://download-c.huawei.com/download/d ... iteCode=cn



i need help,thank u!

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: How to support Huawei ET302

Post by Josh » 11 Jun 2016, 13:00

Did you check if "/dev/ttyACM0" exists once the modem is connected? If it's there then you don't need any special driver as LOM pointed out.

If you insist on compiling the Huawei driver:
You need to check if "/lib/modules/3.18.11+/build" is a symbolic link to your configured kernel source.

abianyu
Posts: 7
Joined: 08 Jun 2016, 16:11

Re: How to support Huawei ET302

Post by abianyu » 11 Jun 2016, 13:33

Josh wrote:Did you check if "/dev/ttyACM0" exists once the modem is connected? If it's there then you don't need any special driver as LOM pointed out.

If you insist on compiling the Huawei driver:
You need to check if "/lib/modules/3.18.11+/build" is a symbolic link to your configured kernel source.
thanks.

there's no /dev/ttyACM0 exists after i insert the et302 dongle.
------------------------------------------------------------------------------
root@raspberrypi:/lib/modules# ls
3.18.11+ 3.18.11-v7+
--------------------------------------------------------------------------------

root@raspberrypi:/lib/modules/3.18.11+# ls
kernel modules.alias.bin modules.builtin.bin modules.dep.bin modules.order modules.symbols
modules.alias modules.builtin modules.dep modules.devname modules.softdep modules.symbols.bin
--------------------------------------------------------------------------------------------------------------------------------------
"You need to check if "/lib/modules/3.18.11+/build" is a symbolic link to your configured kernel source.[/quote]"

how to check this?

could u help me compiling the Huawei driver step by step?
i'm a beginner to linux & compiling stuff.
thanks.

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: How to support Huawei ET302

Post by Josh » 11 Jun 2016, 21:57

Sorry, this is not the place for basic compilation support - there are countless other sources that can help there, like this one:
http://askubuntu.com/questions/323031/h ... nd-devices

Just google "compile huawei driver module".

abianyu
Posts: 7
Joined: 08 Jun 2016, 16:11

Re: How to support Huawei ET302

Post by abianyu » 12 Jun 2016, 03:47

Josh wrote:Sorry, this is not the place for basic compilation support - there are countless other sources that can help there, like this one:
http://askubuntu.com/questions/323031/h ... nd-devices

Just google "compile huawei driver module".
thank you.

if i don't compile the driver(seems to hard to me :-P ) ,is there a way let my et302 work properly? Only use "usb_modeswitch"?

thanks

abianyu
Posts: 7
Joined: 08 Jun 2016, 16:11

Re: How to support Huawei ET302

Post by abianyu » 14 Jun 2016, 14:20

Does anybody fix the problem?

Post Reply