#23 wlan0 won't acquire address using DHCP during boot

open
nobody
None
5
2008-06-24
2008-06-24
Pavel Krupets
No

Hello,

Verdex XL6P + netwifimicroSD + robostix
OpenEmbedded (SVN R318)

I use standard script to bring wlan0 up during boot but with no success (see attachments). After network is up if I execute ifconfig I got the following:

root@gumstix-custom-verdex:~$ ifconfig
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:11 errors:0 dropped:0 overruns:0 frame:0
TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3925 (3.8 KiB) TX bytes:3925 (3.8 KiB)

wlan0 Link encap:Ethernet HWaddr 00:0B:6B:0C:D7:B2 UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:962 (962.0 B) TX bytes:248 (248.0 B)
Interrupt:128

Problem here is that address wasn't acquired from DHCP.

During boot I got the following errors (see attachment for the whole log):

Before register driver
After register driver
SIOCGIFFLAGS: No such device
wlan0 No such device
udhcpc (v1.2.1) started
udhcpc[563]: udhcpc (v1.2.1) started
SIOCGIFINDEX failed!: No such device
udhcpc[563]: SIOCGIFINDEX failed!: No such device

To get it working for now I added the following script to the interfaces (see in attachment):

pre-up sleep 5
pre-up udhcpc -i wlan0

I hope someone can help me or direct me where can I find more info.

With regards,
Pavel Krupets

Discussion

  • Pavel Krupets
    Pavel Krupets
    2008-06-24

     
    Attachments
  • Pavel Krupets
    Pavel Krupets
    2008-06-24

     
    Attachments
  • Pavel Krupets
    Pavel Krupets
    2008-06-24

    Logged In: YES
    user_id=1007725
    Originator: YES

    File Added: interfaces