LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 09-29-2006, 09:45 AM   #1
DaveyB
Member
 
Registered: Aug 2004
Location: UK
Distribution: Debian
Posts: 83

Rep: Reputation: 15
NDISWRAPPER and alot more


When I do:
uname -a
Code:
Linux foo 2.6.16-2-686 #1 Mon Aug 21 11:33:09 CEST 2006 i686 GNU/Linux
apt-get install module-assistant <-- That works fine
module-assistant auto-install ndiswrapper <-- On this I get a blue screen saying:
Code:
Warning, /usr/src/linux-headers-2.6.16-2 seems to contain unconfigured kernel source
Then it installs and brings up an error with this log file, and doesn't proceed:
Code:
for templ in ; do \ #
cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.16-2-686/g'` ; \
done
for templ in `ls debian/*.modules.in` ; do \
test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in}
${templ%.modules.in}.backup 2>/dev/null || true; \
sed -e 's/##KVERS##/2.6.16-2-686/g ;s/#KVERS#/2.6.16-2-686/g ;
s/_KVERS_/2.6.16-2-686/g ; s/##KDREV##//g ; s/#KDREV#//g ; s/_KDREV_//g'
< $templ > ${templ%.modules.in}; \
done
dh_clean
/usr/bin/make clean
make[1]: Entering directory `/usr/src/modules/ndiswrapper'
rm -rf ndiswrapper.ko ndiswrapper.o hal.o iw_ndis.o loader.o
misc_funcs.o ndis.o ntoskernel.o pe_linker.o proc.o wrapper.o usb.o
divdi3.o usb.o x86_64_stubs.o \
divdi3.o .*.ko.cmd .*.o.cmd ndiswrapper.mod.[oc] *~ .tmp_versions
make[1]: Leaving directory `/usr/src/modules/ndiswrapper'
/usr/bin/make -f debian/rules kdist_clean kdist_config binary-modules #
make[1]: Entering directory `/usr/src/modules/ndiswrapper'
for templ in ; do \
cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.16-2-686/g'` ; \
done
for templ in `ls debian/*.modules.in` ; do \
test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in}
${templ%.modules.in}.backup 2>/dev/null || true; \
sed -e 's/##KVERS##/2.6.16-2-686/g ;s/#KVERS#/2.6.16-2-686/g ;
s/_KVERS_/2.6.16-2-686/g ; s/##KDREV##//g ; s/#KDREV#//g ; s/_KDREV_//g'
< $templ > ${templ%.modules.in}; \
done
dh_clean
/usr/bin/make clean
make[2]: Entering directory `/usr/src/modules/ndiswrapper'
rm -rf ndiswrapper.ko ndiswrapper.o hal.o iw_ndis.o loader.o
misc_funcs.o ndis.o ntoskernel.o pe_linker.o proc.o wrapper.o usb.o
divdi3.o usb.o x86_64_stubs.o \
divdi3.o .*.ko.cmd .*.o.cmd ndiswrapper.mod.[oc] *~ .tmp_versions
make[2]: Leaving directory `/usr/src/modules/ndiswrapper' #
make[1]: Nothing to be done for `kdist_config'.
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs lib/modules/2.6.16-2-686/misc
# build and install the module
/usr/bin/make KPKG_EXTRAV_ARG= KSRC=/usr/src/linux-headers-2.6.16-2-686 \
KVER=2.6.16-2-686 \
INST_DIR=debian/ndiswrapper-modules-2.6.16-2-686/lib/modules/2.6.16-2-686
/misc/ install
make[2]: Entering directory `/usr/src/modules/ndiswrapper'
/usr/bin/make -C /usr/src/linux-headers-2.6.16-2-686
SUBDIRS=/usr/src/modules/ndiswrapper \
NDISWRAPPER_VERSION=1.1 \
EXTRA_VERSION= modules
make[3]: Entering directory `/usr/src/linux-headers-2.6.16-2-686'
CC [M] /usr/src/modules/ndiswrapper/hal.o
CC [M] /usr/src/modules/ndiswrapper/iw_ndis.o
CC [M] /usr/src/modules/ndiswrapper/loader.o #
/usr/src/modules/ndiswrapper/loader.c: In function `register_devices':
/usr/src/modules/ndiswrapper/loader.c:861: warning: assignment from
incompatible pointer type
/usr/src/modules/ndiswrapper/loader.c:873: error: structure has no
member named `owner'
make[4]: *** [/usr/src/modules/ndiswrapper/loader.o] Error 1
make[3]: *** [_module_/usr/src/modules/ndiswrapper] Error 2
make[3]: Leaving directory `/usr/src/linux-headers-2.6.16-2-686'
make[2]: *** [default] Error 2
make[2]: Leaving directory `/usr/src/modules/ndiswrapper'
make[1]: *** [binary-modules] Error 2
make[1]: Leaving directory `/usr/src/modules/ndiswrapper'
make: *** [kdist_build] Error 2
I get this far through the installation
Code:
Reading Package Lists... Done
Building Dependency Tree... Done
ndiswrapper-source is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Updated infos about 1 packages
Extracting the package tarball, /usr/src/ndiswrapper-source.tar.bz2
modules/
modules/ndiswrapper/
modules/ndiswrapper/debian/
modules/ndiswrapper/debian/changelog
modules/ndiswrapper/debian/compat
modules/ndiswrapper/debian/copyright
modules/ndiswrapper/debian/control.modules.in
modules/ndiswrapper/debian/postinst.modules.in
modules/ndiswrapper/debian/rules
modules/ndiswrapper/Makefile
modules/ndiswrapper/divdi3.c
modules/ndiswrapper/hal.c
modules/ndiswrapper/iw_ndis.c
modules/ndiswrapper/iw_ndis.h
modules/ndiswrapper/loader.c
modules/ndiswrapper/loader.h
modules/ndiswrapper/longlong.h
modules/ndiswrapper/misc_funcs.c
modules/ndiswrapper/ndis.c
modules/ndiswrapper/ndis.h
modules/ndiswrapper/ndiswrapper.h
modules/ndiswrapper/ntoskernel.c
modules/ndiswrapper/ntoskernel.h
modules/ndiswrapper/pe_linker.c
modules/ndiswrapper/pe_linker.h
modules/ndiswrapper/proc.c
modules/ndiswrapper/usb.c
modules/ndiswrapper/usb.h
modules/ndiswrapper/winnt_types.h
modules/ndiswrapper/wrapper.c
modules/ndiswrapper/wrapper.h
modules/ndiswrapper/x86_64_stubs.S
modules/ndiswrapper/INSTALL
modules/ndiswrapper/version
Now here's some strange things:
Code:
apt-cache search ndiswrapper
ndiswrapper-modules-2.6.8-2-386 - Ndiswrapper linux kernel module
ndiswrapper-modules-2.6.8-2-686 - Ndiswrapper linux kernel module
ndiswrapper-modules-2.6.8-2-686-smp - Ndiswrapper linux kernel module
ndiswrapper-modules-2.6.8-2-k7 - Ndiswrapper linux kernel module
ndiswrapper-modules-2.6.8-2-k7-smp - Ndiswrapper linux kernel module
ndiswrapper-modules-2.6.8-3-386 - Ndiswrapper linux kernel module
ndiswrapper-modules-2.6.8-3-686 - Ndiswrapper linux kernel module
ndiswrapper-modules-2.6.8-3-686-smp - Ndiswrapper linux kernel module
ndiswrapper-modules-2.6.8-3-k7 - Ndiswrapper linux kernel module
ndiswrapper-modules-2.6.8-3-k7-smp - Ndiswrapper linux kernel module
ndiswrapper-source - Source for the ndiswrapper linux kernel module
ndiswrapper-utils - Userspace utilities for ndiswrapper
Nothing matches my kernel 2.6.16-2-686

Also this is odd as well:
Code:
apt-cache show kernel-headers-`uname -r`
W: Unable to locate package kernel-headers-2.6.16-2-686
E: No packages found

Any ideas, someone said to install my kernel source but when I do:
foo:/home/daveyb# apt-get install kernel-headers-`uname -r`
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package kernel-headers-2.6.16-2-686
Man so confused, what am I doing wrong, all I want to do is load NDISWRAPPER so i can configure my WIFI card

Last edited by DaveyB; 09-29-2006 at 08:09 PM.
 
Old 09-29-2006, 10:08 AM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,534

Rep: Reputation: 70
It makes sense as you figure out that:
a) you've probably build this kernel yourself but didn't use the conventional build path of "configure && make && make install" from source, or you used a prepackaged kernel from either Testing, Unstable or unknown source (unknown for me, that is...)
b) latest kernel for Sarge is indeed 2.6.8

Solution: go back to where you've got this kernel from, search for the matching headers and source and install that on your system. Other solutions are: revert to the standard 2.6.8 kernel (not recommended!!) or build a kernel yourself properly from source (which isn't as difficult as you might think, there are plenty useful HOWTO's on the Net!)
 
Old 09-29-2006, 10:14 AM   #3
DaveyB
Member
 
Registered: Aug 2004
Location: UK
Distribution: Debian
Posts: 83

Original Poster
Rep: Reputation: 15
This is what i did to upgrade:
pico /etc/appt/source.list
added line deb http://www.backports.org/debian sarge-backports main contrib non-free
Code:
apt-get -t sarge-backports install mutt

apt-get update

apt-get install mutt

apt-get -t sarge-backports install grub udev initramfs-tools linux-image-2.6.16.2-686

The installed the kernel header with

Code:
apt-get -t sarge-nackports install linux-headers-2.6.16-2-686
So what did i do wrong?

Last edited by DaveyB; 09-29-2006 at 01:55 PM.
 
Old 09-29-2006, 07:48 PM   #4
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,534

Rep: Reputation: 70
Install the kernel sources: direct link Click the link, download the package and install with
Code:
dpkg -i linux-source-2.6.16_2.6.16-18~bpo.1_all.deb
 
Old 09-29-2006, 08:03 PM   #5
DaveyB
Member
 
Registered: Aug 2004
Location: UK
Distribution: Debian
Posts: 83

Original Poster
Rep: Reputation: 15
Just installed the source-files, as stated bellow does it matter that my kernel version is 2.6.16-2-686 , either way getting exactly the same error message as stated in the logfile 1 post code 3.

Here is what i have just done

Code:
foo:/home/daveyb# dpkg -i linux-source-2.6.16_2.6.16-18~bpo.1_all.deb
(Reading database ... 90725 files and directories currently installed.)
Preparing to replace linux-source-2.6.16 2.6.16-18~bpo.1 (using linux-source-2.6.16_2.6.16-18~bpo.1_all.deb) ...
Unpacking replacement linux-source-2.6.16 ...
Setting up linux-source-2.6.16 (2.6.16-18~bpo.1) ...

Last edited by DaveyB; 09-29-2006 at 08:08 PM.
 
Old 09-29-2006, 08:31 PM   #6
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,534

Rep: Reputation: 70
When you have the package installed, the sources aren't completely installed yet. Go to the /usr/src directory and see if there's a linux-source-<version> directory. Enter that directory and do the familiar "make menuconfig && make && make install" This properly installs the kernel sources. Good luck, I've been fighting ndiswrapper for a long time too, but I've conquered it!
 
Old 09-29-2006, 08:35 PM   #7
DaveyB
Member
 
Registered: Aug 2004
Location: UK
Distribution: Debian
Posts: 83

Original Poster
Rep: Reputation: 15
This is all I have in the directory, I can't see my source for new 2.6.16-2-686 Kernel
Code:
foo:/usr/src# ls
linux                   linux-headers-2.6.16-2-686   modules
linux-headers-2.6.16-2  linux-source-2.6.16.tar.bz2  ndiswrapper-source.tar.bz2
Thankyou for all your help so far Dutch Master

Last edited by DaveyB; 09-29-2006 at 08:37 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
X freezes quite alot sirgigantor Slackware 5 12-15-2003 06:52 PM
Alot Of Checksums Lagg Linux - General 2 09-10-2003 05:36 PM
I need Alot of help with Installation Azain Linux - Distributions 14 05-22-2003 03:14 AM
I got alot to do and Ask. Edo Linux - Newbie 1 11-02-2002 09:14 AM
Thanks ALOT!!!! Ruckuss Linux - Networking 0 01-06-2002 12:26 AM


All times are GMT -5. The time now is 05:01 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration