LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 09-05-2004, 05:19 PM   #1
overbored
Member
 
Registered: Jun 2003
Posts: 58

Rep: Reputation: 15
debian + ndiswrapper = hair loss!


I used the netinst ISO to install Debian Sarge/Testing (2.4 kernel) onto my Dell D600 Latitude laptop, which has an Intel Pro Wireless 2200BG. I need to get wireless working so I opted for ndiswrapper instead of ipw2200 because I've been told the Linux drivers are still in beta and have minimal functionality (whatever that means). Anyway, though I've been using Debian for a while, I've never built my own kernel before, and I may be doing something wrong (this is what I've picked up from Googling/IRC):

Code:
# add the ndiswrapper repository
echo 'deb ndiswrapper.sourceforge.net ./' >> sources.list
apt-get update

# get some important stuff first
apt-get install build-essentials bin86 kernel-package module-init-tools libncurses-dev debhelper

# this is for its config file
apt-get install kernel-image-2.6.7-1-686

apt-get install kernel-source-2.6.8 ndiswrapper-source

cd /usr/src
tar xjf kernel*bz2
tar xzf ndis*gz

# get a normal config
cd kernel-source-2.6.8
cp -a /boot/config*2.6.8* .config

# <no idea what i'm doing>
make oldconfig
make-kpkg kernel_image modules_image
cd ..
mv /lib/modules/2.6.8 /lib/modules/2.6.8.old
# </no idea what i'm doing>

dpkg -i kernel-image*deb
# now i see a vmlinuz-2.6.8... in my /boot and I can select it from GRUB

# now for ndiswrapper
cd modules
dpkg -i ndis*deb
The last command is where I get stuck. It says I need a dependency called ndiswrapper-utils-0.10-1:

Code:
Selecting previously deselected package ndiswrapper-modules.
(Reading database ... 18724 files and directories currently installed.)
Unpacking ndiswrapper-modules (from ndiswrapper-modules_0.10-1-2.6.8_i386.deb) ...
dpkg: dependency problems prevent configuration of ndiswrapper-modules:
 ndiswrapper-modules depends on ndiswrapper-utils-0.10-1; however:
  Package ndiswrapper-utils-0.10-1 is not installed.
dpkg: error processing ndiswrapper-modules (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 ndiswrapper-modules
I couldn't find any ndiswrapper-utils packages in apt-cache. Now, surely I'm not the first person who has tried to use Debian + ndiswrapper on a laptop. But I don't find anything when I Google for 'ndiswrapper-modules depends on ndiswrapper-utils-0.10-1'. Other query attempts return unrelated info.

Furthermore, if I try to boot into my new 2.6.8 kernel, I get a kernel panic (starting with 'VFS:') about being unable to mount the root file system. I don't know if this is related at all.

Please help, don't force me down the Windows path! Thanks!
 
Old 09-07-2004, 07:21 PM   #2
servnov
Member
 
Registered: Sep 2004
Distribution: Slackware 10.2
Posts: 276

Rep: Reputation: 30
Nooo! dont go the win path. I found getting certain devices to work (especially wireless cards for desktops) to be a huge pain. Ndiswrapper is a pain, best bet is to try to find an compliant device or recompile the kern.
 
Old 09-07-2004, 10:56 PM   #3
overbored
Member
 
Registered: Jun 2003
Posts: 58

Original Poster
Rep: Reputation: 15
I have just about given up on that front, actually. I'm now trying to do it using the tgz files straight from ndiswrapper.sf.net, and I ran make and make install. That has only opened up more questions:

How do I get the INF file from the setup.exe on the cards list? Or do I just feed ndiswrapper the whole .exe? I extracted as much as I could from the .exe but I found no .inf file in there, only a .msi file, and I don't know how to extract that. I also tried giving ndiswrapper the .exe. I highly doubt that worked. ndiswrapper doesn't complain about bad INF files (I gave it some garbage), and ndiswrapper -l says "hardware NOT present".

By the way, I am also trying ipw2200.sf.net drivers. Anything to get wireless going!!

I have downloaded the ipw2200 drivers and firmware and followed the instructions in INSTALL (all I did was install wireless-tools, make, make install, and copied the firmware files into the hotplug directory). Now when I type 'iwconfig' I can see various details for eth1, and I can also choose a WLAN using iwlist.

Now I just be able to use eth1 somehow. I tried "ifup eth1" but that just gave me "Ignoring unknown interface eth1=eth1". Do I need to change something in /etc/network/interfaces? I'm not sure how, I couldn't find anything on this.

But I was also able to see eth1 show up in ifconfig once (reporting the correct mac address)...I have no idea what I did, and I didn't realize its significance until now, since I've never been able to get it back.

Can anybody help? Thanks!

PS: Someone pointed out to me that the kernel panic is caused by a missing initrd, which was the case (I had to recompile the kernel with 'make-kpkg --initrd kernel_image').

Last edited by overbored; 09-08-2004 at 01:54 AM.
 
Old 09-08-2004, 03:46 PM   #4
overbored
Member
 
Registered: Jun 2003
Posts: 58

Original Poster
Rep: Reputation: 15
The IPW2200 drivers seem to be working with random success now, after adding 'iface eth1 inet dhcp' to /etc/network/interfaces. However, there are lots of problems, so I'm probably doing somethin wrong. (I know that the IPW2200 drivers are labeled as 'beta' but the devs claim that the basic functionality should work.)

The first time I tried, I was able to get online (I used 'iwlist eth1 scan' to find all the WLANs and 'iwconfig eth1 essid MyWLAN key MyKey' to connect to it and 'ifup eth1' to bring up eth1), but I was put on a different subnet than my LAN (192.168.1.* instead of 192.168.2.*....this doesn't happen in Windows).

The second time, I ran the exact same commands but it didn't work. I checked 'iwconfig' which reported stuff like 'Access Point: 00:00:00...'

The third time, I ran 'iwconfig eth0' but that failed miserably. I got about two screenfuls of error messages:

Code:
$ iwconfig eth1 essid MyWLAN key MyKey
ipw2200: Start IPW Error Log Dump:
ipw2200: ERROR_SYSASSERT 55944422 0x0001c0e8  0x0000be3c  0x000002f4  0x00fd0a54  0x0000038b
ipw2200: ERROR_DMA_STATUS 55944426 0x000...
ipw2200: ERROR_DMA_STATUS 55944430 0x000...
...
(snip)
...
ipw2200: Fatal error
ipw2200: Start IPW Error Log Dump:
...
(snip)
...
ipw2200: failed to send ASSOCIATE command
eth1: Setting MAC to 00:0e:...
ipw2200: Calibration
Does anybody have the slightest idea what's going on? I'm so close! Yet so far....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't get ndiswrapper working on debian sarge peterbrowne Linux - Wireless Networking 20 09-30-2006 04:20 AM
NdisWrapper issue under Debian 3.1 enquiry Linux - Wireless Networking 2 10-17-2005 11:51 AM
Debian + ndiswrapper = Hair Loss!! overbored Debian 5 09-08-2004 06:51 PM
ndiswrapper + debian = problem mrgreenfur Linux - Laptop and Netbook 8 06-30-2004 11:17 AM
Failed attempts to serve PHP with Slack 8.1 causing hair loss! dnnrly Linux - Newbie 1 12-02-2003 07:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 01:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration