Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO : Use blackberry 8700 as a GPRS Modem
View unanswered posts
View posts from last 24 hours

Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message

Joined: 15 Mar 2005
Posts: 233

PostPosted: Mon Sep 24, 2007 7:57 pm    Post subject: HOWTO : Use blackberry 8700 as a GPRS Modem Reply with quote

Since I finally got on the internet with my BlackBerry as a modem I figured I would share how I did it with the Gentoo community.

I am using gentoo sources 2.6.22 but also had success using vanilla sources 2.6.21.

First you will need some tools

I followed the guide from the following site

Required Software

--> XmBlackBerry
--> openmotif 2.3 (not in portage at time of writing)
--> Xlt
--> libusb
--> opensync (optional)
--> barry
--> sudo
--> wvdial

Kernel configuration

Make sure that the USB blackberry support is DISABLED

Device Drivers  --->
USB support  --->
< > USB BlackBerry recharge support

To install openmotif I just did a version bump of the current ebuild

mkdir -p /usr/local/portage/x11-libs/openmotif/
cp -r /usr/portage/x11-libs/openmotif/ cp -r /usr/local/portage/x11-libs/openmotif
cd /usr/local/portage/x11-libs/openmotif
cp openmotif-2.2.3-r9.ebuild openmotif-2.3.0.ebuild
wget -O /usr/portage/distfiles/openmotif-2.3.0.tar.gz

Then emerge openmotif 2.3


emerge openmotif

once that completes you will need to install a few more packages (from CVS)

Install libXlt


cd ~
cvs -d co Xlt
cd Xlt
make install

Grab the source for xMBlackBerry


cd ~
cvs co XmBlackBerry

In the XmBlackBerry source dir grab the libusb source


cd XmBlackBerry/
cvs -d co libusb

Lets make XmBlackberry


./configure --enable-maintainer-mode --disable-shared
make install

Install libusb for barry


cd libusb
make install

Install opensync (I keep getting compilation errors this is not needed to use the blackberry as a GPRS modem tho)


cd ../opensync
make install

Time to install barry


cd ~
cvs login
cvs -z3 co -P barry
cd barry
make install

Time to start XmBlackBerry

Connect your BlackBerry to your box using a USB cable.


sudo XmBlackBerry

when the application starts in the console you will see something like


serdata.c:initialize(237) - pty name. "/dev/pts/3"

If you see something like that XmBlackBerry has found your GPRS modem :)

Time to get connected to the internet

I use wvdial this application is in portage. (since kppp does not see /dev/pts/X as a modem)


emerge wvdial

here is the configuration that I used for /etc/wvdial.conf (I have a sprint BlackBerry so your config may vary by your provider)


[Dialer Defaults]
Baud = 115200
Carrier Check = no
ISDN = false
Idle Seconds = 180
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem = /dev/pts/3
Modem Type = USB Modem
Password = ''
Phone = #777
Stupid Mode = true
Username = ''

start the connection


sudo wvdial

you will see the following in the console

WvDial<*1>: WvDial: Internet dialer version 1.56
WvDial<*1>: Initializing modem.
WvDial<*1>: Sending: ATZ
WvDial Modem<*1>: ATZ
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<Notice>: Idle Seconds = 180, disabling automatic reconnect.
WvDial<*1>: Sending: ATDT#777
WvDial<*1>: Waiting for carrier.
WvDial Modem<*1>: ATDT#777
WvDial Modem<*1>: CONNECT
WvDial<*1>: Carrier detected.  Starting PPP immediately.
WvDial<Notice>: Starting pppd at Mon Sep 24 12:42:05 2007
WvDial<Notice>: Pid of pppd: 16927
WvDial<*1>: Using interface ppp0
WvDial<*1>: local  IP address xx.xx.xx.xx
WvDial<*1>: remote IP address xx.xx.xx.xx
WvDial<*1>: primary   DNS address xx.xx.xx.xx
WvDial<*1>: secondary DNS address xx.xx.xx.xx

It seems that the gateway does not get configured correctly when connecting using wvdial but that is easy to fix


route add default gw xx.xx.xx.xx

the xx.xx.xx.xx should be replaced with the remote IP that is provided to you from wvdial

YMMV but following these steps I was able to get online as well as configure my co workers laptop too. :)
Ubuntu -- An african word meaning 'Gentoo is too hard for me'
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum