Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jan 2012 18:58:21 +0300
From:      Odhiambo Washington <odhiambo@gmail.com>
To:        Mike Tancsa <mike@sentex.net>
Cc:        questions <questions@freebsd.org>
Subject:   Re: FreeBSD 9 and 3G Modems
Message-ID:  <CAAdA2WOnpG=WqtJDFD=bAAd7AYnQspTqS4gy1T%2BsFhreu9xeUA@mail.gmail.com>
In-Reply-To: <4F2025B0.70503@sentex.net>
References:  <CAAdA2WOgnyPT%2BtF_vB%2BLdWFarpXwOv%2BJWrsi2RVAFKpP9_f6aA@mail.gmail.com> <4F1EDE5E.4070608@sentex.net> <CAAdA2WP0r2ijBg%2Bxppr9HCZYz-HWpWt_QnH0rZvOHVTdDOucKQ@mail.gmail.com> <4F2025B0.70503@sentex.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--0015174c0fe070363904b77075cb
Content-Type: text/plain; charset=UTF-8

On Wed, Jan 25, 2012 at 18:54, Mike Tancsa <mike@sentex.net> wrote:

> On 1/25/2012 5:43 AM, Odhiambo Washington wrote:
> >
> > I have a Huawei E1820
> >
> > I will also try RTFM.
>
> Hi,
>        kldload u3g
>        kldload umodem
>

Done, although kldload u3g tells me that file already exists! Perhaps
because I booted up with my Huawei dongle plugged in.
kldstat | grep u3g shows me nothing though.


>
> plug in the modem
>
> Show the output of
>
> usbconfig


[wash@pcbsd9] /home/wash# usbconfig
ugen0.1: <UHCI root HUB Intel> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps)
pwr=SAVE
ugen1.1: <UHCI root HUB Intel> at usbus1, cfg=0 md=HOST spd=FULL (12Mbps)
pwr=SAVE
ugen2.1: <EHCI root HUB Intel> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps)
pwr=SAVE
ugen3.1: <UHCI root HUB Intel> at usbus3, cfg=0 md=HOST spd=FULL (12Mbps)
pwr=SAVE
ugen4.1: <UHCI root HUB Intel> at usbus4, cfg=0 md=HOST spd=FULL (12Mbps)
pwr=SAVE
ugen5.1: <UHCI root HUB Intel> at usbus5, cfg=0 md=HOST spd=FULL (12Mbps)
pwr=SAVE
ugen6.1: <EHCI root HUB Intel> at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps)
pwr=SAVE
ugen6.2: <HUAWEI Mobile Huawei Technologies> at usbus6, cfg=0 md=HOST
spd=HIGH (480Mbps) pwr=ON
ugen0.2: <BCM2045B Broadcom Corp> at usbus0, cfg=0 md=HOST spd=FULL
(12Mbps) pwr=ON
ugen0.3: <Biometric Coprocessor STMicroelectronics> at usbus0, cfg=0
md=HOST spd=FULL (12Mbps) pwr=ON
ugen3.2: <Microsoft Nano Transceiver v1.0 Microsoft> at usbus3, cfg=0
md=HOST spd=FULL (12Mbps) pwr=ON


>
> then
>
>  sysctl -a dev.u3g
>

[wash@pcbsd9] /home/wash# sysctl -a dev.u3g
dev.u3g.0.%desc: Huawei Technologies HUAWEI Mobile, class 0/0, rev
2.00/0.00, addr 2
dev.u3g.0.%driver: u3g
dev.u3g.0.%location: bus=1 hubaddr=1 port=6 devaddr=2 interface=0
dev.u3g.0.%pnpinfo: vendor=0x12d1 product=0x1001 devclass=0x00
devsubclass=0x00 sernum="" release=0x0000 mode=host intclass=0xff
intsubclass=0xff
 intprotocol=0xff  ttyname=U0 ttyports=3
dev.u3g.0.%parent: uhub



> and
> ls -l /dev/cuaU*
>
>
[wash@pcbsd9] /home/wash# ls -l /dev/cuaU*
crw-rw----  1 uucp  dialer    0, 117 Jan 26 18:23 /dev/cuaU0.0
crw-rw----  1 uucp  dialer    0, 118 Jan 26 18:23 /dev/cuaU0.0.init
crw-rw----  1 uucp  dialer    0, 119 Jan 26 18:23 /dev/cuaU0.0.lock
crw-rw----  1 uucp  dialer    0, 123 Jan 26 18:23 /dev/cuaU0.1
crw-rw----  1 uucp  dialer    0, 124 Jan 26 18:23 /dev/cuaU0.1.init
crw-rw----  1 uucp  dialer    0, 125 Jan 26 18:23 /dev/cuaU0.1.lock
crw-rw----  1 uucp  dialer    0, 129 Jan 26 18:23 /dev/cuaU0.2
crw-rw----  1 uucp  dialer    0, 130 Jan 26 18:23 /dev/cuaU0.2.init
crw-rw----  1 uucp  dialer    0, 131 Jan 26 18:23 /dev/cuaU0.2.lock




> and
> dmesg
>


[wash@pcbsd9] /home/wash# dmesg
Copyright (c) 1992-2011 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 9.0-RELEASE #3: Tue Dec 27 14:14:29 PST 2011
    root@build9x64.pcbsd.org:/usr/obj/builds/amd64/pcbsd-build90/fbsd-source/9.0/sys/GENERIC
amd64
CPU: Intel(R) Core(TM)2 Duo CPU     T7300  @ 2.00GHz (1995.05-MHz K8-class
CPU)
  Origin = "GenuineIntel"  Id = 0x6fa  Family = 6  Model = f  Stepping = 10

Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0xe3bd<SSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM>
  AMD Features=0x20100800<SYSCALL,NX,LM>
  AMD Features2=0x1<LAHF>
  TSC: P-state invariant, performance statistics
real memory  = 4294967296 (4096 MB)
avail memory = 4000251904 (3814 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <LENOVO TP-7L   >
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ACPI Warning: 32/64X length mismatch in Gpe1Block: 0/32
(20110527/tbfadt-556)
ACPI Warning: Optional field Gpe1Block has zero address or length:
0x000000000000102C/0x0 (20110527/tbfadt-586)
ioapic0: Changing APIC ID to 1
ioapic0 <Version 2.0> irqs 0-23 on motherboard
kbd1 at kbdmux0
cryptosoft0: <software crypto> on motherboard
acpi0: <LENOVO TP-7L> on motherboard
CPU0: local APIC error 0x40
acpi_ec0: <Embedded Controller: GPE 0x12, ECDT> port 0x62,0x66 on acpi0
acpi0: Power Button (fixed)
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, bff00000 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> irq 16 at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
vgapci0: <VGA-compatible display> port 0x2000-0x207f mem
0xd6000000-0xd6ffffff,0xe0000000-0xefffffff,0xd4000000-0xd5ffffff irq 16 at
device 0.0 o
n pci1
nvidia0: <Quadro NVS 140M> on vgapci0
vgapci0: child nvidia0 requested pci_enable_io
vgapci0: child nvidia0 requested pci_enable_io
pci0: <simple comms> at device 3.0 (no driver attached)
atapci0: <Intel ATA controller> port
0x1820-0x1827,0x1814-0x1817,0x1818-0x181f,0x1810-0x1813,0x1800-0x180f irq
18 at device 3.2 on pci0
ata2: <ATA channel 0> on atapci0
ata3: <ATA channel 1> on atapci0
pci0: <simple comms, UART> at device 3.3 (no driver attached)
em0: <Intel(R) PRO/1000 Network Connection 7.2.3> port 0x1840-0x185f mem
0xfe200000-0xfe21ffff,0xfe225000-0xfe225fff irq 20 at device 25.0 on pci0
em0: Using an MSI interrupt
em0: Ethernet address: 00:15:58:c6:61:8b
uhci0: <Intel 82801H (ICH8) USB controller USB-D> port 0x1860-0x187f irq 20
at device 26.0 on pci0
usbus0: <Intel 82801H (ICH8) USB controller USB-D> on uhci0
uhci1: <Intel 82801H (ICH8) USB controller USB-E> port 0x1880-0x189f irq 21
at device 26.1 on pci0
usbus1: <Intel 82801H (ICH8) USB controller USB-E> on uhci1
ehci0: <Intel 82801H (ICH8) USB 2.0 controller USB2-B> mem
0xfe226c00-0xfe226fff irq 22 at device 26.7 on pci0
usbus2: EHCI version 1.0
usbus2: <Intel 82801H (ICH8) USB 2.0 controller USB2-B> on ehci0
hdac0: <Intel 82801H High Definition Audio Controller> mem
0xfe220000-0xfe223fff irq 17 at device 27.0 on pci0
pcib2: <ACPI PCI-PCI bridge> irq 20 at device 28.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> irq 21 at device 28.1 on pci0
pci3: <ACPI PCI bus> on pcib3
iwn0: <Intel(R) Wireless WiFi Link 4965> mem 0xdf2fe000-0xdf2fffff irq 17
at device 0.0 on pci3
pcib4: <ACPI PCI-PCI bridge> irq 22 at device 28.2 on pci0
pci4: <ACPI PCI bus> on pcib4
pcib5: <ACPI PCI-PCI bridge> irq 23 at device 28.3 on pci0
pci5: <ACPI PCI bus> on pcib5
pcib6: <ACPI PCI-PCI bridge> irq 20 at device 28.4 on pci0
pci13: <ACPI PCI bus> on pcib6
uhci2: <Intel 82801H (ICH8) USB controller USB-A> port 0x18a0-0x18bf irq 16
at device 29.0 on pci0
usbus3: <Intel 82801H (ICH8) USB controller USB-A> on uhci2
uhci3: <Intel 82801H (ICH8) USB controller USB-B> port 0x18c0-0x18df irq 17
at device 29.1 on pci0
usbus4: <Intel 82801H (ICH8) USB controller USB-B> on uhci3
uhci4: <Intel 82801H (ICH8) USB controller USB-C> port 0x18e0-0x18ff irq 18
at device 29.2 on pci0
usbus5: <Intel 82801H (ICH8) USB controller USB-C> on uhci4
ehci1: <Intel 82801H (ICH8) USB 2.0 controller USB2-A> mem
0xfe227000-0xfe2273ff irq 19 at device 29.7 on pci0
usbus6: EHCI version 1.0
usbus6: <Intel 82801H (ICH8) USB 2.0 controller USB2-A> on ehci1
pcib7: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci21: <ACPI PCI bus> on pcib7
cbb0: <RF5C476 PCI-CardBus Bridge> mem 0xf8100000-0xf8100fff irq 16 at
device 0.0 on pci21
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
fwohci0: <1394 Open Host Controller Interface> mem 0xf8101000-0xf81017ff
irq 17 at device 0.1 on pci21
fwohci0: OHCI version 1.10 (ROM=0)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:01:6c:20:00:16:af:4c
fwohci0: Phy 1394a available S400, 1 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
fwe0: <Ethernet over FireWire> on firewire0
if_fwe0: Fake Ethernet address: 02:01:6c:16:af:4c
fwe0: Ethernet address: 02:01:6c:16:af:4c
fwip0: <IP over FireWire> on firewire0
fwip0: Firewire address: 00:01:6c:20:00:16:af:4c @ 0xfffe00000000, S400,
maxrec 2048
dcons_crom0: <dcons configuration ROM> on firewire0
dcons_crom0: bus_addr 0x39e4000
fwohci0: Initiate bus reset
fwohci0: fwohci_intr_core: BUS reset
fwohci0: fwohci_intr_core: node_id=0x00000000, SelfID Count=1, CYCLEMASTER
mode
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci1: <Intel ICH8M UDMA100 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1830-0x183f at device 31.1 on pci0
ata0: <ATA channel 0> on atapci1
ahci0: <Intel ICH8M AHCI SATA controller> port
0x1c48-0x1c4f,0x1c1c-0x1c1f,0x1c40-0x1c47,0x1c18-0x1c1b,0x1c20-0x1c3f mem
0xfe226000-0xfe2267ff ir
q 16 at device 31.2 on pci0
ahci0: AHCI v1.10 with 3 1.5Gbps ports, Port Multiplier not supported
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 2 on ahci0
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
acpi_tz0: <Thermal Zone> on acpi0
acpi_tz1: <Thermal Zone> on acpi0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
Event timer "HPET" frequency 14318180 Hz quality 450
Event timer "HPET1" frequency 14318180 Hz quality 440
Event timer "HPET2" frequency 14318180 Hz quality 440
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> flags 0x1000 irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model Generic PS/2 mouse, device ID 0
battery0: <ACPI Control Method Battery> on acpi0
acpi_acad0: <AC Adapter> on acpi0
orm0: <ISA Option ROMs> at iomem
0xc0000-0xcefff,0xcf000-0xcffff,0xd0000-0xd0fff,0xe0000-0xeffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ppc0: cannot reserve I/O port range
est0: <Enhanced SpeedStep Frequency Control> on cpu0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
est1: <Enhanced SpeedStep Frequency Control> on cpu1
p4tcc1: <CPU Frequency Thermal Control> on cpu1
acpi_acad0: <AC Adapter> on acpi0
firewire0: bus manager 0
ZFS NOTICE: Prefetch is disabled by default if less than 4GB of RAM is
present;
            to enable, add "vfs.zfs.prefetch_disable=0" to
/boot/loader.conf.
ZFS filesystem version 5
ZFS storage pool version 28
Timecounters tick every 1.000 msec
hdac0: HDA Codec #0: Analog Devices AD1984
hdac0: hdac_command_send_internal: TIMEOUT numcmd=1, sent=1, received=0
hdac0: hdac_command_send_internal: TIMEOUT numcmd=1, sent=1, received=0
hdac0: Codec #1 is not responding! Probing aborted.
pcm0: <HDA Analog Devices AD1984 PCM #0 Analog> at cad 0 nid 1 on hdac0
pcm1: <HDA Analog Devices AD1984 PCM #1 Digital> at cad 0 nid 1 on hdac0
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 12Mbps Full Speed USB v1.0
usbus2: 480Mbps High Speed USB v2.0
usbus3: 12Mbps Full Speed USB v1.0
usbus4: 12Mbps Full Speed USB v1.0
usbus5: 12Mbps Full Speed USB v1.0
usbus6: 480Mbps High Speed USB v2.0
ugen0.1: <Intel> at usbus0
uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <Intel> at usbus1
uhub1: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen2.1: <Intel> at usbus2
uhub2: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
ugen3.1: <Intel> at usbus3
uhub3: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
ugen4.1: <Intel> at usbus4
uhub4: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4
ugen5.1: <Intel> at usbus5
uhub5: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus5
ugen6.1: <Intel> at usbus6
uhub6: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus6
uhub0: 2 ports with 2 removable, self powered
uhub1: 2 ports with 2 removable, self powered
uhub3: 2 ports with 2 removable, self powered
uhub4: 2 ports with 2 removable, self powered
uhub5: 2 ports with 2 removable, self powered
uhub2: 4 ports with 4 removable, self powered
ada0 at ahcich0 bus 0 scbus3 target 0 lun 0
ada0: <ST9250827AS 3.AAA> ATA-8 SATA 2.x device
ada0: 150.000MB/s transfers (SATA 1.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 238475MB (488397168 512 byte sectors: 16H 63S/T 16383C)
ada0: Previously was known as ad8
cd0 at ata0 bus 0 scbus2 target 0 lun 0
cd0: <MATSHITA DVD-RAM UJ-852 RB01> Removable CD-ROM SCSI-0 device
cd0: 33.300MB/s transfers (UDMA2, ATAPI 12bytes, SMP: AP CPU #1 Launched!
PIO 65534bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present
uhub6: 6 ports with 6 removable, self powered
Root mount waiting for: usbus6 usbus2
ugen6.2: <Huawei Technologies> at usbus6
u3g0: <Huawei Technologies HUAWEI Mobile, class 0/0, rev 2.00/0.00, addr 2>
on usbus6
u3g0: Found 3 ports.
ugen0.2: <Broadcom Corp> at usbus0
Root mount waiting for: usbus6
Trying to mount root from ufs:/dev/label/rootfs0 [rw,noatime]...
WARNING: / was not properly dismounted
ugen0.3: <STMicroelectronics> at usbus0
ugen3.2: <Microsoft> at usbus3
ukbd0: <Microsoft Microsoft Nano Transceiver v1.0, class 0/0, rev
2.00/6.64, addr 2> on usbus3
kbd2 at ukbd0
ums0: <Microsoft Microsoft Nano Transceiver v1.0, class 0/0, rev 2.00/6.64,
addr 2> on usbus3
ums0: 5 buttons and [XYZT] coordinates ID=26
ums0: 0 buttons and [T] coordinates ID=0
uhid0: <Microsoft Microsoft Nano Transceiver v1.0, class 0/0, rev
2.00/6.64, addr 2> on usbus3
ubt0: <Broadcom Corp BCM2045B, class 224/1, rev 2.00/1.00, addr 2> on usbus0
Cuse4BSD v0.1.21 @ /dev/cuse
wlan0: Ethernet address: 00:13:e8:3e:66:87
WARNING: attempt to domain_add(bluetooth) after domainfinalize()
WARNING: attempt to domain_add(netgraph) after domainfinalize()
fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8
em0: link state changed to UP


>
> On some 3g sticks, you have to send a command to put them in "modem
> mode". Typically this is done by 'ejecting the cd'
>
> camcontrol eject pass0
>
> But the driver knows of most of the variants out there and does that
>
>
My "cd" is disabled on the modem. I did it.



-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
I can't hear you -- I'm using the scrambler.
Please consider the environment before printing this email.

--0015174c0fe070363904b77075cb--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAdA2WOnpG=WqtJDFD=bAAd7AYnQspTqS4gy1T%2BsFhreu9xeUA>