What modem works fine on BSD? Where can i find drivers?

no,
Code:
ls /dev/
returns this:
Code:
acd0
acpi
ad0
ad0s1
ad0s2
ad0s2a
ad0s2b
ad0s2d
ad0s2e
ad0s2f
agpgart
ata
atkbd0
audit
bpf
bpf0
bpsm0
cd0
console
consolectl
ctty
da0
dcons
devctl
devstat
dgdb
fd
fido
geom.ctl
io
kbd0
kbd1
kbdmux0
klog
kmem
log
mdctl
mem
msdosfs
nfslock
null
pass0
pass1
pci
psm0
ptmx
random
stderr
stdin
stdout
sysmouse
ttyv0
ttyv1
ttyv2
ttyv3
ttyv4
ttyv5
ttyv6
ttyv7
ttyv8
ttyv9
ttyva
ttyvb
ttyvc
ttyvd
ttyve
ttyvf
ufsid
ugen0.1
ugen0.2
ugen1.1
ugen2.1
ugen3.1
ugen3.2
ugen4.1
ugen5.1
ugen5.2
ugen5.3
urandom
usb
usbctl
xpt0
zero
 
"No" would have been adequate. :)

If you're running an 8-stable GENERIC kernel, u3g should already be included in it. If you've made your own kernel without u3g and ucom, you have to either kldload them, or load them in /boot/loader.conf (as shown in the u3g(4) man page.

After all that, connecting the Huawei should give you /dev/cuaU0. That's the serial device you use with PPP.

I looked for a full 3G PPP example, and Nick Hibma's is the only one I found.
It's specific to a "KPN" provider, but may be a starting point. A good example should be in the Handbook, but... isn't.
 
u3g is already loaded by default. I am new to BSD, i prefer to start with a stable version(building my own kernel is for.... after)
Normally i should have this device, but i don't. :s What to do then?
 
Hmm. Looks like ucom isn't part of GENERIC. So kldload it:
# kldload ucom

After loading it, replug the Huawei and look for /dev/cuaU0.
 
wblock said:
Hmm. Looks like ucom isn't part of GENERIC. So kldload it:
# kldload ucom

After loading it, replug the Huawei and look for /dev/cuaU0.
ucom is already loaded :(
i tried to load every single module, i keep not getting /dev/cuaU0
 
Back to basics for a minute. Disconnect the Huawei. Restart the computer.

# uname -a
Show that output. Then:

# kldload u3g

That should complain, saying "File exists", because it's already built into the kernel.

Then:
# kldstat

If ucom is not shown, kldload it also. It should not complain.

Finally, connect the Huawei and do this:
# tail /var/log/messages
# ls /dev/cuaU*
# ls /dev/ttyU*
 
here you are:
Code:
#uname -a
FreeBSD  8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

#kldload u3g
kernel: module_register: module uhub/u3g already exists!
kernel: Module uhub/u3g failed to register: 17

#kldstat
Id Refs Address    Size     Name
 1    1 0xc0400000 b6dfe0   kernel

 #tail /var/log/messages
Jul 17 04:51:26  kernel: (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 
Jul 17 04:51:26  kernel: (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
Jul 17 04:51:26  kernel: (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition
Jul 17 04:51:26  kernel: (probe0:umass-sim0:0:0:0): NOT READY asc:3a,0
Jul 17 04:51:26  kernel: (probe0:umass-sim0:0:0:0): Medium not present
Jul 17 04:51:26  kernel: (probe0:umass-sim0:0:0:0): Unretryable error
Jul 17 04:51:26  kernel: cd0 at umass-sim0 bus 0 target 0 lun 0
Jul 17 04:51:26  kernel: cd0: <HUAWEI Mass Storage 2.31> Removable CD-ROM SCSI-0 device 
Jul 17 04:51:26  kernel: cd0: 1.000MB/s transfers
Jul 17 04:51:26  kernel: cd0: Attempt to query device size failed: NOT READY, Medium not present

#ls /dev/cuaU*
ls: No match.

#ls /dev/ttyU* 
ls: No match.
 
maroxe said:
here you are:
Code:
#uname -a
FreeBSD  8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

I'm sorry, knew I should have asked that earlier. You have 8-stable from Nov 21, 2009. The support for the Huawei E1752 (0x1446) wasn't added until April of 2010.

So update to the latest 8-stable. Here's a short form; if you have questions, probably should start a new thread on that:

*default release=cvs tag=RELENG_8 in your stable-supfile

# csup stable-supfile
# rm -rf /usr/obj
# cd /usr/src
# make buildworld
# make kernel
# reboot
# cd /usr/src
# make installworld
# mergemaster -Ui
# reboot
 
Oh! It was the kernel version!
Well, thanks a lot wblock for your precious help. It gonna be hard to upgrade without internet connection. :(
I will try that tomorrow. For now, i think it's time to go to bed.
thanks again and again
 
portupgrade

If your using the generic kernel using the binary update tool will probably be a bit easier.


Code:
#freebsd-update fetch install

Also if a net connection is a problem but you can get up to date cds RC2 might a viable option.
 
I think getting the FreeBSD 8.1-RC2 is the best option for now.
Is it stable enough to be used for every day use until it get upgraded to a RELEASE version?
 
I've just installed the RC2, i have now the cua-thing:
Code:
/dev/cuaU0.0
/dev/cuaU0.0.init
/dev/cuaU0.0.lock
/dev/cuaU0.1
/dev/cuaU0.1.init
/dev/cuaU0.1.lock
/dev/cuaU0.2
/dev/cuaU0.2.init
/dev/cuaU0.2.lock
I will try your tutorial wblock!
cheers :)
 
maroxe said:
I think getting the FreeBSD 8.1-RC2 is the best option for now.
Is it stable enough to be used for every day use until it get upgraded to a RELEASE version?

Many of us have been using -stable routinely for years. It's more solid than the release versions of most operating systems.
 
maroxe said:
I've just installed the RC2, i have now the cua-thing:
Code:
/dev/cuaU0.0
/dev/cuaU0.0.init
/dev/cuaU0.0.lock
/dev/cuaU0.1
/dev/cuaU0.1.init
/dev/cuaU0.1.lock
/dev/cuaU0.2
/dev/cuaU0.2.init
/dev/cuaU0.2.lock

Phew. Imagine how unhappy we both would have been if it hadn't worked!

One of those devices ought to respond to AT commands through cu(1).

Last night I found some more "PPP with 3G" links. Can't vouch for how accurate or current they are, and some are for FreeBSD 7.x, but still may be useful as a reference:

http://people.freebsd.org/~n_hibma/u3g.html
http://wiki.zs64.net/FreeBSD%27s_ppp%288%29_and_u3g_UMTS_modem
http://www.bsdguides.org/guides/freebsd/networking/3g_usb_internet
http://mjrx.wordpress.com/2009/03/26/freebsd-verizon-evdo3g-usb720-novatel-u720/
http://zenu.wordpress.com/2010/03/08/setting-up-orange-3g-modem-on-freebsd/
 
wblock, i really don't know how to thank you for all your efforts. Those links look great!
I am excited to reply to this topic from BSD. :)
 
I read those article,
this is the ppp.conf:
Code:
u3g:
	set device /dev/cuaU0.0
	set speed 115200
	# if the stick/the network fail to provide an IP unless you suggest one, the
	# following line might help
	#set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0
	# name of the APN
	set phone "internet"
	# username and password are often unnecessary, but almost always generic
	set authname internet
	set authkey  internet
	set log local phase ipcp
	set dial "ABORT BUSY TIMEOUT 2 \
		\"\" \
		AT OK-AT-OK \
		AT+CFUN=1 OK-AT-OK \
		AT+CMEE=2 OK-AT-OK \
		AT+CSQ OK \
		AT+CGDCONT=1,\\\"IP\\\",\\\"\T\\\" OK \
		AT+CGACT? OK-AT-OK \
		AT+CGATT? OK \
		AT+CGCLASS? OK \
		AT+COPS? OK \
		ATD*99***1# CONNECT"
 	set crtscts on
	# enable or disable updating /etc/resolv.conf with nameservers from the peer
	disable dns
	# add default route through this connection
	add default HISADDR

I connect with this command:
Code:
ppp --dial u3g

this si ppp.log:
Code:
Jul 17 18:45:22  ppp[991]: Phase: Using interface: tun0
Jul 17 18:45:22  ppp[991]: Phase: deflink: Created in closed state
Jul 17 18:45:22  ppp[993]: Phase: PPP Started (ddial mode).
Jul 17 18:45:22  ppp[993]: Phase: bundle: Establish
Jul 17 18:45:22  ppp[993]: Phase: deflink: closed -> opening
Jul 17 18:45:22  ppp[993]: Phase: deflink: Connected!
Jul 17 18:45:22  ppp[993]: Phase: deflink: opening -> dial
Jul 17 18:45:24  ppp[993]: Warning: Chat script failed
Jul 17 18:45:24  ppp[993]: Phase: deflink: dial -> hangup
Jul 17 18:45:24  ppp[993]: Phase: deflink: Disconnected!
Jul 17 18:45:24  ppp[993]: Phase: deflink: Connect time: 2 secs: 0 octets in, 0 octets out
Jul 17 18:45:24  ppp[993]: Phase: deflink: 0 packets in, 0 packets out
Jul 17 18:45:24  ppp[993]: Phase:  total 0 bytes/sec, peak 0 bytes/sec on Sat Jul 17 18:45:22 2010
Jul 17 18:45:24  ppp[993]: Phase: deflink: hangup -> opening
Jul 17 18:45:24  ppp[993]: Phase: deflink: Enter pause (30) for redialing.
Jul 17 18:45:54  ppp[993]: Phase: deflink: Connected!
Jul 17 18:45:54  ppp[993]: Phase: deflink: opening -> dial

dmes:
Code:
Jul 17 18:46:28  login: ROOT LOGIN (root) ON ttyv1
Jul 17 18:46:28  ppp[993]: Warning: Chat script failed

I am not sure about the ppp.conf, i don't know what to put in it.
 
I forget, this is ifconfig output:
Code:
msk0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=8010a<TXCSUM,VLAN_MTU,TSO4,LINKSTATE>
	ether 18:a9:05:d3:c9:30
	media: Ethernet autoselect
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=3<RXCSUM,TXCSUM>
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 
	inet6 ::1 prefixlen 128 
	inet 127.0.0.1 netmask 0xff000000 
	nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1500
	options=80000<LINKSTATE>
	Opened by PID 993
 
I DID IT!!!!!!!!!!!!!!!!!!!
FINALLY, IT WORKED!!!!!!!!!!!!!
As soon as i install xorg and all the stuff, i'll get you know how from BSD.

i don't know how to thank you, especially wblock. :)
 
maroxe said:
I DID IT!!!!!!!!!!!!!!!!!!!
FINALLY, IT WORKED!!!!!!!!!!!!!
As soon as i install xorg and all the stuff, i'll get you know how from BSD.

i don't know how to thank you, especially wblock. :)

One thing that would be nice would be to document in a single post what it took to get your u3g setup working. This not only helps others, but comes in handy when enough time has passed that you've forgotten it yourself.
 
It's not hard to install it, the hard thing was to find the right config file for ppp. I found this one in the net:

Code:
default:
set log Phase Chat LCP IPCP CCP tun command
ident user-ppp VERSION (built COMPILATIONDATE)

wana:
set device /dev/cuaU0.0

set speed 115200
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
set timeout 180
enable dns

set phone \#777
set authname inwi
set authkey inwi

set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR
i am using it without really knowing what every line does. What is really needed is a howto for ppp for 3g devices in the handbook5this thread is a good start: http://forums.freebsd.org/showthread.php?t=12829 )
 
I have already a problem:
The connection works fine for 3/4 minuts, then DNS queries are timing out.While in ppp (userland) I'm seeing
messages like:
Code:
Phase: deflink: HDLC errors -> FCS: 3, ADDR: 0, COMD: 0, PROTO: 0

the ping command works fine though.
:s
 
Back
Top