Linux - HOWTO (With Stats)

Status
Not open for further replies.
when I run the command:
[root@localhost linx99]# tail -f /var/log/messages
Dec 31 11:03:49 localhost printerdrake[4334]: created directory /dev/usb (and parents if necessary)
Dec 31 11:03:49 localhost last message repeated 15 times
Dec 31 11:03:49 localhost printerdrake[4334]: ### Program is exiting ###
Dec 31 11:03:49 localhost printerdrake[4334]: ### Program is exiting ###
Dec 31 11:03:49 localhost autosetupprintqueues[2761]: ### Program is exiting ###
Dec 31 11:03:59 localhost net_applet[4403]: ### Program is starting ###
Dec 31 11:04:00 localhost mdkapplet[4406]: ### Program is starting ###
Dec 31 11:04:07 localhost mdkapplet[4406]: ### Program is exiting ###
Dec 31 11:05:55 localhost kernel: end_request: I/O error, dev fd0, sector 0
Dec 31 11:07:56 localhost last message repeated 2 times

After insert the card ...nothing happen.

Any idee?????
 
Vary tried to you:

Password:
[root@localhost linx99]# rmmod usb-storage
[root@localhost linx99]# modprobe usbserial vendor=0x12d1 product=0x1003
[root@localhost linx99]# ls -la /dev/ttyU*
crw-rw---- 1 linx99 tty 188, 0 gen 4 22:08 /dev/ttyUSB0
[root@localhost linx99]# wvdial hsdpa
--> WvDial: Internet dialer version 1.54.0
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.




I remove the modem and after some commandos.



[root@localhost linx99]# rmmod usb-storage
[root@localhost linx99]# modprobe usbserial vendor=0x12d1 product=0x1003
[root@localhost linx99]# tail -f /var/log/messages
Jan 4 22:09:14 localhost kernel: generic ttyUSB0: generic converter now disconnected from ttyUSB0
Jan 4 22:09:27 localhost kernel: ohci_hcd 0000:00:0f.1: wakeup
Jan 4 22:09:28 localhost kernel: usb 2-3: new full speed USB device using ohci_hcd and address 5
Jan 4 22:09:28 localhost kernel: usb 2-3: configuration #1 chosen from 1 choice
Jan 4 22:09:28 localhost kernel: usbserial_generic 2-3:1.0: generic converter detected
Jan 4 22:09:28 localhost kernel: usb 2-3: generic converter now attached to ttyUSB0
Jan 4 22:09:43 localhost kernel: usbcore: deregistering driver usb-storage
Jan 4 22:09:53 localhost kernel: usb 2-3: USB disconnect, address 5
Jan 4 22:09:53 localhost kernel: generic ttyUSB0: generic converter now disconnected from ttyUSB0
Jan 4 22:09:53 localhost kernel: usbserial_generic 2-3:1.0: device disconnected

[root@localhost linx99]# lsusb
Bus 001 Device 003: ID 0851:1542 Macronix International Co., Ltd
Bus 001 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000


To this point I insert the Huawei modem e220 and ........


[root@localhost linx99]# lsusb
Bus 001 Device 003: ID 0851:1542 Macronix International Co., Ltd
Bus 001 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 002 Device 006: ID 12d1:1003
Bus 002 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
[root@localhost linx99]# sudo modprobe usbserial vendor=0x12d1 product=0x1003
[root@localhost linx99]#
[root@localhost linx99]#
[root@localhost linx99]#
[root@localhost linx99]# ls -la /dev/ttyU*
crw-rw---- 1 linx99 tty 188, 0 gen 4 22:12 /dev/ttyUSB0
[root@localhost linx99]# wvdial hsdpa
--> WvDial: Internet dialer version 1.54.0
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
--> Re-Sending: ATZ
--> Modem not responding.
[root@localhost linx99]#



The reason for this?
What I can make in order to make to work the modem.




My wvdial.conf



# cat /etc/wvdial.conf
al for Vodacom Data. Created by Tazz_tux
# Version 1.0

# Change Log:
#
# Added support for HSDPA.
# Added Headers and version control.



[Dialer hsdpa]
Phone = *99***16#
Username = vodafone
Password = vodafone
Stupid Mode = 1
Dial Command = ATDT
Modem = /dev/ttyUSB0
Baud = 460800
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Init5 =AT+CGDCOUNT=1,"IP","web.omnitel.it"
 
Last edited:
HUAWEI E620 - no joy with data card

I run a dual boot winxp/ubuntu 6.06lts. The card work ok in win, but can't get it to work in linux. my data card is run on my PC on a a RoHS PTC101OR Ver 1.0 card in a pci slot. the linux kernel is 2.6.13.
my wvconf is as per tazz_tux. when i run wvdial hsdpa internet i get the same error as most. #cannot open /dev/modem: no such file or directory.
what now? where could i look for the fault
 
I run a dual boot winxp/ubuntu 6.06lts. The card work ok in win, but can't get it to work in linux. my data card is run on my PC on a a RoHS PTC101OR Ver 1.0 card in a pci slot. the linux kernel is 2.6.13.
my wvconf is as per tazz_tux. when i run wvdial hsdpa internet i get the same error as most. #cannot open /dev/modem: no such file or directory.
what now? where could i look for the fault

Howzit,

See if you have any /dev/ttyUSB* (ls -la /dev/ttyUSB*) and then you can create a symlink to /dev/modem. It's a bit weird, since my config doesn't use /dev/modem, which is wvdial's default. To create the symlink use
Code:
ln -s /dev/ttyUSB0 /dev/modem

Laterz !
 
Option 3G-Quad Card Not Treated as USB

Hello,

I am trying to use a Option 3G-Quad card in a Debian testing, with kernel 2.6.16.
Since in my kernel CONFIG_USB_SERIAL=m, I write:
Code:
modprobe usbserial vendor=0xaf0 product=0x6300
and then insert the card.. I get:
Code:
# cardctl status
Socket 0:
  3.3V CardBus card
  function 0: [ready]
  function 1: [ready]
# cardctl config
Socket 0:
  Vcc 3.3V  Vpp1 3.3V  Vpp2 3.3V
  interface type is "cardbus"
  irq 177 [exclusive] [level]
  function 0:
  Vcc 3.3V  Vpp1 3.3V  Vpp2 3.3V
  interface type is "cardbus"
  irq 177 [exclusive] [level]
  function 0:
# cardctl ident
Socket 0:
  no product info available
# cardctl info
PRODID_1=""
PRODID_2=""
PRODID_3=""
PRODID_4=""
MANFID=0000,0000
FUNCID=255
so card seems to be working. However, no /dev/ttUSB* nodes are created, and lsusb doesn't show new USB's in the system.
I have added "pci=assign-busses" to the kernel boot and even created nodes manually with no result.
Perhaps the product code (0x6300) is not adequate to this model? Please, I would be very grateful if you could give me any hint.

Thanks.

Oscar.
 
Hello,

I am trying to use a Option 3G-Quad card in a Debian testing, with kernel 2.6.16.
Since in my kernel CONFIG_USB_SERIAL=m, I write:
Code:
modprobe usbserial vendor=0xaf0 product=0x6300
and then insert the card.. I get:
Code:
# cardctl status
Socket 0:
  3.3V CardBus card
  function 0: [ready]
  function 1: [ready]
# cardctl config
Socket 0:
  Vcc 3.3V  Vpp1 3.3V  Vpp2 3.3V
  interface type is "cardbus"
  irq 177 [exclusive] [level]
  function 0:
  Vcc 3.3V  Vpp1 3.3V  Vpp2 3.3V
  interface type is "cardbus"
  irq 177 [exclusive] [level]
  function 0:
# cardctl ident
Socket 0:
  no product info available
# cardctl info
PRODID_1=""
PRODID_2=""
PRODID_3=""
PRODID_4=""
MANFID=0000,0000
FUNCID=255
so card seems to be working. However, no /dev/ttUSB* nodes are created, and lsusb doesn't show new USB's in the system.
I have added "pci=assign-busses" to the kernel boot and even created nodes manually with no result.
Perhaps the product code (0x6300) is not adequate to this model? Please, I would be very grateful if you could give me any hint.

Thanks.

Oscar.

For some reason, your card isn't detected....lsusb or cardctl info should show something....are you sure that pcmcia is running/configed etc ?
 
JasJar, WModem and Linux

hi Tazz_Tux,

I posted this in another thread, but have since been advised to post it here.

What I wanted to know is, can I use my JasJar to connect to the internet under linux using the built-in WModem (or other method if one exists)

I've gone through this sticky, and none of the stuff I've tried from here, seems to help much.

Let me know of any data you need me to supply.

CyberBOB
 
hi Tazz_Tux,

I posted this in another thread, but have since been advised to post it here.

What I wanted to know is, can I use my JasJar to connect to the internet under linux using the built-in WModem (or other method if one exists)

I've gone through this sticky, and none of the stuff I've tried from here, seems to help much.

Let me know of any data you need me to supply.

CyberBOB

Hey CyberBOB,

When you plug in the device (usb I assume) what is printed in /var/log/messages ?

laterz !
 
RE: Option 3G-Quad card

For some reason, your card isn't detected....lsusb or cardctl info should show something....are you sure that pcmcia is running/configed etc ?

Thanks for your reply.

Yes, maybe that's the problem, but I don't know exactly how to work with pcmcia. What should I look for, or what information can I provide to you for help?

Oscar
 
Thanks for your reply.

Yes, maybe that's the problem, but I don't know exactly how to work with pcmcia. What should I look for, or what information can I provide to you for help?

Oscar

Sure - no problem.
  • Check if pcmcia is started - normally /etc/init.d/pcmcia start
  • Check in /var/log/messages for any info when inserting the card
  • Check if udev is started during the boot process

That should get us going :)
 
Thanks for the quick reply ...

It is running over USB, and this is the output of /var/log/messages

Jan 9 08:54:11 dumbledore kernel: ohci_hcd 0000:00:0b.0: wakeup
Jan 9 08:54:12 dumbledore kernel: usb 1-5: new full speed USB device using ohci_hcd and address 4
Jan 9 08:54:12 dumbledore kernel: usb 1-5: new device found, idVendor=0bb4, idProduct=00cf
Jan 9 08:54:12 dumbledore kernel: usb 1-5: new device strings: Mfr=1, Product=2, SerialNumber=0
Jan 9 08:54:12 dumbledore kernel: usb 1-5: Product: Generic Serial (PROTOTYPE--Remember to change idVendor)
Jan 9 08:54:12 dumbledore kernel: usb 1-5: Manufacturer: Generic Manufacturer (PROTOTYPE--Remember to change idVendor)
Jan 9 08:54:12 dumbledore kernel: usb 1-5: configuration #1 chosen from 1 choice

I've tried to see if any additional serial ports or USB ports appear after connecting my JJ, but I don't see anything.

The interesting thing (or so I thought) was that it does make reference to "Generic Serial"

CyberBOB
 
Opppss - forgot to add that you need to run lsusb after attaching the device :D

Thanks for the quick reply ...

It is running over USB, and this is the output of /var/log/messages

Jan 9 08:54:11 dumbledore kernel: ohci_hcd 0000:00:0b.0: wakeup
Jan 9 08:54:12 dumbledore kernel: usb 1-5: new full speed USB device using ohci_hcd and address 4
Jan 9 08:54:12 dumbledore kernel: usb 1-5: new device found, idVendor=0bb4, idProduct=00cf
Jan 9 08:54:12 dumbledore kernel: usb 1-5: new device strings: Mfr=1, Product=2, SerialNumber=0
Jan 9 08:54:12 dumbledore kernel: usb 1-5: Product: Generic Serial (PROTOTYPE--Remember to change idVendor)
Jan 9 08:54:12 dumbledore kernel: usb 1-5: Manufacturer: Generic Manufacturer (PROTOTYPE--Remember to change idVendor)
Jan 9 08:54:12 dumbledore kernel: usb 1-5: configuration #1 chosen from 1 choice

I've tried to see if any additional serial ports or USB ports appear after connecting my JJ, but I don't see anything.

The interesting thing (or so I thought) was that it does make reference to "Generic Serial"

CyberBOB
 
Output before JasJar is connected:

Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

Output after JasJar is connected:

Bus 002 Device 001: ID 0000:0000
Bus 001 Device 006: ID 0bb4:00cf High Tech Computer Corp. SPV C500 Smart Phone
Bus 001 Device 001: ID 0000:0000
 
Output before JasJar is connected:

Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

Output after JasJar is connected:

Bus 002 Device 001: ID 0000:0000
Bus 001 Device 006: ID 0bb4:00cf High Tech Computer Corp. SPV C500 Smart Phone
Bus 001 Device 001: ID 0000:0000

Ok - run this command
Code:
modprobe usbserial vendor=0x0bb4 product=0x00cf

That should bring the device up on /dev/ttyUSB0 :)
 
Sure - no problem.
  • Check if pcmcia is started - normally /etc/init.d/pcmcia start
  • Check in /var/log/messages for any info when inserting the card
  • Check if udev is started during the boot process

That should get us going :)

Ok. Here it is:

Code:
# /etc/init.d/pcmcia start
* Linux >= 2.6.13-rc1 and udev is enabled; use pcmciautils instead
# /etc/init.d/pcmciautils start
PCMCIA bridge driver already present in kernel
#/pcmciautils stop
PCMCIA bridge driver already present in kernel
# /etc/init.d/pcmciautils restart
PCMCIA bridge driver already present in kernel
I don't know if that means that PCMCIA is started correctly.

When I insert the card, I can find next message in /var/log/messages:
Code:
localhost kernel: pccard: CardBus card inserted into slot 0
During boot process, the kernel gives this message, which I don't know if it is important:
Code:
localhost kernel: pcmcia: This interface will soon be removed fr om the kernel; please expect breakage unless you upgrade to new tools.
localhost kernel: pcmcia: see http://www.kernel.org/pub/linux/ut ils/kernel/pcmcia/pcmcia.html for details.

And finally, udev is correctly started during boot process.

Can I look for more information in my computer? Perhaps is there some problem with IRQ's, o memory allocation?

Thank you very much for your help!

Oscar
 
More data about Option 3GQuad

Can I look for more information in my computer? Perhaps is there some problem with IRQ's, o memory allocation?

Thank you very much for your help!

Oscar

Perhaps this information is useful...I don't know how to work with it.

Code:
# lspcmcia -vvv
Socket 0 Bridge:        [yenta_cardbus]         (bus ID: 0000:03:01.0)
        Configuration:  state: on       ready: yes
                        Voltage: 3.3V Vcc: 3.3V Vpp: 3.3V
                        Available IRQs: 3, 5, 6, 10, 11
                        Available ioports:      0x00000100 - 0x000004ff
                                                0x00000800 - 0x000008ff
                                                0x00000a00 - 0x00000aff
                                                0x00000c00 - 0x00000cff
                                                0x00002000 - 0x00002fff
                        Available iomem:        0x000c0000 - 0x000fffff
                                                0x50000000 - 0x51ffffff
                                                0x60000000 - 0x60ffffff
                                                0xa0000000 - 0xa0ffffff
                                                0xdce00000 - 0xdcefffff
Code:
# cat /proc/iomem
00000000-0009efff : System RAM
0009f000-0009ffff : reserved
000a0000-000bffff : Video RAM area
000c0000-000c7fff : Video ROM
000f0000-000fffff : System ROM
00100000-3ffd7fff : System RAM
  00100000-004713c6 : Kernel code
  004713c7-0058af43 : Kernel data
3ffd8000-3fffffff : reserved
50000000-51ffffff : PCI Bus #03
  50000000-51ffffff : PCI CardBus #04
52000000-53ffffff : PCI CardBus #04
  52000000-52000fff : 0000:04:00.0
  52001000-52001fff : 0000:04:00.1
c0000000-cfffffff : PCI Bus #01
  c0000000-cfffffff : 0000:01:00.0
dce00000-dcefffff : PCI Bus #03
  dce00000-dce00fff : 0000:03:01.0
    dce00000-dce00fff : yenta_socket
  dcefd000-dcefdfff : 0000:03:01.5
  dcefe000-dcefefff : 0000:03:01.5
  dceff000-dcefffff : 0000:03:03.0
    dceff000-dcefffff : ipw2200
dcf00000-dcffffff : PCI Bus #02
  dcff0000-dcffffff : 0000:02:00.0
    dcff0000-dcffffff : tg3
dd000000-dfefffff : PCI Bus #01
  dd000000-ddffffff : 0000:01:00.0
    dd000000-ddffffff : nvidia
  de000000-deffffff : 0000:01:00.0
  dfe00000-dfe1ffff : 0000:01:00.0
dffffd00-dffffdff : 0000:00:1e.2
  dffffd00-dffffdff : Intel ICH6
dffffe00-dfffffff : 0000:00:1e.2
  dffffe00-dfffffff : Intel ICH6
e0000000-f0006fff : reserved
f0008000-f000bfff : reserved
fec00000-fec0ffff : reserved
fed20000-fee0ffff : reserved
ffa80800-ffa80bff : 0000:00:1d.7
  ffa80800-ffa80bff : ehci_hcd
ffb00000-ffffffff : reserved

Code:
# cat /proc/interrupts
           CPU0
  0:    4894529    IO-APIC-edge  timer
  1:      15429    IO-APIC-edge  i8042
  8:          1    IO-APIC-edge  rtc
  9:          8   IO-APIC-level  acpi
 12:     223428    IO-APIC-edge  i8042
 14:      20645    IO-APIC-edge  libata
 15:      36278    IO-APIC-edge  libata
169:     252505   IO-APIC-level  ehci_hcd:usb1, uhci_hcd:usb2, Intel ICH6, nvidia
177:          5   IO-APIC-level  yenta, uhci_hcd:usb5
209:     117429   IO-APIC-level  uhci_hcd:usb3, ipw2200, Intel ICH6 Modem
217:          0   IO-APIC-level  uhci_hcd:usb4
NMI:          0
LOC:     363120
ERR:          0
MIS:          0
 
I Finally Made It Work !!!

I'm SOOOOOOO happy! I finally made it work. Both on Mandriva One live cd and on my openSUSE 10.2.
This is how:

- plug the huawei e220 (I used the short cable)
- wait for it to settle
- when KDE prompts you with that "what to do" window, select "do nothing"
- hald will still mount the modem. Find it with
Code:
# mount
and umount it. In my case:
Code:
# umount /dev/sr1
- I suggest that you now use the activator
- after you run it check if you have 2 or 3 ttyU* devices! If you only have one, or none, it's not OK!
- if you don't have 2 or 3, then continue the "traditional way":
Code:
# rmmod usb_storage
# modprobe usbserial vendor=0x12d1 product=0x1003
(you may "customize" modprobe's arguments depending on that lsusb shows you)
- check again. You should have 2 or 3 ttyU* devices:
Code:
# ls -l /dev/ttyU*
crw-rw---- 1 root uucp 188, 0 Jan 10 10:07 /dev/ttyUSB0
crw-rw---- 1 root uucp 188, 1 Jan 10 10:07 /dev/ttyUSB1
crw-rw---- 1 root uucp 188, 2 Jan 10 10:07 /dev/ttyUSB2
- this is my .conf. It works for Vodafone Romania. I changed it a bit after reading this page:
Code:
# cat /etc/wvdial.conf
[Dialer pin]
Init1 = AT+CPIN=1234

[Dialer hsdpa]
Phone = *99***16#
Username = internet.vodafone.ro
Password = vodafone
Stupid Mode = 1
Dial Command = ATDT
Modem = /dev/ttyUSB0
Baud = 460800
Init2 = ATZ
Init3 = ATE0V1&D2&C1S0=0+IFC=2,2
ISDN = 0
Modem Type = Analog Modem
Init5 =AT+CGDCONT=1,"IP","internet.vodafone.ro";
- and this is the dial sequence (I disabled PIN request):
Code:
# wvdial hsdpa
--> WvDial: Internet dialer version 1.54.0
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATZ
ATZ
OK
--> Sending: ATE0V1&D2&C1S0=0+IFC=2,2
ATE0V1&D2&C1S0=0+IFC=2,2
OK
--> Sending: AT+CGDCONT=1,"IP","internet.vodafone.ro";
OK
--> Modem initialized.
--> Sending: ATDT*99***16#
--> Waiting for carrier.
CONNECT
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Wed Jan 10 10:08:24 2007
--> pid of pppd: 5378
--> Using interface ppp0
--> pppd: Dial Command
--> pppd: Dial Command
--> pppd: Dial Command
--> pppd: Dial Command
--> pppd: Dial Command
--> local  IP address 172.23.30.211
--> pppd: Dial Command
--> remote IP address 10.64.64.64
--> pppd: Dial Command
--> primary   DNS address 193.230.161.3
--> pppd: Dial Command
--> secondary DNS address 193.230.161.4
--> pppd: Dial Command
--> Script /etc/ppp/ip-up run successful
--> Default route Ok.
--> Nameserver (DNS) Ok.
--> Connected... Press Ctrl-C to disconnect
--> pppd: Dial Command


Thank you for the patience you had with me! And good luck!
 
Hey oscarperpi,

With the card inserted, what does lsmod show ?

Laterz !


After inserting the card (and before using modprobe usbserial...)
Code:
~$ lsmod
Module                  Size  Used by
8250_pci               19904  0
8250_pnp                8576  0
8250                   20628  2 8250_pci,8250_pnp
serial_core            19328  1 8250
ipw2200                92268  0
snd_intel8x0m          15756  0
nvidia               4545236  12
Thanks.

Oscar.
 
Status
Not open for further replies.
Top
Sign up to the MyBroadband newsletter
X