WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: WiFi - Not connecting to access point  (Read 23434 times)

Offline lmart

  • Jr. Member
  • **
  • Posts: 65
Re: WiFi - Not connecting to access point
« Reply #45 on: July 22, 2012, 08:58:16 AM »
Juanito
Thanks. FYI, TC on usb uses extlinux. Appended syslog to file /boot/extlinux/extlinux.conf.


DEFAULT core
LABEL core
KERNEL /boot/vmlinuz
APPEND initrd=/boot/core.gz quiet  waitusb=5:UUID="2ae0196d-ad7f-43fd-bae2-e303759a07da" tce=UUID="2ae0196d-ad7f-43fd-bae2-e303759a07da" syslog

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14801
Re: WiFi - Not connecting to access point
« Reply #46 on: July 22, 2012, 09:07:45 AM »
I guess (without checking) that the "prompt 1" is what causes it to pause - this would allow you to add boot codes by entering:

core syslog
core base norestore (useful to check things and run e2fsck)
core etc, etc

Offline lmart

  • Jr. Member
  • **
  • Posts: 65
Re: WiFi - Not connecting to access point
« Reply #47 on: July 22, 2012, 12:07:45 PM »
well ... unusual things seem to be happening

attached is the messages file (copied immediately after boot) and, output from my script attempting to walk through a manual wifi setup
as you will see, didn't get far

thoughts?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: WiFi - Not connecting to access point
« Reply #48 on: July 22, 2012, 01:21:03 PM »
Use a root terminal for wifi/net commands.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline lmart

  • Jr. Member
  • **
  • Posts: 65
Re: WiFi - Not connecting to access point
« Reply #49 on: July 22, 2012, 01:30:38 PM »
indeed, forgot the sudo in front of each command, thus the "Newbie" under my username

Offline lmart

  • Jr. Member
  • **
  • Posts: 65
Re: WiFi - Not connecting to access point
« Reply #50 on: July 22, 2012, 10:33:52 PM »
Manual WiFi Setup
sudo iwconfig eth1
sudo iwconfig eth1 essid 398VC
sudo iwconfig eth1 enc wepkey
sudo iwconfig eth1 key wepkey
sudo iwconfig eth1 commit (error for wireless request "commit changes" (8B00): operation not supported)
sudo pkill udhcpc
sudo udhcpc -i eth1 would sometimes give an error, but then connect

entered these commands manually, several times throughout the day. entered ping google.com and received an acknowledgement from the site

?Next Steps? If these commands work, why do you suppose the tcp wifi script did not work
FYI, roberts suggested using sudo -s with the above commands. However, sudo -s either did not work or I used it incorrectly

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: WiFi - Not connecting to access point
« Reply #51 on: July 22, 2012, 11:16:17 PM »
Either I'm confused or your pc is confused..   

eth1 ??  this means there is an eth0 hiding somewhere trying to confuse the whole deal, right?  besides, I thought all wifi was automatically declared as wlan0 etc etc

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14801
Re: WiFi - Not connecting to access point
« Reply #52 on: July 22, 2012, 11:28:16 PM »
However, sudo -s either did not work or I used it incorrectly
If you enter "sudo su" <cr> the terminal will switch from user to root to save you having to enter "sudo" before every command.

Quote
eth1 ??  this means there is an eth0 hiding somewhere trying to confuse the whole deal, right?  besides, I thought all wifi was automatically declared as wlan0 etc etc
In fact many wifi cards use eth1 - it's worth entering "ps aux | grep udhcpc" to check if udhcpc is trying to connect a wired ethernet adapter eth0, I've found this sometime seems to prevent wifi from connecting
« Last Edit: July 22, 2012, 11:30:21 PM by Juanito »

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: WiFi - Not connecting to access point
« Reply #53 on: July 22, 2012, 11:32:18 PM »
interesting,  is that (eth1) a result of the wifi card firmware or udev rules?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: WiFi - Not connecting to access point
« Reply #54 on: July 22, 2012, 11:49:57 PM »
The name is compiled into the driver.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: WiFi - Not connecting to access point
« Reply #55 on: July 23, 2012, 03:41:26 AM »
Either I'm confused or your pc is confused..   

eth1 ??  this means there is an eth0 hiding somewhere trying to confuse the whole deal, right?  besides, I thought all wifi was automatically declared as wlan0 etc etc

Not really hiding, most likely presence of an ethernet card.
I happened to remove my ethernet card recently, and since then my radio instead of eth1 has eth0 assigned.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline lmart

  • Jr. Member
  • **
  • Posts: 65
Re: WiFi - Not connecting to access point
« Reply #56 on: July 23, 2012, 07:44:07 AM »
If you enter "sudo su" <cr> the terminal will switch from user to root to save you having to enter "sudo" before every command.
Thanks Juanito

Quote
In fact many wifi cards use eth1 - it's worth entering "ps aux | grep udhcpc" to check if udhcpc is trying to connect a wired ethernet adapter eth0, I've found this sometime seems to prevent wifi from connecting

iwconfig lists my ethernet card as eth0
will try ps aux | grep udhcpc and report back

Thanks everyone for sticking with me.


Offline lmart

  • Jr. Member
  • **
  • Posts: 65
Re: WiFi - Not connecting to access point
« Reply #57 on: July 23, 2012, 08:20:07 AM »
"ps aux | grep udhcpc"
    see attachment

udhcpc appears to be the most fragile part in the process
    it either connects, now with the constant error message, see attached
    or, it keeps sending discoveries and, I have to CTRL-C to exit, then start all over again


?What are my Next Steps?

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14801
Re: WiFi - Not connecting to access point
« Reply #58 on: July 23, 2012, 08:32:36 AM »
Code: [Select]
# ps aux | grep udhcpc
 2668 root     grep udhcpc
That means there's no other instance of udhcpc running, which is a good thing.

I guess the next step could be to try something slightly different - for example:
Code: [Select]
sudo iwconfig eth1 essid "ssid"
sudo iwconfig eth1 key restricted 7D:3A:7C:72:F7:9A:6F:91:DF:CF:C9:AD:CE [replace with your wep key]
sudo udhcpc -b -i eth1 -x hostname:box -p /var/run/udhcpc.eth1.pid

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: WiFi - Not connecting to access point
« Reply #59 on: July 23, 2012, 09:51:10 AM »
In fact many wifi cards use eth1 - it's worth entering "ps aux | grep udhcpc" to check if udhcpc is trying to connect a wired ethernet adapter eth0, I've found this sometime seems to prevent wifi from connecting

Might be a good idea to use boot code "nodhcp" when planning to use wireless net.

"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)