Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
KPPP worked a charm. Posting this message from the three network now
Hi timnp,
I am a newbie with PCLinuxOS 2007 installed on an old IBM ThinkPad i1200 series. I wish to use the Huawei E220 to go online. The Linux kernel is 2.6.18.8 version.
The E220 modem is plugged in before booting. PCLinuxOS can see the E220 as a USB drive. The Mobile Connect application (a WindowsXP .exe file) is inside the USB drive. Hence the storage portion of the E220 seems to be working OK. But the modem portion of the E220 is not activated at all.
In the Terminal console as a root user, I entered "wvdial 3g".
My /etc/wvdial.conf file reads like this.
I got it from the web which says it works for my local mobile service provider. I do not need to log in to my account when I use the E220 under Windows XP. Hence the user and password of this configuration script are just dummy parameters.
Quote:
#internet Dialer version 1.56
#created by Cyblade
#Written for the E220 usb modem
I have downloaded the package from the URL you kindly indicated.
After unpacking it to /root/huawei, I cd to this directory. I then entered "make install".
Here are the error log I got. Incidentally, I am using PCLinuxOS 2007, which the package I downloaded supposes to be compatible.
Quote:
[root@localhost huawei]# make install
Installing sample configuration for Linux
cp huawei.sh /etc/
cp huaweiAktBbo_pt-BR.c /etc/
cp wvdial.conf /etc/
cp mod.sh /etc/
cp huaweiAktBbo-i386.out /etc/
cp huaweiAktBbo-arm.out /etc/
chmod a+x /etc/huaweiAktBbo-i386.out
cp huaweiAktBbo.c /etc/
chmod a+x /etc/huaweiAktBbo-arm.out
chmod a+x /etc/huaweiAktBbo.c
sh /etc/huawei.sh
ERROR: Module option does not exist in /proc/modules
ERROR: Module usbserial does not exist in /proc/modules
/dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2
sh /etc/mod.sh
: command not found:
Bus 001 Device 002: ID 12d1:1003
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x12d1
idProduct 0x1003
bcdDevice 0.00
iManufacturer 1 HUAWEI Technologies
iProduct 2 HUAWEI Mobile
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 85
bNumInterfaces 3
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 3 Data Interface
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0010 1x 16 bytes
bInterval 128
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 3 Data Interface
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x05 EP 5 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Device Status: 0x0000
(Bus Powered)
Bus 001 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 9 Hub
bDeviceSubClass 0 Unused
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0000
idProduct 0x0000
bcdDevice 2.06
iManufacturer 3 Linux 2.6.18.8.tex5 ohci_hcd
iProduct 2 OHCI Host Controller
iSerial 1 0000:00:14.0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0 Unused
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 255
Hub Descriptor:
bLength 9
bDescriptorType 41
nNbrPorts 2
wHubCharacteristic 0x0002
No power switching (usb 1.0)
Ganged overcurrent protection
bPwrOn2PwrGood 1 * 2 milli seconds
bHubContrCurrent 0 milli Ampere
DeviceRemovable 0x00
PortPwrCtrlMask 0xff
Hub Port Status:
Port 1: 0000.0100 power
Port 2: 0000.0103 power enable connect
Device Status: 0x0003
Self Powered
Remote Wakeup Enabled
: No such file or directory
: command not found:
: command not found0:
does not exist in /proc/modules
: command not found2:
does not exist in /proc/modules
: command not found4:
: command not found5: lsusb
: command not found6:
: command not found8:
: No such file or directory
: command not found0:
mknod: `/dev/ttyUSB1': File exists
mknod: `/dev/ttyUSB2': File exists
huaweiAktBbo.c:15:17: error: usb.h: No such file or directory
huaweiAktBbo.c: In function ‘list_devices’:
huaweiAktBbo.c:37: warning: assignment makes pointer from integer without a cast
huaweiAktBbo.c:37: error: dereferencing pointer to incomplete type
huaweiAktBbo.c:40: error: dereferencing pointer to incomplete type
huaweiAktBbo.c:40: error: dereferencing pointer to incomplete type
huaweiAktBbo.c:42: error: dereferencing pointer to incomplete type
huaweiAktBbo.c:43: error: dereferencing pointer to incomplete type
huaweiAktBbo.c: In function ‘find_device’:
huaweiAktBbo.c:50: warning: assignment makes pointer from integer without a cast
huaweiAktBbo.c:50: error: dereferencing pointer to incomplete type
huaweiAktBbo.c:53: error: dereferencing pointer to incomplete type
huaweiAktBbo.c:53: error: dereferencing pointer to incomplete type
huaweiAktBbo.c:54: error: dereferencing pointer to incomplete type
huaweiAktBbo.c:55: error: dereferencing pointer to incomplete type
huaweiAktBbo.c: In function ‘main’:
huaweiAktBbo.c:115: warning: assignment makes pointer from integer without a cast
huaweiAktBbo.c:169: error: ‘USB_TYPE_STANDARD’ undeclared (first use in this function)
huaweiAktBbo.c:169: error: (Each undeclared identifier is reported only once
huaweiAktBbo.c:169: error: for each function it appears in.)
huaweiAktBbo.c:169: error: ‘USB_RECIP_DEVICE’ undeclared (first use in this function)
huaweiAktBbo.c:169: error: ‘USB_REQ_SET_FEATURE’ undeclared (first use in this function)
/usr/bin/ld: cannot find -lusb
collect2: ld returned 1 exit status
pppd: Can't open options file /etc/ppp/peers/isp: No such file or directory
~}#�}!}!} }4}"}&} } } } }%}&B}0},@}'}"}(}":~~}#�}!}!} }4}"}&} } } } }%}&B}0},@}'}"}(}":~
I don't know about the pcmcia cards but for the new(er) usb modems (3.3 / 7.0 mb/s speed) I think you will be stymied getting these working on Linux for a while yet.
These are usdpa (or something similar) type usb modems.
the main problem as far as I can see is that these contain an internal type storage (seen by the host computer) as a disk drive with a whole lot of windows files on it. When you plug the device into the computer autoplay imediaiately launches the windows application vmc_lite or something like that. I'm not at the machine currently so I can't give you the exact name but just display the device via windows explorer if you have access to windows..
Running from a Windows VM however works fine - but these new usb modems probably won't ever run on Linux unless somehow you can address the hardware directly.
I am not familiar with your distro of Linux but one of the things that was mentioned when I was reading up about this device elsewhere is that its CD drive emulation can get in the way of the modem, I think I read this on the ubuntu forums, they suggest unmounting the CD drive.
Hope that helps you some of the way although I doubt it will get you all of the way there. Are you on Three UK?
Ok.. thanks for e mail me. Ok, now I gonna tell you, what should you do is, try to type this at command:
First step:
su
sh /etc/huawei.sh
or
sudo sh /etc/huawei.sh
Second step:
su
sh /etc/mod.sh
or
sudo sh /etc/mod.sh
That's all.. Ok, this is for pclinuxOS user especially mactastic
collect2: ld returned 1 exit status
pppd: Can't open options file /etc/ppp/peers/isp: No such file or directory
~}#�}!}!} }4}"}&} } } } }%}&B}0},@}'}"}(}":~~}#�}!}!} }4}"}&} } } } }%}&B}0},@}'}"}(}":~
my result is:
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
pppd: Can't open options file /etc/ppp/peers/isp: No such file or directory
~�}#�!}!}!} }4}"}&} } } } }%}&�({ }'}"}(}"}!l~~�}#�!}!}!} }4}"}&} } } } }%}&�({ }'}"}(}"}!l~~�}#�!}!}!} }4}"}&} } } } }%}&�({ }'}"}(}"}!l~~�}#�!}!}!} }4}"}&} } } } }%}&�({ }'}"}(}"}!l~~�}#�!}!}!} }4}"}&} } } } }%}&�({ }'}"}(}"}!l~~�}#�!}!}!} }4}"}&} } } } }%}&�({ }'}"}(}"}!l~~�}#�!}!}!} }4}"}&} } } } }%}&�({ }'}"}(}"}!l~~�}#�!}!}!} }4}"}&} } } } }%}&�({ }'}"}(}"}!l~~�}#�!}!}!} }4}"}&} } } } }%}&�({ }'}"}(}"}!l~~�}#�!}!}!} }4}"}&} } } } }%}&�({ }'}"}(}"}!l~Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S2 S3
ttyUSB0<Info>: Device or resource busy
Modem Port Scan<*1>: USB0
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB1<*1>: Modem Identifier: ATI -- Manufacturer: huawei
ttyUSB1<*1>: Speed 4800: AT -- OK
ttyUSB1<*1>: Speed 9600: AT -- OK
ttyUSB1<*1>: Speed 19200: AT -- OK
ttyUSB1<*1>: Speed 38400: AT -- OK
ttyUSB1<*1>: Speed 57600: AT -- OK
ttyUSB1<*1>: Speed 115200: AT -- OK
ttyUSB1<*1>: Speed 230400: AT -- OK
ttyUSB1<*1>: Speed 460800: AT -- OK
ttyUSB1<*1>: Max speed is 460800; that should be safe.
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB2<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB2<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyUSB2<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSBo<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 460800 baud
ttyUSBo<*1>: ATQ0 V1 E1 -- failed with 460800 baud, next try: 460800 baud
ttyUSBo<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Found a modem on /dev/ttyUSB1.
Modem configuration written to /etc/wvdial.conf.
ttyUSB1<Info>: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
: not found: 38:
WvDial<*1>: WvDial: Internet dialer version 1.56
WvDial<Warn>: Warning: section [Dialer huawei
WvDial<Warn>: ] does not exist in wvdial.conf.
WvModem<*1>: Cannot get information for serial port.
WvDial<*1>: Initializing modem.
WvDial<*1>: Sending: ATZ
WvDial Modem<*1>: ^DSFLOWRPT:000008C0,00000000,00000000,000000000029FA9F,0000000
WvDial Modem<*1>: OK
WvDial<*1>: Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
WvDial Modem<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
WvDial Modem<*1>: OK
WvDial<*1>: Modem initialized.
WvDial<*1>: Sending: ATDT*99#
WvDial<*1>: Waiting for carrier.
WvDial Modem<*1>: ATDT*99#
It shows that you'd installed it. But the result shows it not completed. After you done all my method above, you should be connected. BTW the alternative way is using ppp0. You can find an icon at a panel (top left) it seems like double pc. Right click on it and choose configure network.
Analog Phone, Manual choice -> choose /dev/ttyUSB0, dont choose any "
provider, just proceed with NEXT, eventually type the following: "
Connection name: Your-Provider "
Phone number : *99# "
Login ID : ppp (can be whatever) "
Password : ppp (can be whatever) "
Authentication : CHAP "
and also choose automatic connect after reboot. (option button)
Keep clicking on NEXT and you shall be connected soon "
Don't forget to updates ppp after get a connection"
If you not find the icon, go to Control Centre " choose
Network&Internet.
Analog Phone, Manual choice -> choose /dev/ttyUSB0, dont choose any "
provider, just proceed with NEXT, eventually type the following: "
Connection name: Your-Provider "
Phone number : *99# "
Login ID : ppp (can be whatever) "
Password : ppp (can be whatever) "
Authentication : CHAP "
and also choose automatic connect after reboot. (option button)
p/s: choose connection after reboot means if you restart your pc (next time), you will automatically connected.
One more thing, plug your modem before boot. Reinstall again the he220-pclos and finish my method above.
If you have been connect once, next time you forgot plug after boot, don't worry because pclos has been recognised your white egg.
Remember, it takes 3-10 second to recognise your modem after boot. Send me msg if you have a problem yet.. nice to know you
Many thanks for taking the trouble to sort out my problem.
I plugged in the Huawei E220 before booting up.
In the Konsole, I tried "sh /etc/huawei.sh" and followed by "sh /etc/mod.sh".
But it was not successful.
My results shows
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
pppd: Can't open options file /etc/ppp/peers/isp: No such file or directory
~�}#�!}!}!} }4}"}&} } } } }%}&�({ }'}"}(}"}!l~~�}#�!}!}!} }4}"}&} } } } }%}&�({ }'}"}(}"}!l~~�}#�!}!}!} }4}"}&} } } } }%}&�({ }'}"}(}"}!l~~�}#�!}!}!} }4}"}&} } } } }%}&�({ }'}"}(}"}!l~~�}#�!}!}!} }4}"}&} } } } }%}&�({ }'}"}(}"}!l~~�}#�!}!}!} }4}"}&} } } } }%}&�({ }'}"}(}"}!l~~�}#�!}!}!} }4}"}&} } } } }%}&�({ }'}"}(}"}!l~~�}#�!}!}!} }4}"}&} } } } }%}&�({ }'}"}(}"}!l~~�}#�!}!}!} }4}"}&} } } } }%}&�({ }'}"}(}"}!l~~�}#�!}!}!} }4}"}&} } } } }%}&�({ }'}"}(}"}!l~
But it got stuck there and did NOT go on to show
Editing `/etc/wvdial.conf' etc etc etc etc.
I searched the web again and obtained these two scripts: mod.sh
Quote:
#internet Dialer version 1.56
#created by Cyblade
#Written for the E220 usb modem
rmmod usb-storage
modprobe usbserial vendor=0x12d1 product=0x1003
mknod /dev/ttyUSBo c 188 0
mknod /dev/ttyUSB1 c 188 1
mknod /dev/ttyUSB2 c 188 2
wvdial 3g
wvdial.conf
Quote:
#internet Dialer version 1.56
#created by Cyblade
#Written for the E220 usb modem
Good news..
FYI, mod.sh and huawei.sh are a code tu recognise ttyUSB presence because Huawei USB modem detected as cd on Unix system.
The change that you'd made on dialer give a little effect to my setting on mod.sh because I'd setting with wvdial huawei. However, good luck to you. Some configuration must recorrect if you made a little change.
BTW, mandriva has their own gprs@3g dialer. Pclos is Mandriva based, so you can get setting at control center as my previous post. This set up will connect the Internet automatically after boot. (without your sh /etc/mod.sh anymore)
Next tips: If you use Pclos minime 2008, you cannot dial with wvdial. You must connect at control center step by step. After get connection, download wvdial via synaptic or apt-get.
Contra of pclos: after updating your software, the synaptic will give a lot of hang to your pc everytime you try to update by synaptic again. Use "apt-get install <your-software>" to avoid this problem.
Distribution: Debian Squeeze. Various live CD's Win7
Posts: 346
Rep:
Vodafone 3G network
I agree with moderator redazz. You may need to update kernel - I used a 2.6.22.3 kernel as kernels below 2.6.19 don't support the modem. You may also want to look at vodafone-mobile-connect-card-driver-for-linux-1.99.17.tar.gz and firestarter as a personal firewall. kppp is excellent as it is easy to setup and and aids troubleshooting. Firewall needs IP tables enabled in kernel also. There is also a firmware upgrade which I haven't used yet. Has anyone done this? Also you may be interested in huaweiE220-installer.tar.gz
Skype also appears to work easily with Debian Etch.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.