View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 9 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sun Jun 26, 2005 9:41 pm 
Offline
Joined: Sun Jun 26, 2005 9:21 pm
Posts: 5
I am a newbie so bare with me any help would be apreciated.

I ran ndiswrapper and on reboot my wg111 USB wlan donggle is recognized when i run iwconfig. Problem is I have to run iwconfig every time I reboot and set the essid and key and run ifup for a Ip address. If i run the following the card works great, until i reboot then i have to do it again

I do the following

Code:
iwconfig wlan0 essid XXXXXXX
iwconfig wlan0 key "long hex wep key here"
ifup wlan0


How do I make it assign the essid and key at boot and get an ip adress.

I have tried editing #etc/network/interface by adding

Code:
wireless_mode managed
wireless_essid XXXXXXXX
wireless_Key "long hex key here"


The problem is that the card is not recognizedand or does not appear to work on utill very late in the boot after it has already tried and falied to run that code

Anyone know what Im doing wrong here?


Last edited by notapenguin on Tue Jun 28, 2005 2:28 am, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 26, 2005 9:52 pm 
Offline
Joined: Mon Oct 06, 2003 10:38 am
Posts: 4978
Location: Nashville, TN
you could remove the auto line from /etc/network/interfaces and then add a line to bootmisc.sh with ifup eth0 or whatever your interface name is.

_________________
Have a question search the forum and have a look at the KnoppMythWiki.

Xsecrets


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 26, 2005 11:16 pm 
Offline
Joined: Sun Jun 26, 2005 9:21 pm
Posts: 5
ETA I tried editing the bootmisc file with iwconfig and ifup but the commands attempt to execute before the drivers. They have not loaded so it logs an error saying the device is not found. Not until late in the boot does it "see" the USB wlan0. I want to either make the commands occur later or fix the problem with the drivers not loading earlier.

Thanks again for the help


Last edited by notapenguin on Mon Jun 27, 2005 9:29 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 27, 2005 8:46 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
- Open a shell window (alt-X from your desktop)

- Become root by using the su command
Code:
su -
and entering the root password you set at install time.

- Use an editor (nano is easy) to edit these two files:
Code:
nano /etc/network/interfaces
nano /etc/init.d/bootmisc.sh

- In the first file there is a line that looks like this:
Code:
auto lo eth0
Make it look like this instead:
Code:
auto lo

- At the end of the second file add a line that looks like this :
Code:
ifup eth0


OBTW - This is an FAQ... http://www.knoppmythwiki.org/faq/index.php?action=artikel&cat=7&id=20&artlang=en


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 27, 2005 9:14 pm 
Offline
Joined: Sun Jun 26, 2005 9:21 pm
Posts: 5
I Know how to become root and edit files, I have read that and many other FAQ's :-)

I also had tried what you suggested before I posted my question here.

My question and the problem is that the USB wlan0 is "loaded" later in the boot sequence then the commands that i put at the end of bootmisc.sh are executed.

This is what I said in my first post. It is not a problem with the commands but a problem with when they are executed.

How do I get it to run iwconfig and ifup last after the USB network card and the drivers are loaded during the boot.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 27, 2005 10:15 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Sorry, I read your original question as how to do what Xsecrets was recommending.

As for the other, it's probably easier to flip the problem around and get the modules loaded before, the ifup... This will prbably involve aliasing the appropriate one to eth0 in /etc/modules.conf

Actually you may want make that line in /etc/bootmisc.sh
Code:
ifup wlan0


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 27, 2005 10:37 pm 
Offline
Joined: Sun Jun 26, 2005 9:21 pm
Posts: 5
No prob thanks for the help I aprecate it.

I have not done any aliasing yet I will try to figure that out. :-)

What would the syntax of the line I add be?

I did it as wlan0 and eth0 niether worked :-)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 27, 2005 11:01 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Well the one from my workstation box says:
Code:
alias eth0 8139too

You probably want one that says something like:
Code:
alias wlan0 YOURWLANDRIVERMODULEHERE


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 28, 2005 2:24 am 
Offline
Joined: Sun Jun 26, 2005 9:21 pm
Posts: 5
Well it turns out it was a hardware/ndiswrapper issue, my additions, the code, Worked like a charm once I resolved the hardware problem.

Code:
#etc/network/interface
wireless_mode managed
wireless_essid XXXXXXXX
wireless_Key "long hex key here"



I had to boot the box with the USB wireless lan removed
then reboot with the USB wlan in a different USB port to get ndiswrapper to load the driver properly. However this caused a new problem in that it would crash the kernel towards the end of the boot.

I realized that it was trying to load the ndiswrapper wlan driver twice for some reason, once in the middle of the boot for USB 1.1 then again at the end for USB 2.0.

My motherboard has USB 1.1 interface and a USB 2.0 interface. I tried to disable the 1.1 interface but that did not work as it caused the USB to not be recognized at all. I had to shut off the USB 2.0 to prevent ndiswrapper form loading twice and crashing the kernel.

This works fine but I don't know if it has caused any problems speed wise with the wlan card forcing it to run at USB 1.1 speeds.

I will start a knew thread on the ndiswrpaper/USB issue.

Thanks for all those who gave advice.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 31 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu