johnsu01 ([info]johnsu01) wrote,
@ 2008-09-15 02:23:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Entry tags:emacs, freerunner, hacking, openmoko, qtopia, t-mobile

T-Mobile GPRS on the FreeRunner with Qtopia

I have a GPRS connection over T-Mobile basically working on my FreeRunner using the Qtopia software. It isn't yet working for dialing over bluetooth though, to use the phone as a modem for my laptop. I hope to figure that part out soon.

Things are a little erratic — sometimes I have to try an extra time or two before it will connect to the network.

First, go to Main > Settings > Internet. From the menu icon, select New and then GPRS.

Then do the Account settings. Account name is whatever you want. The APN should be internet2.voicestream.com. I leave "Startup mode" on "When needed", but this does not yet seem to have the desired effect of connecting on demand when sending an e-mail or what not. Username and Password should be blank.

In Network Settings, I have "Timeout" unchecked, and "Auto name server" checked. Maybe I shouldn't have "Timeout" unchecked. I don't really know.

Under Advanced, I have "Auto Routing" checked, and Hardware checked under "Flow ctrl". "Wait time" is set to 15s.

Now, ssh into the device. A patch is needed to /opt/Qtopia/bin/ppp-network to get these settings right when going through the GUI, but until then, here's what I did. I removed /etc/ppp/resolv.conf and symlinked it to /var/run/ppp/resolv.conf, which is the file that actually seems to get updated on ppp connect.

A patch is also needed to do the right thing with the /etc/ppp/chap-secrets file. With the file the way it is by default, the device will attempt to authenticate even though the ppp options file tells it not to. This results in no connection. So, I added a line to tell it to stop trying. This is what my file now looks like:

# Secrets for authentication using CHAP                                        
# client        server        secret    IP addresses                     
*                *        ""                        * 

Other files of interest on the device include:

  • /home/root/Applications/Network/chat: This is the chatscript created by the GUI. I imagine that fiddling with this might make starting the connection more reliable.
  • Various /etc/ppp/peers/dialup* files are created by the GUI, and those contain the ppp settings.


(Post a new comment)

I bought it! :)
(Anonymous)
2008-09-15 03:17 pm UTC (link)
I bought a Neo Freerunner on ebay.it and it will arrive tomorrow.
Do you suggest Qtopia or the new OM2008.8?

How stable is it with the new OM2008.8 late August patch?

(Reply to this)(Thread)

Re: I bought it! :)
[info]johnsu01
2008-09-15 03:22 pm UTC (link)
Cool! I've been using the Qtopia software and I can recommend that. I did not have such good luck with the OM2008.8 -- I had a lot of stability problems and it seemed quite a bit slower. YMMV though.

Unfortunately right now Qtopia does not have a web browser.. That will be remedied soon but that is probably my biggest issue with it right now compared to the other alternatives.

(Reply to this)(Parent)(Thread)

Re: I bought it! :)
(Anonymous)
2008-09-15 03:41 pm UTC (link)
Ops I was anonymous. :)
I am Graziano Sorbaioli: www.sorbaioli.org

Thanks John. I will install it and test it soon.

(Reply to this)(Parent)

Thanks
(Anonymous)
2008-09-25 07:34 am UTC (link)
Thanks so much.. i finally got my airtel gprs (in india) working on qtopia..

:)

(Reply to this)

What images have you used?
(Anonymous)
2008-10-24 02:18 pm UTC (link)
Hi,
I have tried to follow your instructions but it seems that I have different images on my Neo Freerunner.
What images have you used for Kernel and Qtopia?
The Kernel I have does not support ppp at all :-(
Thanks for your help,
Yair

(Reply to this)(Thread)

Re: What images have you used?
[info]johnsu01
2008-10-24 08:35 pm UTC (link)
This was with the official Qtopia 4.3 images from Trolltech. I haven't tried with the 4.4 images.

(Reply to this)(Parent)(Thread)

Re: What images have you used?
(Anonymous)
2008-10-25 10:53 am UTC (link)
Thanks! Off course I have tried the 4.4 version :-(

(Reply to this)(Parent)(Thread)

Re: What images have you used?
[info]johnsu01
2008-11-04 10:56 pm UTC (link)
Hm, I just installed the 4.4.2 image from qtextended.org and followed these same instructions and GPRS is working.

(Reply to this)(Parent)(Thread)

Re: What images have you used?
(Anonymous)
2008-11-11 10:52 pm UTC (link)
Hi,
I was able to connect in 4.3 but not in 4.4.2 .Followed all the steps :(

Any idea to debug this..

(Reply to this)(Parent)(Thread)

Re: What images have you used?
[info]johnsu01
2008-11-11 10:54 pm UTC (link)
Try ssh'ing into the phone and watching the output of "logread -f" while you connect GPRS?

(Reply to this)(Parent)(Thread)

Re: What images have you used?
(Anonymous)
2008-11-21 08:22 pm UTC (link)
thx a lot :)

with the logread -f i was able to find the kernel modules were not there..
once i added them.. its working :)

Shiva

(Reply to this)(Parent)


Create an Account
Forgot your login?
Login w/ OpenID
English • Español • Deutsch • Русский…