Ticket #1904 (new defect)

Opened 10 years ago

Last modified 12 months ago

om2008.8 wifi don't get always an ipv4 ip

Reported by: dolfje Owned by: openmoko-devel
Priority: normal Milestone:
Component: unknown Version:
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: PatchReviewResult:
Reproducible:

Description

Sometimes the FreeRunner? doesn't get an ip (v4) address from my router, only a ip (v6). I don't like that, because I can't ssh into my device with a ipv6 (my computer's limitations). How can I insists he get an ipv4 ip address?

Steps to repro:

  • Start Om2008.8
  • Goto settings
  • Goto wifi
  • pick right router
  • Enter pass for WiFi? (WPA2)
  • wait for a while
  • Start Terminal
  • do ifconfig

Expected result:

  • An 'inet addr' next to the eth0 device

Actual result:

  • only a 'inet6 addr' next to the eth0 device

Change History

comment:1 Changed 10 years ago by Cruxy

I've seen that too on my freerunner, but didn't track that down until now.

When I called dhclient eth0 manually I got the following:

...
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPOFFER from 192.168.1.1
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
DHCPDECLINE on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
...

and dmesg shows:

...
[12884.985000] Alignment trap: dhclient (4824) PC=0x00027ec4 Instr=0xe5933000 Address=0xbedda312 FSR 0x013
[12885.130000] Alignment trap: dhclient (1779) PC=0x00027ec4 Instr=0xe5933000 Address=0xbedf3352 FSR 0x013
...

could you tell me if that looks the same for you?

comment:2 Changed 10 years ago by dolfje

I always gets DHCPDISCOVER and than a fail, because there were no DHCPOFFERS. I did the command once before I connect to the router and once after. Twice with the same result.

comment:3 Changed 10 years ago by andy

Just about the alignment traps, these should be informational only. The alignment error creates a hardware exception which is handled by kernel, but it is slow. (Actually that code in kernel is really funny, it goes and looks at the address it would return to and disassembles the instruction that created the exception, then uses stacked registers to recreate that instruction's function like a processor emulator :-O) So in order to allow improving code in the application to remove alignment issue, it prints the notification.

That's the theory anyway, but most people are using usb0 with static address, it can be real general issue.

comment:5 Changed 10 years ago by dolfje

more info:
I've still have this bug, but found my way round it.

I always turn the wifi on and connect though the settings-interface. If I can connect at that time. (ping or ssh into my phone trough wifi) Okay I'm happy. If I can't connect at that time, I open mofi and try it through that interface. It takes a while before mofi can connect to my router, but it always works.

ps. I've you want me to do more test, please instruct me.

comment:6 Changed 10 years ago by danielhedblom

Maybe a driver problem?

Try to use a fixed ip address. If it doesnt work then you have a driver problem and not a dhcp problem. I thought dhcp was borked when it was all the communication with the AP that was broken.

Putting the AP at 11 Mb bitrate and 802.11g mode made it work. I suspect the wifi driver is a bit out of shape and not dhcp. The same issue exists for me on the Qtopia images as well.

comment:7 Changed 10 years ago by dolfje

Sorry, I can't test it now, my WiFi? router has left the building. But when I get it back, I will report. That will be Friday or Saturday.

comment:8 follow-up: ↓ 9 Changed 10 years ago by elfo

Same problem here with different 2008.8 and qtopia images.

There's a 70-85% package loss even if you set the network configuration statically.

Facts:
WEP + ASCII key + [2008.8-updates (september) | FDOM 20080913 | Qtopia 4.3.3] + ifconfig (not dhcp).

Tested with FR 10 cm away from router, 1 meter away and 3 meters away. No significant difference so signal strength apparently being the cause.

comment:9 in reply to: ↑ 8 Changed 10 years ago by elfo

Sorry...

Tested with FR 10 cm away from router, 1 meter away and 3 meters away. No significant difference so signal strength apparently _NOT_ being the cause.

comment:10 Changed 10 years ago by andy

If you can stick another box with WLAN in Monitor mode and observe proceedings with the packetloss, it could be interesting. A random guess can be problem with WEP decrypt on your key anyway on some packets? If possible try changing your WEP key (on AP too) and see if that affects anything.

comment:11 Changed 10 years ago by dolfje

I've tested a little bit:

If my FreeRunner? is freshly started, I can always connect and reconnect with 'ifdown eth0' and 'ifup eth0'. And it's working reliable. (I'm sitting 3 meters away from the router)

--- 192.168.1.100 ping statistics ---
150 packets transmitted, 150 received, 0% packet loss, time 149150ms
rtt min/avg/max/mdev = 15.457/283.288/2083.016/385.093 ms, pipe 3

If I use the installer interface I always get 'cannot connect to the network'. No matter what I do.

If I'm connected to a network and I'm going into suspend. After I'm comming out of suspend, I still have internet.

If I'm trying to reconnect after a suspend, It never connects again. It fails always.

Mofi will mostly work, but when it doesn't work, it brings down the usb0 device with him. So I cannot connect trough the usb anymore. Also 'ifup eth0' doesn't work anymore.

I hope you can use the information.

comment:12 Changed 10 years ago by elfo

Thanks, Dolfje.

Please, could you share your router security settings?

I'm going to try wifirouter + WEP128 + FSO milestone3 and post results...

comment:13 Changed 10 years ago by elfo

Already tested (WEP 128bit ASCII 54Mbit/s) in FSO milestone 3.

iwconfig eth0 essid XXXX mode managed channel 1 key s:xxxxxxxxxx
ifconfig eth0 192.168.1.123 up
ping 192.168.1.1 (router's ip)

~88% packet loss being at 10cm/1m/3m and it seems to get worse over time.

Does signal strength = 192/94 (or similar values) in iwconfig make any sense?

I'll try changing WEP key but I'd like to know if there's any way I could sniff packages using the FR and see what's actually going on between FR and router

comment:14 Changed 10 years ago by dolfje

My router security is WPA TKIP
(and I'm using 2008.8 updated to the latest updates)

comment:15 follow-up: ↓ 16 Changed 10 years ago by andy

You can tcpdump stuff at the FR, but it doesn't tell you what is happening "on the air". Because it is likely the problem is FR rejecting packets from bad encryption, that matters.

A good way is use a laptop with its WLAN network device set to Monitor Mode on the same channel and tcpdump that, then watch the sequence of packets and retries.

comment:16 in reply to: ↑ 15 Changed 10 years ago by danielhedblom

Replying to andy:

You can tcpdump stuff at the FR, but it doesn't tell you what is happening "on the air". Because it is likely the problem is FR rejecting packets from bad encryption, that matters.

I have the same problems on open systems too without any encryption at all. Its not just the FR rejecting incoming packets. Trying to get packets out through wifi also fails. If some of you could try on open systems too we can rule out any encryption/wpa_supplicant problems.

comment:17 follow-up: ↓ 18 Changed 10 years ago by andy

Can you define a simple test that shows it, which is easily repeatable, then?

For example, just pinging something on local network at one packet a second shows high packetloss? Or we need to do bulk transfer?

comment:18 in reply to: ↑ 17 Changed 10 years ago by danielhedblom

Replying to andy:

Can you define a simple test that shows it, which is easily repeatable, then?

On my phone a simple test is to just try to get packets out over wifi. Since the high packetloss makes getting a DHCP conversation trough very hard i recommend setting a static ip.

For example, just pinging something on local network at one packet a second shows high packetloss? Or we need to do bulk transfer?

Set the AP as an open system and try to ping it. Also try to ping the FR from another computer on the same wired network as the AP. The packetloss is very high, sometimes 100%.

The thing that strikes me as rather strange is this output from ifconfig after trying to unsuccessfully ping my AP:

eth0 Link encap:Ethernet HWaddr 00:12:CF:8E:FC:12

inet addr:192.168.1.66 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::212:cfff:fe8e:fc12/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:3103 errors:0 dropped:0 overruns:0 frame:0
TX packets:758 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1430550 (1.3 MiB) TX bytes:32423 (31.6 KiB)

The packets are registered but somewhere sent to the bitbucket.

comment:19 follow-up: ↓ 20 Changed 10 years ago by andy

I didn't have this issue last time I talked to unencrypted AP (which did work fine). Is everyone seeing the packetloss also running ipv6? I don't run it.

What happens if you do the ping in the background and tcpdump -i eth0 also on the FR, do we see ping and pong coming in?

Just to confirm, what does

route -n

say? Does it help if you disable ipv6?

comment:20 in reply to: ↑ 19 ; follow-up: ↓ 21 Changed 10 years ago by danielhedblom

Replying to andy:

I didn't have this issue last time I talked to unencrypted AP (which did work fine). Is everyone seeing the packetloss also running ipv6? I don't run it.

What happens if you do the ping in the background and tcpdump -i eth0 also on the FR, do we see ping and pong coming in?

Dont have ipv6, gotto get back on that one.

Just to confirm, what does

route -n

say?

root@om-gta02:/sbin# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 usb0
0.0.0.0 192.168.1.254 0.0.0.0 UG 0 0 0 eth0

Does it help if you disable ipv6?

Sorry but i cant find out how. I have always disabled it by blocking modules but i cant find any other way on the interweb.

:/

comment:21 in reply to: ↑ 20 Changed 10 years ago by danielhedblom

Replying to danielhedblom:

Dont have ipv6, gotto get back on that one.

Dont have tcpdump on my FR yet was what i should have written.

comment:22 Changed 16 months ago by RoberMync

Rivagroup Baclofen <a href=http://inderal.ccrpdc.com/propranolol-online-no-prescription.php>Propranolol Online No Prescription</a> Cialis Carte Bancaire Sildenafil Vente 120 Mg <a href=http://kama1.xyz/kamagra-jelly-usa.php>Kamagra Jelly Usa</a> Cialis Gсђс–сѓв˜nstig Kaufen 40mg 500mg Amoxicillin Times Day <a href=http://viag1.xyz/brand-viagra-online.php>Brand Viagra Online</a> Viagra Andorra New Zealand Motilium <a href=http://cial1.xyz/generic-for-cialis.php>Generic For Cialis</a> Buy Sertraline No Prescription Amoxicillin For Blackheads <a href=http://cial5mg.xyz/purchase-cheap-cialis.php>Purchase Cheap Cialis</a> Buy Synthroid Generic Abortion Pill <a href=http://zol1.xyz/zoloft-no-prescription-fast.php>Zoloft No Prescription Fast</a> Canad1an Pharmacy Viagra Canada Price <a href=http://cial1.xyz/cialis-free-trial.php>Cialis Free Trial</a> Site Kamagra Levitra Online Best Price <a href=http://cial1.xyz/cialis-price.php>Cialis Price</a> Shop Cheap Propecia Amoxicilline Acide Clavulanique Generique <a href=http://zol1.xyz/map.php>Zoloft Online Usa</a> Sans Ordonnance Amoxicillin Pharmacie Distribuer Produits Cialis Viagra Levitra Comprar <a href=http://cial5mg.xyz/can-i-buy-cialis-online.php>Can I Buy Cialis Online</a> Buying Levitra Online Without Prescription Doxycline Hyclate 100mg Purchase <a href=http://kama1.xyz/generic-kamagra-cheap.php>Generic Kamagra Cheap</a> Tab online isotretinoin delivered on saturday Florida Cialis Ereccion <a href=http://cial1.xyz/tadalafil-online.php>Tadalafil Online</a> Acheter Viagra Par Paypal Super Viagra Active <a href=http://cial1.xyz/order-cialis.php>Order Cialis</a> Buy Female Viagra In Australia Cheap Ciealis <a href=http://zol1.xyz/where-to-order-zoloft.php>Where To Order Zoloft</a> Us Purchasing Of Furosemide Cephalexin Severe Side Effects <a href=http://viag1.xyz/cheap-viagra-100mg.php>Cheap Viagra 100mg</a> Priligy Se Puede Tomar Con Alcohol

comment:23 Changed 12 months ago by Larcadist

On Line Acticin Internet <a href=http://cialtobuy.com>cialis online</a> Cialis En Exceso Es Malo Viagra Soft Generika Achat Cialis Pfizer

Note: See TracTickets for help on using tickets.