LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 07-22-2005, 02:38 AM   #16
Adrian Baker
Member
 
Registered: Apr 2004
Distribution: PCLinuxOS 2007 on my laptop and Suse 10.2 on my desktop.
Posts: 341

Original Poster
Rep: Reputation: 30

Thanks for the continuing help guys.

ChilliWillie - you say that the source that comes with 10.1 is the 2.4.27 kernel. However, (Please remember I'm a newbie) if thats the case, why is there a folder on my PC called

/lib/modules/2.6.8.1-12mdk

that seems to contain loads of files including one called kernel that is 17MB in size? Is this not the kernel source (I have no idea what a kernel source looks like by the way!) - Why doesn't my link to this work?



Oneandoneis2 - you say "You *could* just use the kernel sources you have & compile a new kernel with them. Then you'd definitely know your kernel matched your kernel sources!"

I'm trying hard to understand this but am confused. How and why do I compile the kernel? Also, this still doesn't answer my question about why my attempt to install ndiswrapper doesn't work.

As I said, I used your advice before to install ndiswrapper (with the wrong kernel) and the install worked fine. So then I completely reinstall 10.1 Official, do exactly the same as before and it doesn't work???
I'd really like to understand why...

I really appreciate the help and advice guys and please excuse my ignorance on this topic, but I'm determined to learn how this all works and get my Linux PC working how I want it to.
 
Old 07-22-2005, 03:41 AM   #17
Adrian Baker
Member
 
Registered: Apr 2004
Distribution: PCLinuxOS 2007 on my laptop and Suse 10.2 on my desktop.
Posts: 341

Original Poster
Rep: Reputation: 30
I've downloaded a kernel source - kernel-2.6.8.1.12mdk-1-1mdk.src.rpm

Can I just use:
urpmi kernel-2.6.8.1.12mdk-1-1mdk.src.rpm


to install this?? Or is that not going to be any use to me at all??
 
Old 07-22-2005, 06:45 AM   #18
ChillyWillie
LQ Newbie
 
Registered: May 2005
Location: Rhode Island, USA
Distribution: Ubuntu 7.04 (Feisty) & FC7
Posts: 28

Rep: Reputation: 15
Adrian,

/lib/modules/2.6.8.1-12mdk is the directory that holds the modules (believe it or not) that your kernel is using. For example, ndiswrapper is a kernel module. It sits on top of the kernel in a manner of speaking. The difference between a kernel module and a normal software application, I believe, is that the kernel module is like an OS add-on, to increase the functionality of your OS in some low-level way.

If you don't know about kernel modules, don't worry about it at this point. You can read more about it by searching for 'modules' at tldp.org later. The kernel source is all of the code that needs to be configured and compiled into your specific machine. This is the actual operating system code. It's written primarily in C code and has .c and .h files. If you open any of them up you can edit and modify the kernel source and recompile it, which is what makes this an open source software project!

The location of the kernel source, if it's installed, is /usr/src/linux, which is a symbolic link (ie. - a shortcut) to /usr/src/linux-2.4.27-0.pre2.1mdk/. I'd encourage you to peruse the directory tree and take a look at some source files.

Now I'm not positive on this, so someone please correct me if I'm wrong, but ndiswrapper and most other kernel modules need certain information about your computer's hardware configuration so that they will work properly. The kernel "headers" are the source code .h files that have been configured by your system. This is the way modules know how to configure themselves for your specific system.

Unfortunately, I don't know why the kernel-source that comes with the 10.1 CDs have an older kernel source package. That's a question I have.

I see in your latest post that you found the correct kernel package. Can I ask where you've found it? I've been searching for it, but apparently using the wrong tools.
 
Old 07-22-2005, 07:01 AM   #19
ChillyWillie
LQ Newbie
 
Registered: May 2005
Location: Rhode Island, USA
Distribution: Ubuntu 7.04 (Feisty) & FC7
Posts: 28

Rep: Reputation: 15
I've only been using urpmi via the Mandrake Control Center, not the command line. But, according to the man pages, you should just be able to use 'urpmi <package name>'.

I believe you will need to uninstall the old kernel-source rpm, but don't know how from the command line. If you go to the Mandrake Control Center > Software Management > Remove, you should be able to enter 'source' in the Find box and it will display 'kernel-source-2.4.27-0.pre2.1mdk' as one of the entries. If not, then you probably don't have the kernel source installed. If you do, just check it and press "Remove' to take care of that.

To install the file you downloaded, I would probably use the graphical utility rather than the cmd line. Go to the same place as before, except instead of clicking on "Remove", click on "Media Manager". Then press "Add...", and browse to the location of your downloaded rpm. After that directory is in your search path, you can back up one menu and click on "Add". Your new rpm should be there, so select it and click "Install".

Try it out and let us know how it worked!
 
Old 07-22-2005, 07:42 AM   #20
Adrian Baker
Member
 
Registered: Apr 2004
Distribution: PCLinuxOS 2007 on my laptop and Suse 10.2 on my desktop.
Posts: 341

Original Poster
Rep: Reputation: 30
Thanks for the advice. I'm really busy today but will try out what you said later.

Meanwhile - here is the source of my kernel download:

http://www.mirrorservice.org/sites/s...n/%5Bpage=5%5D

It took some finding!
 
Old 07-22-2005, 04:13 PM   #21
Adrian Baker
Member
 
Registered: Apr 2004
Distribution: PCLinuxOS 2007 on my laptop and Suse 10.2 on my desktop.
Posts: 341

Original Poster
Rep: Reputation: 30
Some progress... but still no internet!

I used the tools suggested above. However, it appears that the kernel sources were on CD3 of the mandrake download. Anyway, I installed these using the GUI configure tool and success! The kernel appeared at /usr/src/linux Yippee!!

I then went back to installing ndiswrapper.

I did:

make KSRC=/usr/src/linux

and that worked!!
Then I did:

make install KSRC=/usr/src/linux

and that worked too!!


Then I did:

ndiswrapper -i netrtusb.inf

and that seemed to work

Then I did:

ndiswrapper -l

and got:

netrtusb driver installed hardware present (Yippeee!!!!!)


I then did:

modprobe ndiswrapper

...and the shell window locked up!


I rebooted, did: ndiswrapper -l

and all was Ok. I did:

modprobe ndiswrapper


and got no error message...... but still my D-link USB dongle didn't light up.


I then unplugged my USB D-link dongle and then did: dsmeg

After about 25 identical lines saying something about USB link at address 3 I got a message that basically said "windows drivers don't recognise USB device"

Hmm. very puzzled now. The windows drivers that I used to get my D-link dongle working in Windows don't seem to work in linux

I uninstalled ndiswrapper and tried again, but always get the same result - it doesn't work..

I've now done absolutely everything possible to get this bl***y thing working and frankly I give up! I've read and printed out over 60 pages of advice from the 'net. I've reinstalled Mandrake, I've upgraded mandrake, I've tried 4 different versions of ndiswrapper, I've used different kernels, I've done everybloody thing ....AAAAARRRGGGHHHHH!!

Either Mandrake, or me, can't make this work. I give up.

 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ndiswrapper - Cant find kernel sources while installing (Kernel 2.6.11) krayhze Linux - Wireless Networking 6 05-23-2006 06:30 AM
Unable to find ndiswrapper interface willplatts Linux - Wireless Networking 1 11-27-2005 11:37 AM
Ndiswrapper cant find "right" kernel source Anders.H Slackware 21 09-28-2005 04:08 PM
Where to find Kernel Source to install ndiswrapper ProoN Linux - Wireless Networking 5 07-09-2005 11:33 PM
Can't find ndiswrapper jmielens Linux - Wireless Networking 7 08-31-2004 12:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration