Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Loading modules on boot?< Next Oldest | Next Newest >
jmethodius Offline





Group: Members
Posts: 4
Joined: Jan. 2007
Posted: Jan. 02 2007,05:57 QUOTE

Thanks to anyone who lends a hand with this.  I have looked and keep seeing conflicting methods on how to load a module on boot and my attempts have not worked.

How do I load ndiswrapper on boot?
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Jan. 02 2007,06:04 QUOTE

ndiswrapper is a special case, as it requires and '-i' option to specify the .inf and .sys files before you do a modpobe. In all installation types of dsl this can be achieved by placing all your ndiswrapper commands and other wireless related commands in /opt/bootlocal.sh.
Back to top
Profile PM WEB 
jmethodius Offline





Group: Members
Posts: 4
Joined: Jan. 2007
Posted: Jan. 03 2007,05:42 QUOTE

roberts,

Thanks for helping.  I am now able to get my wireless up at boot but I am having a few anomolies.  The lines I added to bootlocal.sh are:

modprobe ndiswrapper
iwconfig wlan0 essid d1l05i9n6k23
ifconfig wlan0 192.168.0.105
ifconfig wlan0 netmask 255.255.255.0 broadcast 192.168.0.255
route add default gw 192.168.0.1

The boot screen throws an error when trying to set the ESSID, saying that wlan0 doesn't exist.  However, I am connected when logged in.  If I comment out the line setting the essid, I'm not connected after logging in.  Also, the connection has the correct ESSID set, even after the error is thrown.

The other issue is packet loss.  I am losing between 20% to 50% of packets when pinging the AP.  The stack seems fine because I have no packet loss to loopback or local IP(127.0.0.1, 192.168.0.105).  I don't believe it's the AP because tests with other computers are reporting no loss.

If you are able to further assist, I really appreciate it.  If not, thanks for pointing me in the right direction.  If I would've checked the WIKI, I wouldn't have had to ask in the first place(guess I'm too used to Google when trying to find solutions).


P.S.  Don't know if this means anything, but the System Information on the desktop is not reporting any IP, but was when I was connected with enet.  Is the information captured only in the boot process?
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Jan. 03 2007,06:13 QUOTE

If you are going to use a static ip, you should boot DSL with the nodhcp boot option.

In your /opt/bootlocal.sh where is/what is your ndiswrapper -i xxxx.inf command?
After you issue that command you should use an:

ndiswrapper -l

which reports if driver is installed and present

after you issue the

modprobe ndiswrapper

command you should do a

iwconfig

to see that you indeed have a wlan0 device.  Then you can proceed to configure the card.

When you are done configuring the card do an

ifconfig wlan0

and you should see your ip assigned to wlan0

HTH
Back to top
Profile PM WEB 
jmethodius Offline





Group: Members
Posts: 4
Joined: Jan. 2007
Posted: Jan. 04 2007,02:05 QUOTE

Thanks for the no DHCP option, I'll try that out.

You're mentioning something again, that you mentioned in your first response "-i".  The driver ( lispnds for my card ) has stuck ( listed in modprobe -l after reboot) since I installed it.  That's why i didn't include it in my bootlocal.sh file.  It's the 'moprobe nsdniswrapper' and the following commands that I needed to insert into the boot process.

The weird thing is that if I comment out all wireless commands from bootlocal.sh and then run a modprobe ndiswrapper, after boot in the shell, the system pauses for a moment, returns to prompt. I do iwconfig, wlan0 is listed.  When I do the same commands in the script, the first reference to wlan0 after 'modprobe ndiswrapper', states that the wlan0 interface doesn't exist.  It's almost as though the command in the script after 'modprobe ndiswrapper' is executing before 'modprobe ndiwswrapper' is finished executing, which shouldn't happen.

Thanks again.
Back to top
Profile PM 
6 replies since Jan. 02 2007,05:57 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Loading modules on boot?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code