Re: [FSO] Wifi in M5 no longer functioning

2009-02-05 Thread Andy Green
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Somebody in the thread at some point said:

[4.965000] AR6000 connected event on freq 2437 with bssid   listenInterval=100, beaconInterval = 100, beaconIeLen = 22
assocReqLen=59 assocRespLen =59
[4.965000] Network: Infrastructure

looks OK

| eth0  AR6000 802.11g  ESSID:
|   Mode:Managed  Frequency:2.437 GHz  Access Point: 
|   Bit Rate=65.535 Mb/s   Tx-Power=0 dBm   Sensitivity=0/3

Bitrate is broken.

| eth0  Link encap:Ethernet  HWaddr 00:12:CF:8F:33:91
|   inet6 addr: fe80::212:cfff:fe8f:3391/64 Scope:Link
|   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
|   RX packets:125 errors:0 dropped:0 overruns:0 frame:0
|   TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
|   collisions:0 txqueuelen:1000
|   RX bytes:144316 (140.9 KiB)  TX bytes:4497 (4.3 KiB)
|
| eth0:avah Link encap:Ethernet  HWaddr 00:12:CF:8F:33:91
|   inet addr:169.254.6.255  Bcast:169.254.255.255  Mask:255.255.0.0
|   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

Wow that's new, avahi secondary network interface.

This has a link-local address only.

| loLink encap:Local Loopback
|   inet addr:127.0.0.1  Mask:255.0.0.0
|   inet6 addr: ::1/128 Scope:Host
|   UP LOOPBACK RUNNING  MTU:16436  Metric:1
|   RX packets:1 errors:0 dropped:0 overruns:0 frame:0
|   TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
|   collisions:0 txqueuelen:0
|   RX bytes:104 (104.0 B)  TX bytes:104 (104.0 B)
|
| pan0  Link encap:Ethernet  HWaddr AA:92:6C:B1:E1:A9
|   BROADCAST MULTICAST  MTU:1500  Metric:1
|   RX packets:0 errors:0 dropped:0 overruns:0 frame:0
|   TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
|   collisions:0 txqueuelen:0
|   RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
|
| usb0  Link encap:Ethernet  HWaddr 6E:F1:73:29:F6:4E
|   inet addr:192.168.0.202  Bcast:192.168.0.255  Mask:255.255.255.0
|   inet6 addr: fe80::6cf1:73ff:fe29:f64e/64 Scope:Link
|   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
|   RX packets:638 errors:0 dropped:0 overruns:0 frame:0
|   TX packets:510 errors:0 dropped:0 overruns:0 carrier:0
|   collisions:0 txqueuelen:1000
|   RX bytes:46204 (45.1 KiB)  TX bytes:154823 (151.1 KiB)
|
|
| It seems to look like it's connected, but I still can't ping google, the
| AP, or access the internet.

usb0 is up too.

But, the missing info is your routing table

route -n

Will the PC you are connected to act as gateway on the USB Ethernet
connection?  Or is the only way out to the Internet through WLAN?

Can you ping even if you don't try to use DNS?

What network range does the AP subnet use... 192.168.0.x again?

- -Andy
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkmKrMsACgkQOjLpvpq7dMrSxQCfZE1Zs7aIQkBDtSKdbc+AY4iN
dq0AnRDVEFltfudhVKA59eIoXMhDV1pD
=Alfv
-END PGP SIGNATURE-

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: FSO Milestone 5

2009-02-05 Thread Alon Levy
worked for me on the neo1973 (minus sms, which is the same problem I had
with previous versions).

used
http://downloads.freesmartphone.org/fso-stable/milestone5/om-gta01/openmoko-fso-image-glibc-ipk--20090202-om-gta01.rootfs.jffs2and
http://downloads.freesmartphone.org/fso-stable/milestone5/om-gta01/uImage-2.6.24-oe5+gitrfb42ce6724576fc173faf8abfb04aa2c36d213b7-r1-om-gta01.bin

Alon

On Thu, Feb 5, 2009 at 5:30 AM, Paul  wrote:

> Has anyone gotten milestone 5 to work?  I've tried 5 of the rootfs images
> and all I get is a prompt.  I keep rebooting, yet same thing.
>
> If you have, can you send me the exact names of the images you used?
>
> Thanks.
>
> --
> Paul
> Email - pault...@gmail.com
>
> There were moments when he looked on evil simply as a mode through which he
> could realize his conception of the beautiful.
> Oscar Wilde - The Picture of Dorian Gray
>
> ___
> support mailing list
> support@lists.openmoko.org
> https://lists.openmoko.org/mailman/listinfo/support
>
>


-- 
Alon Levy
http://wiki.saymoo.org/
___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: [FSO] Wifi in M5 no longer functioning

2009-02-05 Thread Al Johnson
On Thursday 05 February 2009, Dylan Semler wrote:
> On Wed, Feb 4, 2009 at 7:47 AM, Al Johnson 
wrote:
> > I often get the above even with a working wpa_supplicant.conf because the
> > dhcp
> > discover starts being sent immediately, not after association, so dhcp
> > times
> > out before association is complete. Bringing the interface down then
> > immediately up again will often get association faster, so the last dhcp
> > request succeeds.
>
> Do you mean, after SetResourcePolicy WiFi enabled, you can do ifdown eth0,
> ifup eth0, and it works? Or do you cycle the SetResourcePolicy WiFi?
> Neither seems to work for me.

I've been looking at this on recent SHR which I think is largely similar to 
MS5, but it's possible there are differences in this area. 

'SetResourcePolicy WiFi enabled' tells FSO to power up the WiFi irrespective 
of whether any apps have issued 'RequestResource WiFi'. Before I do this I 
have no eth0 available.

To get dhcp working I would often have to do:

ifup eth0
ifdown eth0
ifup eth0

On the second ifup the association often completes a little quicker so dhcp 
has a chance of completing before timeout. Another method is to manually start 
dhcp after the first ifup using something like:

udhcpc -i eth0

This assumes wpa_supplicant is making the association fine. You can check that 
with wpa_cli which accepts a 'help' command to tell you what other options it 
has.

This has worked for me on everything I've tried since 2007.2, but I've not 
tried it on the recent SHR or MS5 yet. SHR, and probably MS5, have the added 
complication of connman running. This tries to manage the network connections, 
but at least for usb0 it is overridden by the ifup and ifdown commands. 
Assuming connman actually works, the other option would be to use the connman 
dbus interface to set the network parameters. Don't ask me how though ;-)

___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: [FSO] Wifi in M5 no longer functioning

2009-02-05 Thread arne anka
> eth0:avah Link encap:Ethernet  HWaddr 00:12:CF:8F:33:91
>   inet addr:169.254.6.255  Bcast:169.254.255.255

> It seems to look like it's connected

nope. it's not.
the ip address shown is a generic one, assigned by avahi in absence of a  
real one.

i don't know, what you did to obtain an association with tha ap and an ip  
subsequnetly, but iwlist scan is not giong to o that.


___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: [FSO] Wifi in M5 no longer functioning

2009-02-05 Thread Dylan Semler
On Thu, Feb 5, 2009 at 3:09 AM, Andy Green  wrote:

> Somebody in the thread at some point said:
>  | It seems to look like it's connected, but I still can't ping google, the
> | AP, or access the internet.
>
> usb0 is up too.


I use usb to ssh into the phone.


>
> But, the missing info is your routing table
>
> route -n
>

r...@om-gta02:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse
Iface
192.168.0.0 0.0.0.0 255.255.255.0   U 0  00 usb0
169.254.0.0 0.0.0.0 255.255.0.0 U 0  00 eth0
0.0.0.0 192.168.0.200   0.0.0.0 UG0  00 usb0



>
> Will the PC you are connected to act as gateway on the USB Ethernet
> connection?  Or is the only way out to the Internet through WLAN?


I haven't done anything to setup access to the internet via usb (just ssh)
so I imagine right now there's only WLAN.  Unless GPRS gets configured
automatically in M5.


>
> Can you ping even if you don't try to use DNS?


No.  No luck with 192.168.1.1


>
> What network range does the AP subnet use... 192.168.0.x again?
>

192.168.1.x

So I'm unclear whether you're supposed to ifup eth0 after SetResourcePolicy
WiFi enabled.  When I try right away it says
r...@om-gta02:~# ifup eth0
ifup: interface eth0 already configured
r...@om-gta02:~# ifdown eth0
cat: can't open '/var/run/udhcpc.eth0.pid': No such file or directory
___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: [FSO] Wifi in M5 no longer functioning

2009-02-05 Thread Dylan Semler
On Thu, Feb 5, 2009 at 4:26 AM, arne anka  wrote:

> > eth0:avah Link encap:Ethernet  HWaddr 00:12:CF:8F:33:91
> >   inet addr:169.254.6.255  Bcast:169.254.255.255
>
> > It seems to look like it's connected
>
> nope. it's not.
> the ip address shown is a generic one, assigned by avahi in absence of a
> real one.
>

What about eth0?
inet6 addr: fe80::212:cfff:fe8f:3391/64


> i don't know, what you did to obtain an association with tha ap and an ip
> subsequnetly, but iwlist scan is not giong to o that.
>

I didn't do anything, it was all the framework : )

Dylan
___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: [FSO] Wifi in M5 no longer functioning

2009-02-05 Thread Dylan Semler
On Thu, Feb 5, 2009 at 5:56 AM, Al Johnson wrote:
> 'SetResourcePolicy WiFi enabled' tells FSO to power up the WiFi
irrespective
> of whether any apps have issued 'RequestResource WiFi'. Before I do this I
> have no eth0 available.

Yeah, but it seems to also configure eth0 because after I SetResourcePolicy,
If I do ifup eth0 right away I get "ifup: interface eth0 already configured"

To get dhcp working I would often have to do:
>
> ifup eth0
> ifdown eth0
> ifup eth0
>

I know what you're talking about, I definitely had to do this with past
images as well.  However, with M5, there's still no luck with the second
ifup eth0.


>
> On the second ifup the association often completes a little quicker so dhcp
> has a chance of completing before timeout. Another method is to manually
> start
> dhcp after the first ifup using something like:
>
> udhcpc -i eth0
>
>
Yeah, this suffers the same fate is ifup, ifdown, ifup.  It's good to know
if I revert to an older image.


> This assumes wpa_supplicant is making the association fine. You can check
> that
> with wpa_cli which accepts a 'help' command to tell you what other options
> it
> has.
>
> This has worked for me on everything I've tried since 2007.2, but I've not
> tried it on the recent SHR or MS5 yet. SHR, and probably MS5, have the
> added
> complication of connman running. This tries to manage the network
> connections,
> but at least for usb0 it is overridden by the ifup and ifdown commands.
> Assuming connman actually works, the other option would be to use the
> connman
> dbus interface to set the network parameters. Don't ask me how though ;-)
>
>
I'll poke at this when I have more time after the weekend.
___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: [FSO] Wifi in M5 no longer functioning

2009-02-05 Thread arne anka
> What about eth0?
> inet6 addr: fe80::212:cfff:fe8f:3391/64

same thing basically, though probably not assigned by avahi but something  
random (do you use ipv6 at home? does the fr kernel support ipv6 at all?)


___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: FSO Milestone 5

2009-02-05 Thread Simon Comeau Martel
I had that problem.

It was happening to me when I booted with Qi.

Booting from uBoot (from NOR) solved the problem.

After that first 'successful' boot, the GUI start if I boot from Qi, but
then I get other problems. ie: GSM doesn't work.

Booting from uBoot solve the problem.

I have no idea why that would be happening. It's like if uBoot is doing
some kind of magic.

Milestone 4 was working fine with Qi. And FSO-testing from 2009-01-09
was also.

-- 
Simon Comeau Martel
si...@comeau.info
https://comeau.info


Paul wrote:
> Has anyone gotten milestone 5 to work?  I've tried 5 of the rootfs
> images and all I get is a prompt.  I keep rebooting, yet same thing.
> 
> If you have, can you send me the exact names of the images you used?
> 
> Thanks.
> 
> -- 
> Paul
> Email - pault...@gmail.com 
> 
> There were moments when he looked on evil simply as a mode through which
> he could realize his conception of the beautiful.
> Oscar Wilde - The Picture of Dorian Gray
> 
> 
> 
> 
> ___
> support mailing list
> support@lists.openmoko.org
> https://lists.openmoko.org/mailman/listinfo/support


___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support


Re: [FSO] Wifi in M5 no longer functioning

2009-02-05 Thread Dylan Semler
On Thu, Feb 5, 2009 at 11:10 AM, arne anka  wrote:

> > What about eth0?
> > inet6 addr: fe80::212:cfff:fe8f:3391/64
>
> same thing basically, though probably not assigned by avahi but something
> random (do you use ipv6 at home? does the fr kernel support ipv6 at all?)
>
>
I just checked.  I'm running dd-wrt v24 rc5 which doesn't seem to have
working IPv6.[1]

[1]http://www.dd-wrt.com/wiki/index.php/IPv6
___
support mailing list
support@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/support