Re: GPRS / Wifi

2008-08-11 Thread Mike Baroukh
Thanks for your reply.
But I still not agree.

 which means of communications hould the fr chose?
configuration will say it.
the user ordered is preferences.
Maybe depending on price.
Maybe depending on performance.

so it's not really automatic (and had nothing to do with the keyboard
problem ;) ) : I choosed before.

If I take a concrete example : my ~/.wgetrc.
i wan't to connect to internet
- from home, with wifi, I have direct access to internet.
- from work, with wifi, I must use a proxy.
- from outside, I must use GPRS with another proxy.

It's easy to make a script that will update .wgetrc.
But there will be configuration
- in wpa_supplicant ( If I understood well).
- in post-up operations of pppd.

Those scripts are not specifics to users.
Everyone will have do the same.


Anyway, I'll try to do something for me and see if it can be shared.


arne anka a écrit :
 you can do that in wpa_supplicant.conf.
 just add your different wifi-aps to the conf (it does wep and no enc,  
 too)
 and let wpa_supplicant handle it.
   
 I'll take a look.
 But there must be something I don't understand.
 Because if wpa_supplicant handle only wifi, what about usb, gprs or
 other connections ?
 Is there a way to federate all network connections ?
 

 i am not sure if understand you issue at all.
 - you can handle all you known wifi networks in wpa_supplicant.conf. it's  
 not the user firenliest solution, but anyway
 - usb networking is a rather static way (since ip and probably dns are  
 more or less hardcoded on the fr)
 - gprs is subject to limitations beyound your reach -- ususally your  
 provider puts you in some kind of vpn, not available from the inet by othe  
 means then a proxy of your provider.
 - bt networking seem snot to be a widely used option

 so, imo the only means of networking subject to intelligent settings are  
 wfi and gprs.
 wifi is, as said before, configurable in wpa_supplicant.conf (ar any othe  
 way, like networkmanager).
 gprs does not need more than one setting since you usually use only the  
 entry point your provider offers.

 all connections use their own devices: eth0 for wifi, bnetX for bt (i  
 guess), ubs0 for usb and finally ppp0 (i think)  for gprs.
 the scripts below /etc/network/if-up.d/ and /etc/network/if-down.d/ have  
 acces to the name of the interface used for networking ($IFACE on my  
 debian box) -- thus you can easily distinguish the means of networking and  
 execute actions appropriately.

 something like internet [on|of] would be impractical imo not at least  
 because you very easy might find yourself in situations where both wifi  
 and gprs is available, you have tehterd you rf via usb to the notebook in  
 an attempt to use the fr as modem and there might even be one or more  
 people around you with enabled bluetooth.
 which means of communications hould the fr chose?

 while it might be decidable most of the time (have a rule basically  
 saying: if one of the wifi networks a, b, c or d is available, use it),  
 i'd rather have an app allowing me to check the means of communication i  
 want and that does not automatically connect, in the worst case to gprs  
 while i am out of area and causing heavy charges -- then we are basically  
 where the discussion on the asu keyboard switcher took off: what good is  
 automatism and who wants is?

 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community
   


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS / Wifi

2008-08-11 Thread arne anka
 If I take a concrete example : my ~/.wgetrc.
 i wan't to connect to internet
 - from home, with wifi, I have direct access to internet.
 - from work, with wifi, I must use a proxy.
 - from outside, I must use GPRS with another proxy.

 It's easy to make a script that will update .wgetrc.


why would you do that?
every attempt to connect to the net is directed to the currently defined  
gateway -- no matter if there's wifi or gprs in use. all programs  
connecting to the net should be absolutely agnostic to the kind of  
connection you use.
for the proxy: as someone mentioned before -- there is a global variable  
defining the proxy and this variable is checked for automatically.

in your up-/down-scripts you simply can set/unset the proxy variablke  
depending of the interface used.

none of your apps, be it wget or a browser, should care for that kind of  
information.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS / Wifi

2008-08-11 Thread Mike Baroukh

 for the proxy: as someone mentioned before -- there is a global variable  
 defining the proxy .

Does this mean that I have to re-start my applications when I connect ?
Not optimal ...

Anyway do you know who put this variable ?
And where to configure it's value ?


Mike


arne anka a écrit :
 If I take a concrete example : my ~/.wgetrc.
 i wan't to connect to internet
 - from home, with wifi, I have direct access to internet.
 - from work, with wifi, I must use a proxy.
 - from outside, I must use GPRS with another proxy.

 It's easy to make a script that will update .wgetrc.
 


 why would you do that?
 every attempt to connect to the net is directed to the currently defined  
 gateway -- no matter if there's wifi or gprs in use. all programs  
 connecting to the net should be absolutely agnostic to the kind of  
 connection you use.
 for the proxy: as someone mentioned before -- there is a global variable  
 defining the proxy and this variable is checked for automatically.

 in your up-/down-scripts you simply can set/unset the proxy variablke  
 depending of the interface used.

 none of your apps, be it wget or a browser, should care for that kind of  
 information.

 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community
   

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS / Wifi

2008-08-11 Thread Mike Baroukh

 i don't think so -- checking the proxy variable should be transparent to  
 the apps and done by which layer is responsible for managing th connection.
indeed, if the variable is only in environnement, you must restart.
Also, I'm still not sure that there is a variable.
Who can set it ? Only pam is able to do it.

In anyway, I'll try to make something.
I'd be happy if it's useful.
If not, I will be it's only user ...

thanks.


arne anka a écrit :
 for the proxy: as someone mentioned before -- there is a global variable
 defining the proxy .
   
 Does this mean that I have to re-start my applications when I connect ?
 Not optimal ...
 

 i don't think so -- checking the proxy variable should be transparent to  
 the apps and done by which layer is responsible for managing th connection.

   
 Anyway do you know who put this variable ?
 And where to configure it's value ?
 

 someone in this thread said it is called
 $http_proxy

 and you can set it in one of your if-up.d/ scripts in a way like

 if [ $IFACE -eq ppp0 ] ; then
   export $http_proxy=yourproxyforgprs
 fi

 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community
   

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS / Wifi

2008-08-11 Thread Stroller

On 11 Aug 2008, at 10:52, arne anka wrote:
 ...  all programs
 connecting to the net should be absolutely agnostic to the kind of
 connection you use.

What about the mail application? Every 5 minutes it should only check  
for new messages if you're on your provider's own network, not when  
you are on holiday in Spain. Thus when your contract's unlimited data  
use applies you get immediate notification of new emails, yet you  
don't get stung for $100s in roaming charges.

I described how the Nokia N95 handles this in my post of 10 August  
2008 13:30:19 BST (search for N95 in the subject) but perhaps not  
very clearly, as I hoped for more replies. Apparently I wasted too  
many paragraphs bitching about the Orange build of the Nokia  
software. But I would LOVE to know how this can be handled on an  
Openmoko device.

Stroller.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS / Wifi

2008-08-11 Thread arne anka
 What about the mail application? Every 5 minutes it should only check
 for new messages if you're on your provider's own network, not when
 you are on holiday in Spain.

i am afraid that's beyond the scope of the solution i outlined.
though i guess as soon as the necessary informations are available trough  
dbus or other means, such a solution will present itself.
it should fit into the rules based activity handling apparently being in  
progress.

 very clearly, as I hoped for more replies. Apparently I wasted too
 many paragraphs bitching about the Orange build of the Nokia

rather. i gave up after about 50% because everything was about what you  
didn't like about that n95 ..


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS / Wifi

2008-08-11 Thread Stroller

On 11 Aug 2008, at 16:11, Mike Baroukh wrote:

 What about the mail application? Every 5 minutes it should only check
 for new messages if you're on your provider's own network ...
 I described how the Nokia N95 handles this in my post of 10 August
 2008 13:30:19 BST (search for N95 in the subject) but perhaps not
 very clearly, as I hoped for more replies.

 Well, I found your post.
 Effectively, it was pretty ... long ...

On 11 Aug 2008, at 16:06, arne anka wrote:
 ... Apparently I wasted too
 many paragraphs bitching about the Orange build of the Nokia

 rather. i gave up after about 50% because everything was about what  
 you
 didn't like about that n95 ..

Thanks for your honest comments, guys. I'll really have to work on this.

Stroller.



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS / Wifi

2008-08-10 Thread Roland Mas
Mike Baroukh, 2008-08-10 00:52:11 +0200 :

 But I'm asking this : When using wifi or usb, I don't need a proxy.
 When using GPRS, I need a proxy.
 I will not re-configure anything each time.

 Does somebody know if there is a solution ?

  Putting scripts into /etc/network/if-up.d would probably work.

 for each connection, there would be parameters :
 - ip (static or dhcp)

  This should be configured in /etc/network/interfaces

 - nameserver
 - gateway

  This info can come from the DHCP server, the PPP remote end, or
static in /etc/network/interfaces again.

 - proxy (http / https / ftp  ...)
 - proxy type (transparent or not)
 - user/password for proxy
 - may be max upload/download bandwith
 - may be firewall rules

  Scripts are your friends there :-)

 Last : may be it could connect to internet transparently if needed by an
 application.

  At least on Debian, there's a diald package that does exactly
this.  I guess it could be ported to Openmoko.

Roland.
-- 
Roland Mas

M-x execute-extended-command

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS / Wifi

2008-08-10 Thread Mike Baroukh

 Putting scripts into /etc/network/if-up.d would probably work.

Not so easy :
- you may have 2 places where the same interface has different
parameters (wifi at home and wifi at work ...). So you can't just add
[pre|post]-up parameters in /etc/network/interface.
- Not so easy to configure tangogps, maemo, wget, mail client, ...

Thats why I think that place parameters should be part of the framework
and not just scripting.
Application then could be compiled for the framework and using shared
informations on how to connect.

Finally, connection parameters should not be part of the system.
They are part of my profiles = they don't ahve to be in
/etc/network/interface.
Personnaly, to connect wifi, I prefer to use a script like

INTERFACE=eth0
ifconfig $INTERFACE up
iwconfig $INTERFACE essid myessid
iwconfig $INTERFACE mode managed
iwconfig $INTERFACE channel 7
iwconfig $INTERFACE key open my wep key
udhcpc -i eth0



Roland Mas a écrit :
 Mike Baroukh, 2008-08-10 00:52:11 +0200 :

   
 But I'm asking this : When using wifi or usb, I don't need a proxy.
 When using GPRS, I need a proxy.
 I will not re-configure anything each time.

 Does somebody know if there is a solution ?
 

   Putting scripts into /etc/network/if-up.d would probably work.

   
 for each connection, there would be parameters :
 - ip (static or dhcp)
 

   This should be configured in /etc/network/interfaces

   
 - nameserver
 - gateway
 

   This info can come from the DHCP server, the PPP remote end, or
 static in /etc/network/interfaces again.

   
 - proxy (http / https / ftp  ...)
 - proxy type (transparent or not)
 - user/password for proxy
 - may be max upload/download bandwith
 - may be firewall rules
 

   Scripts are your friends there :-)

   
 Last : may be it could connect to internet transparently if needed by an
 application.
 

   At least on Debian, there's a diald package that does exactly
 this.  I guess it could be ported to Openmoko.

 Roland.
   


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS / Wifi

2008-08-10 Thread Roland Mas
Mike Baroukh, 2008-08-10 12:43:49 +0200 :


 Putting scripts into /etc/network/if-up.d would probably work.

 Not so easy :
 - you may have 2 places where the same interface has different
 parameters (wifi at home and wifi at work ...). So you can't just add
 [pre|post]-up parameters in /etc/network/interface.

Yes you can.  I do that on my laptop already: the scripts do the
detection of what Wifi access points are in the vicinity, and change
various parameters accordingly (WEP key, HTTP proxy, and I even used
to change the contents of /etc/apt/sources.list at some point).

 - Not so easy to configure tangogps, maemo, wget, mail client, ...

  Because they use different configuration schemes, I guess.  As for
Tangogps, I think you can already change the configuration with
gconftool-2.  As for the others, I don't know.

 Thats why I think that place parameters should be part of the framework
 and not just scripting.
 Application then could be compiled for the framework and using shared
 informations on how to connect.

  That looks like overkill to me.  Why add more complexity to the
framework when you already have a $http_proxy environment variable?

 Finally, connection parameters should not be part of the system.
 They are part of my profiles = they don't ahve to be in
 /etc/network/interface.

  And on that point, I wholeheartedly disagree.  Down that way lies
madness, and application-specific parameters, and a whole mess of
synchronisation problems and hard-to-debug stuff.

 Personnaly, to connect wifi, I prefer to use a script like

 INTERFACE=eth0
 ifconfig $INTERFACE up
 iwconfig $INTERFACE essid myessid
 iwconfig $INTERFACE mode managed
 iwconfig $INTERFACE channel 7
 iwconfig $INTERFACE key open my wep key
 udhcpc -i eth0

  I prefer using just ifup eth1 and have pre/post scripts in
/etc/network/interfaces or /etc/network/*.d, but that's a matter of
taste.

Roland.
-- 
Roland Mas

- Ogenki desuka, yau de poêle ?
- Genki desu, ture en zinc.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS / Wifi

2008-08-10 Thread arne anka
 Not so easy :
 - you may have 2 places where the same interface has different
 parameters (wifi at home and wifi at work ...). So you can't just add

you can do that in wpa_supplicant.conf.
just add your different wifi-aps to the conf (it does wep and no enc, too)  
and let wpa_supplicant handle it.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS / Wifi

2008-08-10 Thread Mike Baroukh

 you can do that in wpa_supplicant.conf.
 just add your different wifi-aps to the conf (it does wep and no enc, too)  
 and let wpa_supplicant handle it.
I'll take a look.
But there must be something I don't understand.
Because if wpa_supplicant handle only wifi, what about usb, gprs or
other connections ?
Is there a way to federate all network connections ?



arne anka a écrit :
 Not so easy :
 - you may have 2 places where the same interface has different
 parameters (wifi at home and wifi at work ...). So you can't just add
 

 you can do that in wpa_supplicant.conf.
 just add your different wifi-aps to the conf (it does wep and no enc, too)  
 and let wpa_supplicant handle it.

 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community
   


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS / Wifi

2008-08-10 Thread arne anka
 you can do that in wpa_supplicant.conf.
 just add your different wifi-aps to the conf (it does wep and no enc,  
 too)
 and let wpa_supplicant handle it.
 I'll take a look.
 But there must be something I don't understand.
 Because if wpa_supplicant handle only wifi, what about usb, gprs or
 other connections ?
 Is there a way to federate all network connections ?

i am not sure if understand you issue at all.
- you can handle all you known wifi networks in wpa_supplicant.conf. it's  
not the user firenliest solution, but anyway
- usb networking is a rather static way (since ip and probably dns are  
more or less hardcoded on the fr)
- gprs is subject to limitations beyound your reach -- ususally your  
provider puts you in some kind of vpn, not available from the inet by othe  
means then a proxy of your provider.
- bt networking seem snot to be a widely used option

so, imo the only means of networking subject to intelligent settings are  
wfi and gprs.
wifi is, as said before, configurable in wpa_supplicant.conf (ar any othe  
way, like networkmanager).
gprs does not need more than one setting since you usually use only the  
entry point your provider offers.

all connections use their own devices: eth0 for wifi, bnetX for bt (i  
guess), ubs0 for usb and finally ppp0 (i think)  for gprs.
the scripts below /etc/network/if-up.d/ and /etc/network/if-down.d/ have  
acces to the name of the interface used for networking ($IFACE on my  
debian box) -- thus you can easily distinguish the means of networking and  
execute actions appropriately.

something like internet [on|of] would be impractical imo not at least  
because you very easy might find yourself in situations where both wifi  
and gprs is available, you have tehterd you rf via usb to the notebook in  
an attempt to use the fr as modem and there might even be one or more  
people around you with enabled bluetooth.
which means of communications hould the fr chose?

while it might be decidable most of the time (have a rule basically  
saying: if one of the wifi networks a, b, c or d is available, use it),  
i'd rather have an app allowing me to check the means of communication i  
want and that does not automatically connect, in the worst case to gprs  
while i am out of area and causing heavy charges -- then we are basically  
where the discussion on the asu keyboard switcher took off: what good is  
automatism and who wants is?

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: GPRS / Wifi

2008-08-10 Thread arne anka
i need either a new keyboard or new hands ...

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


GPRS / Wifi

2008-08-09 Thread Mike Baroukh
Hi.

I succeded to connect to GRPS with FSO.
I never succedeed under OM2007 or ASU.
If somebody is interested, I'm in France and my provider is Bouyges Telecom.
I completed http://wiki.openmoko.org/wiki/Manually_using_GPRS with my APN.

But I'm asking this : When using wifi or usb, I don't need a proxy.
When using GPRS, I need a proxy.
I will not re-configure anything each time.

Does somebody know if there is a solution ?
(I will try to put an iptable rule to use my provider's proxy - wich is
a transparent proxy - but this will not work for https.)

To connect to internet, what would be nice is an application that just
make internet on or internet off.
And for this, it would
- check if usb is plugged and works - use usb
- check if a known wifi (whom I have password) network is usable - use it
- check if an open wifi network is usable - use it
[ add any way to connect here (bluetooth?) ]
- else connect to gprs

order should be configurable.
for each connection, there would be parameters :
- ip (static or dhcp)
- nameserver
- gateway
- proxy (http / https / ftp  ...)
- proxy type (transparent or not)
- user/password for proxy
- may be max upload/download bandwith
- may be firewall rules
- ...

an applet would just say :
internet : off
or
internet : on

if you click on it, it would display connection information and a
[dis]connect button.

and, finally, it would
- add an iptable to use the proxy transparently if supported - but
https wouldn't work.
- put proxy information somewhere in a file so applications use it and
use the correct way to connect to internet (instead of the proxy). This
way, https would work also.

Last : may be it could connect to internet transparently if needed by an
application.
An alert box then appear uring connection and disappear wen don,
returning to the application.
Of course, each connection profile can say if it can be used
automatically : I don't necessarely need that my gprs connection is used
if I don't have an ulimited plan.


Mike
















___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fast questions (email, GPRS, WiFi...)

2008-07-26 Thread Peter Nijs
After a while it became clear it was only reproducible when my neo can visibly 
see my router. When there's concrete in between it doesn't work for my neo. 
My notebook on the other hand reports 60% signal strength and can connect in 
seconds.

When udhcpc is sending discovers I can see on my router it is receiving 
these discovers and is assigning my neo an ip. Unfortunatly udhcpc keeps 
sending discovers as if it doesn't hear my router's respons.

Sometimes udhcpc outputs a couple of this lines Sending select for 
192.168.1.92 At these moments I can see on my router the lease time for 
that ip is forever. But after udhcpc outputted a couple of these lines it 
reverts to sending discovers.

When I leave udhcpc running for like 10 minutes it finally also receives a 
lease time which is quite forever (140773632 seconds). My router reports it 
as forever.

Here's my iwconfig output if it can be of any use:

[EMAIL PROTECTED]:~# iwconfig
lono wireless extensions.

usb0  no wireless extensions.

eth0  AR6000 802.11g  ESSID:PN
  Mode:Managed  Frequency:2.462 GHz  Access Point: 00:0E:2E:BA:1E:51
  Bit Rate=1 Mb/s   Tx-Power=15 dBm   Sensitivity=0/3
  Retry:on
  Encryption key:off
  Power Management:off
  Link Quality:172/94  Signal level:-179 dBm  Noise level:-96 dBm
  Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
  Tx excessive retries:39  Invalid misc:0   Missed beacon:0

I think it's mainly a bug in udhcpc which maibe isn't fully compatible with my 
edimax router and dhcp server.

Peter Nijs

Op Friday 25 July 2008 01:27:58 schreef Peter Nijs:
 With udhcpc eth0 immediatly after ifup eth0 I seem to get an IP
 (reproducably!). I also did ifdown usb0 now before I did ifup eth0. I was
 planning to that _after_ I got an IP on eth0. Thanks for the help!

 Peter Nijs

 Op Thursday 24 July 2008 23:09:12 schreef Jim Morris:
  Make sure you do ifdown usb0 before ifup eth0
 
  Then if dhcp does not get a lease first time through (which for me is
  about 50/50) then you can do this from the console which always gets the
  lease for me.
 
udhcpc eth0
 
  After that wifi should work.
 
  Peter Nijs wrote:
   After a whole lot of tweaking I still cannot get an IP from my wireless
   router. My current setup looks like this:
  
   /etc/network/interfaces:---
   # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
  
   # The loopback interface
   auto lo
   iface lo inet loopback
  
   # Wireless interfaces
   iface wlan0 inet dhcp
   wireless_mode managed
   wireless_essid any
   iface atml0 inet dhcp
  
   # Wired or wireless interfaces
   iface eth0 inet dhcp
  wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
  
   iface eth1 inet dhcp
  
   # Ethernet/RNDIS gadget (g_ether)
   # ... or on host side, usbnet and random hwaddr
   auto usb0
   iface usb0 inet static
 address 192.168.0.202
 netmask 255.255.255.0
 network 192.168.0.0
 gateway 192.168.0.200
 up echo nameserver 192.168.0.200 /etc/resolv.conf
  
   # Bluetooth networking
   iface bnep0 inet dhcp
  
  
   /etc/wpa_supplicant/wpa_supplicant:
  --  ctrl_interface=/var/run/wpa_supplicant
   ctrl_interface_group=0
   eapol_version=1
   ap_scan=1
   fast_reauth=0
  
   network={
ssid=PN
scan_ssid=1
key_mgmt=NONE
wep_tx_keyidx=0
  
wep_key0=I'm not showing that!
priority=8
   }
  
  
   Now here's what I do:
   [EMAIL PROTECTED]:~# ifup eth0
   sed: unrecognized option `--quiet'
   BusyBox v1.11.1 (2008-07-18 00:49:01 CEST) multi-call binary
  
   Usage: sed [-efinr] pattern [files...]
  
   WPA: Configuring Interface
   ioctl[SIOCSIWENCODEEXT]: Operation not supported
   ioctl[SIOCSIWENCODEEXT]: Operation not supported
   ioctl[SIOCSIWENCODEEXT]: Operation not supported
   ioctl[SIOCSIWENCODEEXT]: Operation not supported
   udhcpc (v1.11.1) started
   run-parts: /etc/udhcpc.d/00avahi-autoipd exited with code 1
   Sending discover...
   Sending discover...
   Sending discover...
   No lease, failing
   [EMAIL PROTECTED]:~# iwconfig
   lono wireless extensions.
  
   usb0  no wireless extensions.
  
   eth0  AR6000 802.11g  ESSID:PN
 Mode:Managed  Frequency:2.462 GHz  Access Point:
   00:0E:2E:BA:1E:51 Bit Rate=36 Mb/s   Tx-Power=15 dBm   Sensitivity=0/3
 Retry:on
 Encryption key:897B-9067-4C99-1AC7-B433-AABB-01   Security
   mode:open Power Management:off
 Link Quality:180/94  Signal level:-171 dBm  Noise level:-96
   dBm Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0 Tx
   excessive retries:7  Invalid misc:0   Missed beacon:1
  
   [EMAIL PROTECTED]:~# ifconfig eth0
   eth0  Link encap:Ethernet  HWaddr 00:12:CF:8E:E6:8D
 UP BROADCAST MULTICAST  MTU:1500  Metric:1
 RX 

Re: Fast questions (email, GPRS, WiFi...)

2008-07-25 Thread Charles-Henri Gros
Yaroslav Halchenko wrote:
 Is it possible to leave the USB connection up, so you can work on the
 Freerunner via ssh, and at the same time bring up the WIFI?
 sure -- just have wifi and usb0 on different networks (e.g.
 192.168.0.0/24 for usb and 192.168.1.0/24 for wifi). the only glitch
 might come if you are going to access internet and by default usb0 sets
 up itself as a gateway interface -- so just remove it from the route or
 directly from usb0 definition in interfaces

I use this:

iface eth0 inet dhcp
  wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
  up route del default dev usb0


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fast questions (email, GPRS, WiFi...)

2008-07-24 Thread Peter Nijs
After a whole lot of tweaking I still cannot get an IP from my wireless 
router. My current setup looks like this:

/etc/network/interfaces:---
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
 
# The loopback interface
auto lo
iface lo inet loopback

# Wireless interfaces
iface wlan0 inet dhcp
wireless_mode managed
wireless_essid any
iface atml0 inet dhcp

# Wired or wireless interfaces
iface eth0 inet dhcp
   wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

iface eth1 inet dhcp

# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
auto usb0
iface usb0 inet static
address 192.168.0.202
netmask 255.255.255.0
network 192.168.0.0
gateway 192.168.0.200
up echo nameserver 192.168.0.200 /etc/resolv.conf

# Bluetooth networking
iface bnep0 inet dhcp


/etc/wpa_supplicant/wpa_supplicant:--
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=0

network={
 ssid=PN
 scan_ssid=1
 key_mgmt=NONE
 wep_tx_keyidx=0

 wep_key0=I'm not showing that!
 priority=8
}


Now here's what I do:
[EMAIL PROTECTED]:~# ifup eth0
sed: unrecognized option `--quiet'
BusyBox v1.11.1 (2008-07-18 00:49:01 CEST) multi-call binary

Usage: sed [-efinr] pattern [files...]

WPA: Configuring Interface
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
udhcpc (v1.11.1) started
run-parts: /etc/udhcpc.d/00avahi-autoipd exited with code 1
Sending discover...
Sending discover...
Sending discover...
No lease, failing
[EMAIL PROTECTED]:~# iwconfig
lono wireless extensions.

usb0  no wireless extensions.

eth0  AR6000 802.11g  ESSID:PN
  Mode:Managed  Frequency:2.462 GHz  Access Point: 00:0E:2E:BA:1E:51
  Bit Rate=36 Mb/s   Tx-Power=15 dBm   Sensitivity=0/3
  Retry:on
  Encryption key:897B-9067-4C99-1AC7-B433-AABB-01   Security mode:open
  Power Management:off
  Link Quality:180/94  Signal level:-171 dBm  Noise level:-96 dBm
  Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
  Tx excessive retries:7  Invalid misc:0   Missed beacon:1

[EMAIL PROTECTED]:~# ifconfig eth0
eth0  Link encap:Ethernet  HWaddr 00:12:CF:8E:E6:8D
  UP BROADCAST MULTICAST  MTU:1500  Metric:1
  RX packets:646 errors:0 dropped:0 overruns:0 frame:0
  TX packets:419 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:278955 (272.4 KiB)  TX bytes:20950 (20.4 KiB)

[EMAIL PROTECTED]:~#

While udhcpc is sending discovers I can see my router is leasing my neo a 
valid ip for 60 seconds each sending discover.

Sometimes, in very rare cases I can get a decent lease. But that is not 
reproducible. I think it's happened three times to me the last three days.

Anyone knows how I could get an IP reliably?

Peter Nijs

Op Sunday 13 July 2008 01:05:12 schreef Jim Morris:
 arne anka wrote:
  well, i did what
  http://wiki.openmoko.org/wiki/GTA02_wlan
  says -- adding
 
  iface eth0 inet dhcp
  wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

 Ok that worked, although I have some routing issues now. The manual method
 did not work though.

   iwconfig

 eth0  AR6000 802.11g  ESSID:morrisnetwork2
Mode:Managed  Frequency:2.422 GHz  Access Point:
 00:1D:5A:BB:FA:A9 Bit Rate=48 Mb/s   Tx-Power=16 dBm   Sensitivity=0/3
Retry:on
Encryption key:off
Power Management:off
Link Quality:207/94  Signal level:-144 dBm  Noise level:-96 dBm
Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
Tx excessive retries:17  Invalid misc:0   Missed beacon:11

 Although it says encryption key off, but I presume wpa_supplicant is
 handling that.

   ifconfig

 eth0  Link encap:Ethernet  HWaddr 00:12:CF:74:20:A8
inet addr:192.168.1.70  Bcast:192.168.1.255  Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:1657 errors:0 dropped:0 overruns:0 frame:0
TX packets:832 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:725595 (708.5 KiB)  TX bytes:37892 (37.0 KiB)


 So its connected to my access point, and I turned off eth0, but I cannot
 ping the wireless, I'll work on that it may be routing or it may be
 encryption.

 Thanks all.




signature.asc
Description: This is a digitally signed message part.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fast questions (email, GPRS, WiFi...)

2008-07-24 Thread Jim Morris
Make sure you do ifdown usb0 before ifup eth0

Then if dhcp does not get a lease first time through (which for me is about 
50/50)
then you can do this from the console which always gets the lease for me.

  udhcpc eth0

After that wifi should work.

Peter Nijs wrote:
 After a whole lot of tweaking I still cannot get an IP from my wireless 
 router. My current setup looks like this:
 
 /etc/network/interfaces:---
 # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
  
 # The loopback interface
 auto lo
 iface lo inet loopback
 
 # Wireless interfaces
 iface wlan0 inet dhcp
 wireless_mode managed
 wireless_essid any
 iface atml0 inet dhcp
 
 # Wired or wireless interfaces
 iface eth0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
 
 iface eth1 inet dhcp
 
 # Ethernet/RNDIS gadget (g_ether)
 # ... or on host side, usbnet and random hwaddr
 auto usb0
 iface usb0 inet static
   address 192.168.0.202
   netmask 255.255.255.0
   network 192.168.0.0
   gateway 192.168.0.200
   up echo nameserver 192.168.0.200 /etc/resolv.conf
 
 # Bluetooth networking
 iface bnep0 inet dhcp
 
 
 /etc/wpa_supplicant/wpa_supplicant:--
 ctrl_interface=/var/run/wpa_supplicant
 ctrl_interface_group=0
 eapol_version=1
 ap_scan=1
 fast_reauth=0
 
 network={
  ssid=PN
  scan_ssid=1
  key_mgmt=NONE
  wep_tx_keyidx=0
 
  wep_key0=I'm not showing that!
  priority=8
 }
 
 
 Now here's what I do:
 [EMAIL PROTECTED]:~# ifup eth0
 sed: unrecognized option `--quiet'
 BusyBox v1.11.1 (2008-07-18 00:49:01 CEST) multi-call binary
 
 Usage: sed [-efinr] pattern [files...]
 
 WPA: Configuring Interface
 ioctl[SIOCSIWENCODEEXT]: Operation not supported
 ioctl[SIOCSIWENCODEEXT]: Operation not supported
 ioctl[SIOCSIWENCODEEXT]: Operation not supported
 ioctl[SIOCSIWENCODEEXT]: Operation not supported
 udhcpc (v1.11.1) started
 run-parts: /etc/udhcpc.d/00avahi-autoipd exited with code 1
 Sending discover...
 Sending discover...
 Sending discover...
 No lease, failing
 [EMAIL PROTECTED]:~# iwconfig
 lono wireless extensions.
 
 usb0  no wireless extensions.
 
 eth0  AR6000 802.11g  ESSID:PN
   Mode:Managed  Frequency:2.462 GHz  Access Point: 00:0E:2E:BA:1E:51
   Bit Rate=36 Mb/s   Tx-Power=15 dBm   Sensitivity=0/3
   Retry:on
   Encryption key:897B-9067-4C99-1AC7-B433-AABB-01   Security mode:open
   Power Management:off
   Link Quality:180/94  Signal level:-171 dBm  Noise level:-96 dBm
   Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
   Tx excessive retries:7  Invalid misc:0   Missed beacon:1
 
 [EMAIL PROTECTED]:~# ifconfig eth0
 eth0  Link encap:Ethernet  HWaddr 00:12:CF:8E:E6:8D
   UP BROADCAST MULTICAST  MTU:1500  Metric:1
   RX packets:646 errors:0 dropped:0 overruns:0 frame:0
   TX packets:419 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:1000
   RX bytes:278955 (272.4 KiB)  TX bytes:20950 (20.4 KiB)
 
 [EMAIL PROTECTED]:~#
 
 While udhcpc is sending discovers I can see my router is leasing my neo a 
 valid ip for 60 seconds each sending discover.
 
 Sometimes, in very rare cases I can get a decent lease. But that is not 
 reproducible. I think it's happened three times to me the last three days.
 
 Anyone knows how I could get an IP reliably?
 
 Peter Nijs
 
 Op Sunday 13 July 2008 01:05:12 schreef Jim Morris:
 arne anka wrote:
 well, i did what
 http://wiki.openmoko.org/wiki/GTA02_wlan
 says -- adding

 iface eth0 inet dhcp
 wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
 Ok that worked, although I have some routing issues now. The manual method
 did not work though.

   iwconfig

 eth0  AR6000 802.11g  ESSID:morrisnetwork2
Mode:Managed  Frequency:2.422 GHz  Access Point:
 00:1D:5A:BB:FA:A9 Bit Rate=48 Mb/s   Tx-Power=16 dBm   Sensitivity=0/3
Retry:on
Encryption key:off
Power Management:off
Link Quality:207/94  Signal level:-144 dBm  Noise level:-96 dBm
Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
Tx excessive retries:17  Invalid misc:0   Missed beacon:11

 Although it says encryption key off, but I presume wpa_supplicant is
 handling that.

   ifconfig

 eth0  Link encap:Ethernet  HWaddr 00:12:CF:74:20:A8
inet addr:192.168.1.70  Bcast:192.168.1.255  Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:1657 errors:0 dropped:0 overruns:0 frame:0
TX packets:832 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:725595 (708.5 KiB)  TX bytes:37892 (37.0 KiB)


 So its connected to my access point, and I turned off eth0, but I cannot
 

Re: Fast questions (email, GPRS, WiFi...)

2008-07-24 Thread Dale Schumacher
On Thu, Jul 24, 2008 at 4:09 PM, Jim Morris [EMAIL PROTECTED] wrote:

 Make sure you do ifdown usb0 before ifup eth0

 Then if dhcp does not get a lease first time through (which for me is about 
 50/50)
 then you can do this from the console which always gets the lease for me.

   udhcpc eth0

 After that wifi should work.

 Peter Nijs wrote:
  After a whole lot of tweaking I still cannot get an IP from my wireless
  router. My current setup looks like this:

OK.  This feels like it's going to be a dumb questions, but I'm going
to ask it anyway.

Is it possible to leave the USB connection up, so you can work on the
Freerunner via ssh, and at the same time bring up the WIFI?

If so, can be made to work both when routing through the host to the
internet as well as when you're only using ssh as an easier way to
work on the Freerunner.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fast questions (email, GPRS, WiFi...)

2008-07-24 Thread Al Johnson
It's also worth using wpa_cli  to see whether wpa_supplicant it associating 
with the AP properly.

On Thursday 24 July 2008, Jim Morris wrote:
 Make sure you do ifdown usb0 before ifup eth0

 Then if dhcp does not get a lease first time through (which for me is about
 50/50) then you can do this from the console which always gets the lease
 for me.

   udhcpc eth0

 After that wifi should work.

 Peter Nijs wrote:
  After a whole lot of tweaking I still cannot get an IP from my wireless
  router. My current setup looks like this:
 
  /etc/network/interfaces:---
  # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
 
  # The loopback interface
  auto lo
  iface lo inet loopback
 
  # Wireless interfaces
  iface wlan0 inet dhcp
  wireless_mode managed
  wireless_essid any
  iface atml0 inet dhcp
 
  # Wired or wireless interfaces
  iface eth0 inet dhcp
 wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
 
  iface eth1 inet dhcp
 
  # Ethernet/RNDIS gadget (g_ether)
  # ... or on host side, usbnet and random hwaddr
  auto usb0
  iface usb0 inet static
  address 192.168.0.202
  netmask 255.255.255.0
  network 192.168.0.0
  gateway 192.168.0.200
  up echo nameserver 192.168.0.200 /etc/resolv.conf
 
  # Bluetooth networking
  iface bnep0 inet dhcp
 
 
  /etc/wpa_supplicant/wpa_supplicant:--
  ctrl_interface=/var/run/wpa_supplicant
  ctrl_interface_group=0
  eapol_version=1
  ap_scan=1
  fast_reauth=0
 
  network={
   ssid=PN
   scan_ssid=1
   key_mgmt=NONE
   wep_tx_keyidx=0
 
   wep_key0=I'm not showing that!
   priority=8
  }
 
 
  Now here's what I do:
  [EMAIL PROTECTED]:~# ifup eth0
  sed: unrecognized option `--quiet'
  BusyBox v1.11.1 (2008-07-18 00:49:01 CEST) multi-call binary
 
  Usage: sed [-efinr] pattern [files...]
 
  WPA: Configuring Interface
  ioctl[SIOCSIWENCODEEXT]: Operation not supported
  ioctl[SIOCSIWENCODEEXT]: Operation not supported
  ioctl[SIOCSIWENCODEEXT]: Operation not supported
  ioctl[SIOCSIWENCODEEXT]: Operation not supported
  udhcpc (v1.11.1) started
  run-parts: /etc/udhcpc.d/00avahi-autoipd exited with code 1
  Sending discover...
  Sending discover...
  Sending discover...
  No lease, failing
  [EMAIL PROTECTED]:~# iwconfig
  lono wireless extensions.
 
  usb0  no wireless extensions.
 
  eth0  AR6000 802.11g  ESSID:PN
Mode:Managed  Frequency:2.462 GHz  Access Point:
  00:0E:2E:BA:1E:51 Bit Rate=36 Mb/s   Tx-Power=15 dBm   Sensitivity=0/3
Retry:on
Encryption key:897B-9067-4C99-1AC7-B433-AABB-01   Security
  mode:open Power Management:off
Link Quality:180/94  Signal level:-171 dBm  Noise level:-96 dBm
Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
Tx excessive retries:7  Invalid misc:0   Missed beacon:1
 
  [EMAIL PROTECTED]:~# ifconfig eth0
  eth0  Link encap:Ethernet  HWaddr 00:12:CF:8E:E6:8D
UP BROADCAST MULTICAST  MTU:1500  Metric:1
RX packets:646 errors:0 dropped:0 overruns:0 frame:0
TX packets:419 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:278955 (272.4 KiB)  TX bytes:20950 (20.4 KiB)
 
  [EMAIL PROTECTED]:~#
 
  While udhcpc is sending discovers I can see my router is leasing my neo a
  valid ip for 60 seconds each sending discover.
 
  Sometimes, in very rare cases I can get a decent lease. But that is not
  reproducible. I think it's happened three times to me the last three
  days.
 
  Anyone knows how I could get an IP reliably?
 
  Peter Nijs
 
  Op Sunday 13 July 2008 01:05:12 schreef Jim Morris:
  arne anka wrote:
  well, i did what
  http://wiki.openmoko.org/wiki/GTA02_wlan
  says -- adding
 
  iface eth0 inet dhcp
  wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
 
  Ok that worked, although I have some routing issues now. The manual
  method did not work though.
 
iwconfig
 
  eth0  AR6000 802.11g  ESSID:morrisnetwork2
 Mode:Managed  Frequency:2.422 GHz  Access Point:
  00:1D:5A:BB:FA:A9 Bit Rate=48 Mb/s   Tx-Power=16 dBm   Sensitivity=0/3
 Retry:on
 Encryption key:off
 Power Management:off
 Link Quality:207/94  Signal level:-144 dBm  Noise level:-96
  dBm Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0 Tx
  excessive retries:17  Invalid misc:0   Missed beacon:11
 
  Although it says encryption key off, but I presume wpa_supplicant is
  handling that.
 
ifconfig
 
  eth0  Link encap:Ethernet  HWaddr 00:12:CF:74:20:A8
 inet addr:192.168.1.70  Bcast:192.168.1.255 
  Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 RX packets:1657 errors:0 dropped:0 overruns:0 frame:0
 TX packets:832 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 

Re: Fast questions (email, GPRS, WiFi...)

2008-07-24 Thread Yaroslav Halchenko

 Is it possible to leave the USB connection up, so you can work on the
 Freerunner via ssh, and at the same time bring up the WIFI?
sure -- just have wifi and usb0 on different networks (e.g.
192.168.0.0/24 for usb and 192.168.1.0/24 for wifi). the only glitch
might come if you are going to access internet and by default usb0 sets
up itself as a gateway interface -- so just remove it from the route or
directly from usb0 definition in interfaces
-- 
Yaroslav Halchenko
Research Assistant, Psychology Department, Rutgers-Newark
Student  Ph.D. @ CS Dept. NJIT
Office: (973) 353-5440x263 | FWD: 82823 | Fax: (973) 353-1171
101 Warren Str, Smith Hall, Rm 4-105, Newark NJ 07102
WWW: http://www.linkedin.com/in/yarik

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fast questions (email, GPRS, WiFi...)

2008-07-24 Thread Evan




"wep_key0=I'm not showing that!"

its wep, therefore obsolete. if anyone lives near you and wants to know
your key, they will take the 10 minutes or less that it takes to crack
any wep key. consider wpa


Jim Morris wrote:

  Make sure you do ifdown usb0 before ifup eth0

Then if dhcp does not get a lease first time through (which for me is about 50/50)
then you can do this from the console which always gets the lease for me.

  udhcpc eth0

After that wifi should work.

Peter Nijs wrote:
  
  
After a whole lot of tweaking I still cannot get an IP from my wireless 
router. My current setup looks like this:

/etc/network/interfaces:---
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
 
# The loopback interface
auto lo
iface lo inet loopback

# Wireless interfaces
iface wlan0 inet dhcp
wireless_mode managed
wireless_essid any
iface atml0 inet dhcp

# Wired or wireless interfaces
iface eth0 inet dhcp
   wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

iface eth1 inet dhcp

# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
auto usb0
iface usb0 inet static
	address 192.168.0.202
	netmask 255.255.255.0
	network 192.168.0.0
	gateway 192.168.0.200
	up echo nameserver 192.168.0.200 /etc/resolv.conf

# Bluetooth networking
iface bnep0 inet dhcp


/etc/wpa_supplicant/wpa_supplicant:--
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=0

network={
 ssid="PN"
 scan_ssid=1
 key_mgmt=NONE
 wep_tx_keyidx=0

 wep_key0=I'm not showing that!
 priority=8
}


Now here's what I do:
[EMAIL PROTECTED]:~# ifup eth0
sed: unrecognized option `--quiet'
BusyBox v1.11.1 (2008-07-18 00:49:01 CEST) multi-call binary

Usage: sed [-efinr] pattern [files...]

WPA: Configuring Interface
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
udhcpc (v1.11.1) started
run-parts: /etc/udhcpc.d/00avahi-autoipd exited with code 1
Sending discover...
Sending discover...
Sending discover...
No lease, failing
[EMAIL PROTECTED]:~# iwconfig
lono wireless extensions.

usb0  no wireless extensions.

eth0  AR6000 802.11g  ESSID:"PN"
  Mode:Managed  Frequency:2.462 GHz  Access Point: 00:0E:2E:BA:1E:51
  Bit Rate=36 Mb/s   Tx-Power=15 dBm   Sensitivity=0/3
  Retry:on
  Encryption key:897B-9067-4C99-1AC7-B433-AABB-01   Security mode:open
  Power Management:off
  Link Quality:180/94  Signal level:-171 dBm  Noise level:-96 dBm
  Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
  Tx excessive retries:7  Invalid misc:0   Missed beacon:1

[EMAIL PROTECTED]:~# ifconfig eth0
eth0  Link encap:Ethernet  HWaddr 00:12:CF:8E:E6:8D
  UP BROADCAST MULTICAST  MTU:1500  Metric:1
  RX packets:646 errors:0 dropped:0 overruns:0 frame:0
  TX packets:419 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:278955 (272.4 KiB)  TX bytes:20950 (20.4 KiB)

[EMAIL PROTECTED]:~#

While udhcpc is sending discovers I can see my router is leasing my neo a 
valid ip for 60 seconds each "sending discover".

Sometimes, in very rare cases I can get a decent lease. But that is not 
reproducible. I think it's happened three times to me the last three days.

Anyone knows how I could get an IP reliably?

Peter Nijs

Op Sunday 13 July 2008 01:05:12 schreef Jim Morris:


  arne anka wrote:
  
  
well, i did what
http://wiki.openmoko.org/wiki/GTA02_wlan
says -- adding

iface eth0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

  
  Ok that worked, although I have some routing issues now. The manual method
did not work though.

  iwconfig

eth0  AR6000 802.11g  ESSID:"morrisnetwork2"
   Mode:Managed  Frequency:2.422 GHz  Access Point:
00:1D:5A:BB:FA:A9 Bit Rate=48 Mb/s   Tx-Power=16 dBm   Sensitivity=0/3
   Retry:on
   Encryption key:off
   Power Management:off
   Link Quality:207/94  Signal level:-144 dBm  Noise level:-96 dBm
   Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
   Tx excessive retries:17  Invalid misc:0   Missed beacon:11

Although it says encryption key off, but I presume wpa_supplicant is
handling that.

  ifconfig

eth0  Link encap:Ethernet  HWaddr 00:12:CF:74:20:A8
   inet addr:192.168.1.70  Bcast:192.168.1.255  Mask:255.255.255.0
   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
   RX packets:1657 errors:0 dropped:0 overruns:0 frame:0
   TX packets:832 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 

Re: Fast questions (email, GPRS, WiFi...)

2008-07-24 Thread Peter Nijs
With udhcpc eth0 immediatly after ifup eth0 I seem to get an IP 
(reproducably!). I also did ifdown usb0 now before I did ifup eth0. I was 
planning to that _after_ I got an IP on eth0. Thanks for the help!

Peter Nijs

Op Thursday 24 July 2008 23:09:12 schreef Jim Morris:
 Make sure you do ifdown usb0 before ifup eth0

 Then if dhcp does not get a lease first time through (which for me is about
 50/50) then you can do this from the console which always gets the lease
 for me.

   udhcpc eth0

 After that wifi should work.

 Peter Nijs wrote:
  After a whole lot of tweaking I still cannot get an IP from my wireless
  router. My current setup looks like this:
 
  /etc/network/interfaces:---
  # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
 
  # The loopback interface
  auto lo
  iface lo inet loopback
 
  # Wireless interfaces
  iface wlan0 inet dhcp
  wireless_mode managed
  wireless_essid any
  iface atml0 inet dhcp
 
  # Wired or wireless interfaces
  iface eth0 inet dhcp
 wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
 
  iface eth1 inet dhcp
 
  # Ethernet/RNDIS gadget (g_ether)
  # ... or on host side, usbnet and random hwaddr
  auto usb0
  iface usb0 inet static
  address 192.168.0.202
  netmask 255.255.255.0
  network 192.168.0.0
  gateway 192.168.0.200
  up echo nameserver 192.168.0.200 /etc/resolv.conf
 
  # Bluetooth networking
  iface bnep0 inet dhcp
 
 
  /etc/wpa_supplicant/wpa_supplicant:--
  ctrl_interface=/var/run/wpa_supplicant
  ctrl_interface_group=0
  eapol_version=1
  ap_scan=1
  fast_reauth=0
 
  network={
   ssid=PN
   scan_ssid=1
   key_mgmt=NONE
   wep_tx_keyidx=0
 
   wep_key0=I'm not showing that!
   priority=8
  }
 
 
  Now here's what I do:
  [EMAIL PROTECTED]:~# ifup eth0
  sed: unrecognized option `--quiet'
  BusyBox v1.11.1 (2008-07-18 00:49:01 CEST) multi-call binary
 
  Usage: sed [-efinr] pattern [files...]
 
  WPA: Configuring Interface
  ioctl[SIOCSIWENCODEEXT]: Operation not supported
  ioctl[SIOCSIWENCODEEXT]: Operation not supported
  ioctl[SIOCSIWENCODEEXT]: Operation not supported
  ioctl[SIOCSIWENCODEEXT]: Operation not supported
  udhcpc (v1.11.1) started
  run-parts: /etc/udhcpc.d/00avahi-autoipd exited with code 1
  Sending discover...
  Sending discover...
  Sending discover...
  No lease, failing
  [EMAIL PROTECTED]:~# iwconfig
  lono wireless extensions.
 
  usb0  no wireless extensions.
 
  eth0  AR6000 802.11g  ESSID:PN
Mode:Managed  Frequency:2.462 GHz  Access Point:
  00:0E:2E:BA:1E:51 Bit Rate=36 Mb/s   Tx-Power=15 dBm   Sensitivity=0/3
Retry:on
Encryption key:897B-9067-4C99-1AC7-B433-AABB-01   Security
  mode:open Power Management:off
Link Quality:180/94  Signal level:-171 dBm  Noise level:-96 dBm
Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
Tx excessive retries:7  Invalid misc:0   Missed beacon:1
 
  [EMAIL PROTECTED]:~# ifconfig eth0
  eth0  Link encap:Ethernet  HWaddr 00:12:CF:8E:E6:8D
UP BROADCAST MULTICAST  MTU:1500  Metric:1
RX packets:646 errors:0 dropped:0 overruns:0 frame:0
TX packets:419 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:278955 (272.4 KiB)  TX bytes:20950 (20.4 KiB)
 
  [EMAIL PROTECTED]:~#
 
  While udhcpc is sending discovers I can see my router is leasing my neo a
  valid ip for 60 seconds each sending discover.
 
  Sometimes, in very rare cases I can get a decent lease. But that is not
  reproducible. I think it's happened three times to me the last three
  days.
 
  Anyone knows how I could get an IP reliably?
 
  Peter Nijs
 
  Op Sunday 13 July 2008 01:05:12 schreef Jim Morris:
  arne anka wrote:
  well, i did what
  http://wiki.openmoko.org/wiki/GTA02_wlan
  says -- adding
 
  iface eth0 inet dhcp
  wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
 
  Ok that worked, although I have some routing issues now. The manual
  method did not work though.
 
iwconfig
 
  eth0  AR6000 802.11g  ESSID:morrisnetwork2
 Mode:Managed  Frequency:2.422 GHz  Access Point:
  00:1D:5A:BB:FA:A9 Bit Rate=48 Mb/s   Tx-Power=16 dBm   Sensitivity=0/3
 Retry:on
 Encryption key:off
 Power Management:off
 Link Quality:207/94  Signal level:-144 dBm  Noise level:-96
  dBm Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0 Tx
  excessive retries:17  Invalid misc:0   Missed beacon:11
 
  Although it says encryption key off, but I presume wpa_supplicant is
  handling that.
 
ifconfig
 
  eth0  Link encap:Ethernet  HWaddr 00:12:CF:74:20:A8
 inet addr:192.168.1.70  Bcast:192.168.1.255 
  Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 RX packets:1657 

Re: Fast questions (email, GPRS, WiFi...)

2008-07-15 Thread Marco Trevisan (Treviño)
Yaroslav Halchenko wrote:
 On Mon, 14 Jul 2008, papa-piet wrote:
 Hi Ian,
 check out that one:
 http://freeyourphone.de/portal_v1/viewtopic.php?f=21t=295#p2956
 wow... someone (at best original author) should simply create a project
 within openmoko.org for those openmokoscripts and see if it could be
 improved even further or simply polished enough so it is easily
 installable from the repository with 1 line instead of 8 step
 directions. But viva to DocTomoe for crafting and to papa-piet for
 sharing the finding ;-)

I agree. Really a great work!
Maybe it should be reported also in the wiki?!

-- 
Treviño's World - Life and Linux
http://www.3v1n0.net/


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fast questions (email, GPRS, WiFi...)

2008-07-15 Thread Brad Pitcher
What do you do at step 5 where the instructions only apply to ASU?
-Brad

Yaroslav Halchenko wrote:
 wow... someone (at best original author) should simply create a project
 within openmoko.org for those openmokoscripts and see if it could be
 improved even further or simply polished enough so it is easily
 installable from the repository with 1 line instead of 8 step
 directions. But viva to DocTomoe for crafting and to papa-piet for
 sharing the finding ;-)

 On Mon, 14 Jul 2008, papa-piet wrote:

   
 Hi Ian,
 check out that one:
 http://freeyourphone.de/portal_v1/viewtopic.php?f=21t=295#p2956
 


   
 Peter K.
 aka papa-piet
 find me at
 http://freeyourphone.de
 


   
 ian douglas schrieb:
 
 Steve / Brenda,
   

   
 Are there any solid instructions yet on getting GPRS data working?
   

   
 -id
   


   
 steve wrote:
   
  Brenda,
 

   
get the instructions for using WIFI on freerunner posted to the wiki.
 

   
Michael assist.
 

   
 Steve
 

   
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of ian douglas
 Sent: Friday, July 11, 2008 4:32 PM
 To: List for Openmoko community discussion
 Subject: Re: Fast questions (email, GPRS, WiFi...)
 

   
 Diego Fernández Durán wrote:
 
   - Is there any UI to conect using WiFi? and with GPRS?
 - Is network-manager been ported?
   - The NM backend?
   - Anybody is doing an UI for this?
   

   
 I havne't seen any wifi UI applicaiton yet. I SSH'd into my Freerunner,
 edited /etc/wpa_supplicant/wpa_supplicant.conf to alter the essid and key,
 typed ifup eth0, then unplugged the USB cable, opened a terminal, ran
 ifconfig usb0 down, opened the browser and navigated just fine.
 

   
 After rebooting, it seems that usb0 is auto-activated, and while the Wifi
 device is supposedly 'on', it doesn't appear in an ifconfig dump ... I 
 ran
 ifconfig down usb0 and ifup eth0 and it failed to connect to the wifi
 using my recently-edited wpa_supplicant.conf file.
 

   
 I'm sure somebody is working on an app to automate this, but they'll have 
 to
 rearrange the priority of routing traffic in the app so a user can specify
 start up the wifi and use that connect as the default route.
 

   
 -id
 


   
 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community
 


   
 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community
 

   
 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community
   

   
 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community
 


   


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fast questions (email, GPRS, WiFi...)

2008-07-14 Thread ian douglas
Steve / Brenda,

Are there any solid instructions yet on getting GPRS data working?

-id


steve wrote:
  Brenda,
 
get the instructions for using WIFI on freerunner posted to the wiki.
 
Michael assist.
 
 Steve
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of ian douglas
 Sent: Friday, July 11, 2008 4:32 PM
 To: List for Openmoko community discussion
 Subject: Re: Fast questions (email, GPRS, WiFi...)
 
 Diego Fernández Durán wrote:
   - Is there any UI to conect using WiFi? and with GPRS?
 - Is network-manager been ported?
   - The NM backend?
   - Anybody is doing an UI for this?
 
 
 I havne't seen any wifi UI applicaiton yet. I SSH'd into my Freerunner,
 edited /etc/wpa_supplicant/wpa_supplicant.conf to alter the essid and key,
 typed ifup eth0, then unplugged the USB cable, opened a terminal, ran
 ifconfig usb0 down, opened the browser and navigated just fine.
 
 After rebooting, it seems that usb0 is auto-activated, and while the Wifi
 device is supposedly 'on', it doesn't appear in an ifconfig dump ... I ran
 ifconfig down usb0 and ifup eth0 and it failed to connect to the wifi
 using my recently-edited wpa_supplicant.conf file.
 
 I'm sure somebody is working on an app to automate this, but they'll have to
 rearrange the priority of routing traffic in the app so a user can specify
 start up the wifi and use that connect as the default route.
 
 -id
 
 
 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community
 
 
 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fast questions (email, GPRS, WiFi...)

2008-07-14 Thread papa-piet
Hi Ian,
check out that one:
http://freeyourphone.de/portal_v1/viewtopic.php?f=21t=295#p2956


Peter K.
aka papa-piet
find me at
http://freeyourphone.de


ian douglas schrieb:
 Steve / Brenda,
 
 Are there any solid instructions yet on getting GPRS data working?
 
 -id
 
 
 steve wrote:
  Brenda,

get the instructions for using WIFI on freerunner posted to the wiki.

Michael assist.

 Steve

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of ian douglas
 Sent: Friday, July 11, 2008 4:32 PM
 To: List for Openmoko community discussion
 Subject: Re: Fast questions (email, GPRS, WiFi...)

 Diego Fernández Durán wrote:
   - Is there any UI to conect using WiFi? and with GPRS?
 - Is network-manager been ported?
   - The NM backend?
   - Anybody is doing an UI for this?

 I havne't seen any wifi UI applicaiton yet. I SSH'd into my Freerunner,
 edited /etc/wpa_supplicant/wpa_supplicant.conf to alter the essid and key,
 typed ifup eth0, then unplugged the USB cable, opened a terminal, ran
 ifconfig usb0 down, opened the browser and navigated just fine.

 After rebooting, it seems that usb0 is auto-activated, and while the Wifi
 device is supposedly 'on', it doesn't appear in an ifconfig dump ... I ran
 ifconfig down usb0 and ifup eth0 and it failed to connect to the wifi
 using my recently-edited wpa_supplicant.conf file.

 I'm sure somebody is working on an app to automate this, but they'll have to
 rearrange the priority of routing traffic in the app so a user can specify
 start up the wifi and use that connect as the default route.

 -id


 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community


 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community
 
 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fast questions (email, GPRS, WiFi...)

2008-07-14 Thread Yaroslav Halchenko
wow... someone (at best original author) should simply create a project
within openmoko.org for those openmokoscripts and see if it could be
improved even further or simply polished enough so it is easily
installable from the repository with 1 line instead of 8 step
directions. But viva to DocTomoe for crafting and to papa-piet for
sharing the finding ;-)

On Mon, 14 Jul 2008, papa-piet wrote:

 Hi Ian,
 check out that one:
 http://freeyourphone.de/portal_v1/viewtopic.php?f=21t=295#p2956


 Peter K.
 aka papa-piet
 find me at
 http://freeyourphone.de


 ian douglas schrieb:
  Steve / Brenda,

  Are there any solid instructions yet on getting GPRS data working?

  -id


  steve wrote:
   Brenda,

 get the instructions for using WIFI on freerunner posted to the wiki.

 Michael assist.

  Steve

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of ian douglas
  Sent: Friday, July 11, 2008 4:32 PM
  To: List for Openmoko community discussion
  Subject: Re: Fast questions (email, GPRS, WiFi...)

  Diego Fernández Durán wrote:
- Is there any UI to conect using WiFi? and with GPRS?
  - Is network-manager been ported?
- The NM backend?
- Anybody is doing an UI for this?

  I havne't seen any wifi UI applicaiton yet. I SSH'd into my Freerunner,
  edited /etc/wpa_supplicant/wpa_supplicant.conf to alter the essid and key,
  typed ifup eth0, then unplugged the USB cable, opened a terminal, ran
  ifconfig usb0 down, opened the browser and navigated just fine.

  After rebooting, it seems that usb0 is auto-activated, and while the Wifi
  device is supposedly 'on', it doesn't appear in an ifconfig dump ... I 
  ran
  ifconfig down usb0 and ifup eth0 and it failed to connect to the wifi
  using my recently-edited wpa_supplicant.conf file.

  I'm sure somebody is working on an app to automate this, but they'll have 
  to
  rearrange the priority of routing traffic in the app so a user can specify
  start up the wifi and use that connect as the default route.

  -id


  ___
  Openmoko community mailing list
  community@lists.openmoko.org
  http://lists.openmoko.org/mailman/listinfo/community


  ___
  Openmoko community mailing list
  community@lists.openmoko.org
  http://lists.openmoko.org/mailman/listinfo/community

  ___
  Openmoko community mailing list
  community@lists.openmoko.org
  http://lists.openmoko.org/mailman/listinfo/community

 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community


-- 
Yaroslav Halchenko
Research Assistant, Psychology Department, Rutgers-Newark
Student  Ph.D. @ CS Dept. NJIT
Office: (973) 353-5440x263 | FWD: 82823 | Fax: (973) 353-1171
101 Warren Str, Smith Hall, Rm 4-105, Newark NJ 07102
WWW: http://www.linkedin.com/in/yarik

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fast questions (email, GPRS, WiFi...)

2008-07-13 Thread Łukasz Holetzke

  I've been trying for several hours to get wifi working, it never seems to
 connect although it can
  see my station.
 
  I tried this too as it makes sense to turn off usb0, but that didn't seem
 to work either, I wrote
  this script to make it easy from console (I also tried ifconfig usb0
 down)
 
  ifdown usb0
  wpa_supplicant -ieth0 -c/etc/wpa_supplicant/wpa_supplicant.conf -B
  sleep 10
  udhcpc eth0 
 
 

I have a similar issue too. wpa_supplicant.conf didn't worked for me at all.
Using iwconfig eth0 essid wep_ap key 128_bit_key_in_hex doesn't associate
with my access point.
I found a small workaround for this:
iwconfig eth0  key .
and after that
iwconfig eth0 essid 
That connected me to the ap.
udhcpd doesn't work for me.
sending discover over lan the dhcpd on a server didn't see that.
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fast questions (email, GPRS, WiFi...)

2008-07-12 Thread Al Johnson
There is an unofficial set of instructions at:
  http://wiki.openmoko.org/wiki/GTA02_wlan
I've added the wpa-conf line to /etc/network/interfaces and it usually works, 
with the caveats at the bottom of that page, and so long as I've dropped usb0 
or otherwise sorted the routing. Any improvement to the methods described 
would be most welcome!

On Saturday 12 July 2008, steve wrote:
  Brenda,

get the instructions for using WIFI on freerunner posted to the wiki.

Michael assist.

 Steve

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of ian douglas
 Sent: Friday, July 11, 2008 4:32 PM
 To: List for Openmoko community discussion
 Subject: Re: Fast questions (email, GPRS, WiFi...)

 Diego Fernández Durán wrote:
- Is there any UI to conect using WiFi? and with GPRS?
  - Is network-manager been ported?
- The NM backend?
- Anybody is doing an UI for this?

 I havne't seen any wifi UI applicaiton yet. I SSH'd into my Freerunner,
 edited /etc/wpa_supplicant/wpa_supplicant.conf to alter the essid and key,
 typed ifup eth0, then unplugged the USB cable, opened a terminal, ran
 ifconfig usb0 down, opened the browser and navigated just fine.

 After rebooting, it seems that usb0 is auto-activated, and while the Wifi
 device is supposedly 'on', it doesn't appear in an ifconfig dump ... I
 ran ifconfig down usb0 and ifup eth0 and it failed to connect to the
 wifi using my recently-edited wpa_supplicant.conf file.

 I'm sure somebody is working on an app to automate this, but they'll have
 to rearrange the priority of routing traffic in the app so a user can
 specify start up the wifi and use that connect as the default route.

 -id


 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community


 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fast questions (email, GPRS, WiFi...)

2008-07-12 Thread Jim Morris
I'll try these things but without a usb connection and ssh terminal they are 
all very hard to do
from the on screen terminal window :)

My access point shows up in the scan list, but does not connect, and I don't 
see and errors.


Russell Sears wrote:
 I do this:
 
 ifdown eth0
 iwconfig eth0 essid TheEssid  ifup eth0  ifdown usb0
 
 I haven't setup wpa or even wep though...
 
 - What does iwconfig say before you do udhcpc?  Did the card associate 
 with the access point (non-zero link quality)?  Did the card discover 
 the access points MAC address?
 
 - What does ifconfig -a say after udhcpc?  route -n?
 
 -Rusty
 
 
 Jim Morris wrote:
 ian douglas wrote:

 I havne't seen any wifi UI applicaiton yet. I SSH'd into my Freerunner,
 edited /etc/wpa_supplicant/wpa_supplicant.conf to alter the essid and
 key, typed ifup eth0, then unplugged the USB cable, opened a terminal,
 ran ifconfig usb0 down, opened the browser and navigated just fine.


 I've been trying for several hours to get wifi working, it never seems 
 to connect although it can see my station.

 I tried this too as it makes sense to turn off usb0, but that didn't 
 seem to work either, I wrote this script to make it easy from console 
 (I also tried ifconfig usb0 down)

 ifdown usb0
 wpa_supplicant -ieth0 -c/etc/wpa_supplicant/wpa_supplicant.conf -B
 sleep 10
 udhcpc eth0 


 Any other ideas?

 Thanks

 
 


-- 
Jim Morris, http://blog.wolfman.com


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fast questions (email, GPRS, WiFi...)

2008-07-12 Thread Jim Morris
Russell Sears wrote:
 I do this:
 
 ifdown eth0
 iwconfig eth0 essid TheEssid  ifup eth0  ifdown usb0
 
 I haven't setup wpa or even wep though...
 
 - What does iwconfig say before you do udhcpc?  Did the card associate 
 with the access point (non-zero link quality)?  Did the card discover 
 the access points MAC address?
 
 - What does ifconfig -a say after udhcpc?  route -n?

  iwlist scanning
eth0  Scan completed :
   Cell 01 - Address: 00:1D:5A:BB:FA:A9
 ESSID:
 Mode:Master
 Frequency:2.422 GHz (Channel 3)
 Quality=45/94  Signal level=-50 dBm  Noise level=-95 dBm
 Encryption key:on
 Extra:bcn_int=100
 
Extra:wpa_ie=dd1a0050f2010150f2020250f2040050f2020150f202
 
Extra:rsn_ie=3018010fac02020fac04000fac02010fac02
 
Extra:wmm_ie=dd180050f2020101050003a427a442435e0062322f00

So it sees my AP, I do have ESSID broadcast turned off, I'll try with it on in 
a sec.

  iwconfig
eth0  AR6000 802.11g  ESSID:
   Mode:Managed  Bit Rate=1 Mb/s   Tx-Power=0 dBm   Sensitivity=0/3
   Retry:on
   Encryption key:off
   Power Management:on
   Link Quality:0/94  Signal level:-95 dBm  Noise level:-96 dBm
   Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
   Tx excessive retries:0  Invalid misc:0   Missed beacon:0

So its not connected

  ifconfig -a
eth0  Link encap:Ethernet  HWaddr 00:12:CF:74:20:A8
   UP BROADCAST MULTICAST  MTU:1500  Metric:1
   RX packets:324 errors:0 dropped:0 overruns:0 frame:0
   TX packets:156 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:1000
   RX bytes:150058 (146.5 KiB)  TX bytes:7223 (7.0 KiB)

eth0:avah Link encap:Ethernet  HWaddr 00:12:CF:74:20:A8
   inet addr:169.254.6.213  Bcast:169.254.255.255  Mask:255.255.0.0
   UP BROADCAST MULTICAST  MTU:1500  Metric:1

  netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags   MSS Window  irtt Iface
192.168.0.0 0.0.0.0 255.255.255.0   U 0 0  0 usb0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0  0 eth0
0.0.0.0 192.168.0.200   0.0.0.0 UG0 0  0 usb0

(I have not disabled usb0 at this point)

Should I use iwconfig or ifconfig to setup eth0, its not clear?
I am currently doing exactly what it says on the GTA02 wlan wiki page.

  udhcpc eth0

just scans indefinately Although that may be becuase eth0 needs to be disabled. 
but right now it 
obviously is not connected to the AP.



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fast questions (email, GPRS, WiFi...)

2008-07-12 Thread arne anka
well, i did what
http://wiki.openmoko.org/wiki/GTA02_wlan
says -- adding

iface eth0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

to /etc/network/interfaces. make sure, the path to wpa_supplicant.conf  
matches yours.
to fire wkan w/ wpa up i have to do

ifup eth0

not sure, though, what's the diff between ifup eth0 and ifconfig eth0 up  
internally, but only the first yielded results.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fast questions (email, GPRS, WiFi...)

2008-07-12 Thread arne anka
 Although it says encryption key off, but I presume wpa_supplicant is  
 handling that.

says here, too. but since my ap does only wpa and the fr can reach inet  
it's probably only cosmetic.


 So its connected to my access point, and I turned off eth0, but I cannot  
 ping the wireless,

either it's a typo or a blunder -- eth0 _is_ the wireless. if you turn off  
eth0, wlan is gone.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fast questions (email, GPRS, WiFi...)

2008-07-12 Thread Jim Morris
Ok using these scripts u and d (below) and the suggestion below it works, but 
is unreliable, I can 
ssh into it over wifi, but it quickly loses its connection, not sure why yet.

# u this turns on wifi and usb0 off
ifdown usb0
ifup eth0

# d this brings back usb0
ifdown eth0
killall wpa_supplicant
ifup usb0


Jim Morris wrote:
 arne anka wrote:
 well, i did what
 http://wiki.openmoko.org/wiki/GTA02_wlan
 says -- adding

 iface eth0 inet dhcp
 wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

 
 Ok that worked, although I have some routing issues now. The manual method 
 did not work though.
 
   iwconfig
 eth0  AR6000 802.11g  ESSID:morrisnetwork2
Mode:Managed  Frequency:2.422 GHz  Access Point: 00:1D:5A:BB:FA:A9
Bit Rate=48 Mb/s   Tx-Power=16 dBm   Sensitivity=0/3
Retry:on
Encryption key:off
Power Management:off
Link Quality:207/94  Signal level:-144 dBm  Noise level:-96 dBm
Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
Tx excessive retries:17  Invalid misc:0   Missed beacon:11
 
 Although it says encryption key off, but I presume wpa_supplicant is handling 
 that.
 
   ifconfig
 eth0  Link encap:Ethernet  HWaddr 00:12:CF:74:20:A8
inet addr:192.168.1.70  Bcast:192.168.1.255  Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:1657 errors:0 dropped:0 overruns:0 frame:0
TX packets:832 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:725595 (708.5 KiB)  TX bytes:37892 (37.0 KiB)
 
 
 So its connected to my access point, and I turned off eth0, but I cannot ping 
 the wireless, I'll 
 work on that it may be routing or it may be encryption.
 
 Thanks all.
 


-- 
Jim Morris, http://blog.wolfman.com

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fast questions (email, GPRS, WiFi...)

2008-07-12 Thread Alexander Syring
I think you have to bring up a nameserver

echo namserver 1.2.3.4  /etc/resolv.conf
   ^ ip of nameserver to use



Am Sonntag, 13. Juli 2008 01:14:59 schrieb Jim Morris:
 Ok using these scripts u and d (below) and the suggestion below it works,
 but is unreliable, I can ssh into it over wifi, but it quickly loses its
 connection, not sure why yet.

 # u this turns on wifi and usb0 off
 ifdown usb0
 ifup eth0

 # d this brings back usb0
 ifdown eth0
 killall wpa_supplicant
 ifup usb0

 Jim Morris wrote:
  arne anka wrote:
  well, i did what
  http://wiki.openmoko.org/wiki/GTA02_wlan
  says -- adding
 
  iface eth0 inet dhcp
  wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
 
  Ok that worked, although I have some routing issues now. The manual
  method did not work though.
 
iwconfig
 
  eth0  AR6000 802.11g  ESSID:morrisnetwork2
 Mode:Managed  Frequency:2.422 GHz  Access Point:
  00:1D:5A:BB:FA:A9 Bit Rate=48 Mb/s   Tx-Power=16 dBm   Sensitivity=0/3
 Retry:on
 Encryption key:off
 Power Management:off
 Link Quality:207/94  Signal level:-144 dBm  Noise level:-96
  dBm Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0 Tx excessive
  retries:17  Invalid misc:0   Missed beacon:11
 
  Although it says encryption key off, but I presume wpa_supplicant is
  handling that.
 
ifconfig
 
  eth0  Link encap:Ethernet  HWaddr 00:12:CF:74:20:A8
 inet addr:192.168.1.70  Bcast:192.168.1.255 
  Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 RX packets:1657 errors:0 dropped:0 overruns:0 frame:0
 TX packets:832 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:1000
 RX bytes:725595 (708.5 KiB)  TX bytes:37892 (37.0 KiB)
 
 
  So its connected to my access point, and I turned off eth0, but I cannot
  ping the wireless, I'll work on that it may be routing or it may be
  encryption.
 
  Thanks all.



___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fast questions (email, GPRS, WiFi...)

2008-07-12 Thread Alexander Syring
And probably you have to del the usb0 default route

route del default gw 192.168.0.202

 
Am Sonntag, 13. Juli 2008 01:14:59 schrieb Jim Morris:
 Ok using these scripts u and d (below) and the suggestion below it works,
 but is unreliable, I can ssh into it over wifi, but it quickly loses its
 connection, not sure why yet.

 # u this turns on wifi and usb0 off
 ifdown usb0
 ifup eth0

 # d this brings back usb0
 ifdown eth0
 killall wpa_supplicant
 ifup usb0

 Jim Morris wrote:
  arne anka wrote:
  well, i did what
  http://wiki.openmoko.org/wiki/GTA02_wlan
  says -- adding
 
  iface eth0 inet dhcp
  wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
 
  Ok that worked, although I have some routing issues now. The manual
  method did not work though.
 
iwconfig
 
  eth0  AR6000 802.11g  ESSID:morrisnetwork2
 Mode:Managed  Frequency:2.422 GHz  Access Point:
  00:1D:5A:BB:FA:A9 Bit Rate=48 Mb/s   Tx-Power=16 dBm   Sensitivity=0/3
 Retry:on
 Encryption key:off
 Power Management:off
 Link Quality:207/94  Signal level:-144 dBm  Noise level:-96
  dBm Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0 Tx excessive
  retries:17  Invalid misc:0   Missed beacon:11
 
  Although it says encryption key off, but I presume wpa_supplicant is
  handling that.
 
ifconfig
 
  eth0  Link encap:Ethernet  HWaddr 00:12:CF:74:20:A8
 inet addr:192.168.1.70  Bcast:192.168.1.255 
  Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 RX packets:1657 errors:0 dropped:0 overruns:0 frame:0
 TX packets:832 errors:0 dropped:0 overruns:0 carrier:0
 collisions:0 txqueuelen:1000
 RX bytes:725595 (708.5 KiB)  TX bytes:37892 (37.0 KiB)
 
 
  So its connected to my access point, and I turned off eth0, but I cannot
  ping the wireless, I'll work on that it may be routing or it may be
  encryption.
 
  Thanks all.


P.S. sorry for CC

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fast questions (email, GPRS, WiFi...)

2008-07-12 Thread Jim Morris
Alexander Syring wrote:
 I think you have to bring up a nameserver
 
 echo namserver 1.2.3.4  /etc/resolv.conf
^ ip of nameserver to use
 
 


Good point, I already have a hardwired resolv.conf, and the wifi and usb can 
use the same dns for now.

Wifi does seem to work ok for me now the trick was to use the second setup from 
the wiki not the first.

Thanks
Jim


-- 
Jim Morris, http://blog.wolfman.com

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fast questions (email, GPRS, WiFi...)

2008-07-12 Thread Jim Morris
Jim Morris wrote:
 Alexander Syring wrote:
 I think you have to bring up a nameserver

 echo namserver 1.2.3.4  /etc/resolv.conf
^ ip of nameserver to use



 
 Good point, I already have a hardwired resolv.conf, and the wifi and usb can 
 use the same dns for now.
 
 Wifi does seem to work ok for me now the trick was to use the second setup 
 from the wiki not the first.

Hmmm ok resolv.conf gets wiped out, and does not get set with what the dhcp 
server tells it, and the
up echo nameserver xx.xx.xx.xx /etc/resolv.conf
trick doesn't work for eth0.

Need to work on that.

-- 
Jim Morris, http://blog.wolfman.com

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Fast questions (email, GPRS, WiFi...)

2008-07-11 Thread Diego Fernández Durán
Hi all,

 My FR is here! :) The 8GB Sandisk card works flawlessly.
 Now a few simple questions:

  - Is there any UI to conect using WiFi? and with GPRS?
- Is network-manager been ported?
  - The NM backend?
  - Anybody is doing an UI for this?
  - Can I help? [1]

  - Is there any email client for OpenMoko?
- With special features like vibrate on new mail?
- Can I help? [1]

  - [Important] As I understand FSO will be the backend and ASU the
frontend. Is there any image that I can flash in my FR that uses ASU
over FSO? (In the wiki I've read about Stable Hybrid but there's no
images).

  
  Thanks!


 [1] I've knowledge of C  GTK.  If The apps must be programed in the
Enlight framework I can learn :)

-- 
Diego Fdez. Durán [EMAIL PROTECTED] | http://www.goedi.net
GPG : 925C 9A21 7A11 3B13 6E43 50DB F579 D119 90D2 66BB



signature.asc
Description: Esta parte del mensaje está firmada	digitalmente
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fast questions (email, GPRS, WiFi...)

2008-07-11 Thread ian douglas
Diego Fernández Durán wrote:
   - Is there any UI to conect using WiFi? and with GPRS?
 - Is network-manager been ported?
   - The NM backend?
   - Anybody is doing an UI for this?


I havne't seen any wifi UI applicaiton yet. I SSH'd into my Freerunner,
edited /etc/wpa_supplicant/wpa_supplicant.conf to alter the essid and
key, typed ifup eth0, then unplugged the USB cable, opened a terminal,
ran ifconfig usb0 down, opened the browser and navigated just fine.

After rebooting, it seems that usb0 is auto-activated, and while the
Wifi device is supposedly 'on', it doesn't appear in an ifconfig dump
... I ran ifconfig down usb0 and ifup eth0 and it failed to connect
to the wifi using my recently-edited wpa_supplicant.conf file.

I'm sure somebody is working on an app to automate this, but they'll
have to rearrange the priority of routing traffic in the app so a user
can specify start up the wifi and use that connect as the default route.

-id


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Fast questions (email, GPRS, WiFi...)

2008-07-11 Thread Russell Sears
I do this:

ifdown eth0
iwconfig eth0 essid TheEssid  ifup eth0  ifdown usb0

I haven't setup wpa or even wep though...

- What does iwconfig say before you do udhcpc?  Did the card associate 
with the access point (non-zero link quality)?  Did the card discover 
the access points MAC address?

- What does ifconfig -a say after udhcpc?  route -n?

-Rusty


Jim Morris wrote:
 ian douglas wrote:
 
 I havne't seen any wifi UI applicaiton yet. I SSH'd into my Freerunner,
 edited /etc/wpa_supplicant/wpa_supplicant.conf to alter the essid and
 key, typed ifup eth0, then unplugged the USB cable, opened a terminal,
 ran ifconfig usb0 down, opened the browser and navigated just fine.

 
 I've been trying for several hours to get wifi working, it never seems to 
 connect although it can 
 see my station.
 
 I tried this too as it makes sense to turn off usb0, but that didn't seem to 
 work either, I wrote 
 this script to make it easy from console (I also tried ifconfig usb0 down)
 
 ifdown usb0
 wpa_supplicant -ieth0 -c/etc/wpa_supplicant/wpa_supplicant.conf -B
 sleep 10
 udhcpc eth0 
 
 
 Any other ideas?
 
 Thanks
 


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


RE: Fast questions (email, GPRS, WiFi...)

2008-07-11 Thread steve
 Brenda,

   get the instructions for using WIFI on freerunner posted to the wiki.

   Michael assist.

Steve

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ian douglas
Sent: Friday, July 11, 2008 4:32 PM
To: List for Openmoko community discussion
Subject: Re: Fast questions (email, GPRS, WiFi...)

Diego Fernández Durán wrote:
   - Is there any UI to conect using WiFi? and with GPRS?
 - Is network-manager been ported?
   - The NM backend?
   - Anybody is doing an UI for this?


I havne't seen any wifi UI applicaiton yet. I SSH'd into my Freerunner,
edited /etc/wpa_supplicant/wpa_supplicant.conf to alter the essid and key,
typed ifup eth0, then unplugged the USB cable, opened a terminal, ran
ifconfig usb0 down, opened the browser and navigated just fine.

After rebooting, it seems that usb0 is auto-activated, and while the Wifi
device is supposedly 'on', it doesn't appear in an ifconfig dump ... I ran
ifconfig down usb0 and ifup eth0 and it failed to connect to the wifi
using my recently-edited wpa_supplicant.conf file.

I'm sure somebody is working on an app to automate this, but they'll have to
rearrange the priority of routing traffic in the app so a user can specify
start up the wifi and use that connect as the default route.

-id


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community