WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: 'udhcpc' Hangup  (Read 4207 times)

Offline eltone

  • Full Member
  • ***
  • Posts: 137
'udhcpc' Hangup
« on: January 24, 2014, 08:24:25 PM »
TC-5.x Team,

'udhcpc' fails to initiate 'dns':

Code: [Select]
tc@box:~$ tce-load -i wireless_tools
wireless-3.8.13-tinycore.tcz: OK
libiw.tcz: OK
wireless_tools.tcz: OK
tc@box:~$ tce-load -i rfkill
/etc/sysconfig/tcedir/optional/rfkill.tcz: OK
tc@box:~$ sudo rfkill unblock wifi
tc@box:~$ sudo iwconfig wlan0 essid "eltonenetwork"
tc@box:~$ sudo iwconfig wlan0 key 6789abcdef
tc@box:~$ sudo udhcpc -b -i wlan0 -x hostname:box -p /var/run/udhcpc.wlan0.pid
udhcpc (v1.20.2) started
Sending discover...
Sending discover...
Sending discover...
No lease, forking to background
tc@box:~$ dmesg
8139too 0000:06:06.0 eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
microcode: AMD CPU family 0xf not supported
cfg80211: Calling CRDA to update world regulatory domain
b43-phy0: Broadcom 4318 WLAN found (core revision 9)
b43-phy0: Found PHY: Analog 3, Type 2 (G), Revision 7
Broadcom 43xx driver loaded [ Features: PMNL ]
ieee80211 phy0: Selected rate control algorithm 'pid'
b43-phy0: Loading firmware version 666.2 (2011-02-23 01:15:07)
tc@box:~$ sudo iwlist scan
ip_vti0   Interface doesn't support scanning.

wlan0     Scan completed :
          Cell 01 - Address: F8:ED:A5:4A:2A:50
                    Channel:10
                    Frequency:2.457 GHz (Channel 10)
                    Quality=30/70  Signal level=-80 dBm 
                    Encryption key:on
                    ESSID:"cellone"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
                              18 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=000001e142e0663e
                    Extra: Last beacon: 20ms ago
                    IE: Unknown: 0009484F4D452D32413532
                    IE: Unknown: 010882848B961224486C
                    IE: Unknown: 03010A
                    IE: Unknown: 2A0104
                    IE: Unknown: 32048C98B060
                    IE: Unknown: 2D1A0C0017FFFF000000000000000000000000000000000000000000
                    IE: Unknown: 3D160A000400000000000000000000000000000000000000
                    IE: Unknown: 3E0100
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : PSK
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
                    IE: Unknown: 0B05030014127A
                    IE: Unknown: 7F0101
                    IE: Unknown: DD07000C4303000000
                    IE: Unknown: 0706555320010B10
                    IE: Unknown: DD870050F204104A0001101044000102103B000103104700102880288028801880A880F8EDA54A2A5010210005415252495310230006544738363247102400065254323836301042000831323334353637381054000800060050F204000110110012415252495320544738363220526F7574657210080002210C103C0001011049000600372A000120
          Cell 02 - Address: 00:21:1E:57:DC:60
                    Channel:4
                    Frequency:2.427 GHz (Channel 4)
                    Quality=70/70  Signal level=-16 dBm 
                    Encryption key:on
                    ESSID:"eltonenetwork"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 22 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
                              36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=00000002fd0acb45
                    Extra: Last beacon: 20ms ago
                    IE: Unknown: 0009717765737435323936
                    IE: Unknown: 010582848B962C
                    IE: Unknown: 030104
                    IE: Unknown: 2A0104
                    IE: Unknown: 32080C1218243048606C
          Cell 03 - Address: B2:B2:DC:FF:44:30
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=39/70  Signal level=-71 dBm 
                    Encryption key:on
                    ESSID:"cellthree"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
                              18 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=000004f75951e144
                    Extra: Last beacon: 390ms ago
                    IE: Unknown: 000F43656E747572794C696E6B39343534
                    IE: Unknown: 010882848B961224486C
                    IE: Unknown: 03010B
                    IE: Unknown: 32040C183060
                    IE: Unknown: 0706555320010B14
                    IE: Unknown: 33082001020304050607
                    IE: Unknown: 33082105060708090A0B
                    IE: Unknown: DD310050F204104A000110104400010210470010BC329E001DD811B28601B2B2DCFF4430103C0001011049000600372A000120
                    IE: Unknown: 050400010000
                    IE: Unknown: DD310050F204104A000110104400010210470010BC329E001DD811B28601B2B2DCFF4430103C0001011049000600372A000120
                    IE: Unknown: 2A0104
                    IE: Unknown: 2D1AEE1117FFFF000001000000000000000000000000000000000000
                    IE: Unknown: 3D160B000000000000000000000000000000000000000000
                    IE: Unknown: 4A0E14000A002C01C800140005001900
                    IE: Unknown: 7F0101
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : PSK
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00
                    IE: Unknown: 0B05000010127A
                    IE: Unknown: DD07000C4300000000
          Cell 04 - Address: F6:ED:A5:4A:2A:50
                    Channel:10
                    Frequency:2.457 GHz (Channel 10)
                    Quality=31/70  Signal level=-79 dBm 
                    Encryption key:off
                    ESSID:"cellfour"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
                              18 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=000001e142e06db9
                    Extra: Last beacon: 20ms ago
                    IE: Unknown: 000B7866696E69747977696669
                    IE: Unknown: 010882848B961224486C
                    IE: Unknown: 03010A
                    IE: Unknown: 2A0104
                    IE: Unknown: 32048C98B060
                    IE: Unknown: 2D1A0C0017FFFF000000000000000000000000000000000000000000
                    IE: Unknown: 3D160A000400000000000000000000000000000000000000
                    IE: Unknown: 3E0100
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
                    IE: Unknown: 0B05030014127A
                    IE: Unknown: 7F0101
                    IE: Unknown: DD07000C4303000000
                    IE: Unknown: 0706555320010B10
          Cell 05 - Address: 40:4A:03:F1:A9:14
                    Channel:7
                    Frequency:2.442 GHz (Channel 7)
                    Quality=41/70  Signal level=-69 dBm 
                    Encryption key:on
                    ESSID:"cellfive"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
                              36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=00000a6e59b0b8f5
                    Extra: Last beacon: 20ms ago
                    IE: Unknown: 000B6D79717765737433323735
                    IE: Unknown: 010482848B96
                    IE: Unknown: 030107
                    IE: Unknown: 2A0103
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: 32080C1218243048606C
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD7A0050F204104A0001101044000101103B00010310470010555555550000C0A80001404A03F1A914102100055A7958454C1023000F5A7958454C2057464144657669636510240007504B353030305A1042000830303030303030311054000800060050F20400011011000A504B353030305A20415010080002008C

dummy0    Interface doesn't support scanning.

lo        Interface doesn't support scanning.

eth0      Interface doesn't support scanning.

tunl0     Interface doesn't support scanning.

tc@box:~$


Firmware and scanning cells appears OK!

Q: Any clue why this functional configuration now fails after passing the burn-in phase?

Expected:
Code: [Select]
tc@box:"$ sudo udhcpc -b -i wlan0 -x hostname:box -p /var/run/udhcpc.wlan0
udhcpc (v1.20.2) started
Sending discover...
Sending discover...
Sending select for 135.79a.0.ce...
Lease of 135.79a.0.ce obtained, lease time 86400
deleting routers
route: SIOCDELRT: No such process
adding dns 123.456.7.89
adding dns 8.8.4.4
adding dns 987.654.3.21
adding dns 8.8.8.8
tc@box:"$

Actual:
Code: [Select]
tc@box:"$ sudo udhcpc -b -i wlan0 -x hostname:box -p /var/run/udhcpc.wlan0.pid
udhcpc (v1.20.2) started
Sending discover...
Sending discover...
Sending discover...
No lease, forking to background
tc@box:~



eltone
« Last Edit: January 24, 2014, 09:07:09 PM by eltone »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: 'udhcpc' Hangup
« Reply #1 on: January 24, 2014, 08:41:31 PM »
Why are you doing an 'iwlist scan' ?
'iwconfig' should show if you are associated, and ifconfig should show you your ipaddress.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: 'udhcpc' Hangup
« Reply #2 on: January 24, 2014, 10:29:16 PM »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)