LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2004, 08:36 AM   #1
tomap
Member
 
Registered: Jul 2004
Location: Southern NJ
Posts: 44

Rep: Reputation: 15
Line Command


Greetings all,

I've encountered a small problem attempting to install ndiswrapper. This post has nothing to do with the installation or configuration of the wrapper but of my interpatation of of the installation instructions.

Sourceforge's 1st installation instruction states: (http://ndiswrapper.sourceforge.net/w...p/Installation)
recent kernel with source
and
the sources can be installed using the package kernel-source<kernel-version>.rpm

Does ?kernel- source? mean;

the cdrom ?
/mnt/cdrom/2.4.21-0.13mdk.rpm (which didn't work anyway)
or
/lib/modules/2.4.21-0.13mdk/ directory ?
or
/lib/modules/2.4.21-0.13mdk/kernel/ directory ?

Understanding this very first step will assist me in more ways than one.

Thanks for the assistance,
tomap
 
Old 10-15-2004, 08:47 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
The kernel source is the all of the source code that is compiled to create the modules and kernel. It is located in /usr/src directory. If it wasn't selected when you installed the OS you will need to load the RPM package.

If not installed you can use the GUI package manager or via the command line
rpm -iv kernel-source ..... rpm
 
Old 10-15-2004, 08:50 AM   #3
tomap
Member
 
Registered: Jul 2004
Location: Southern NJ
Posts: 44

Original Poster
Rep: Reputation: 15
All that's in the /usr/src directory is - RPM/
I don't recall (upon installation) anything about installing the source??

Regards,
tomap
 
Old 10-15-2004, 08:58 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
So you will need to install the source from the rpm.
 
Old 10-15-2004, 09:00 AM   #5
tomap
Member
 
Registered: Jul 2004
Location: Southern NJ
Posts: 44

Original Poster
Rep: Reputation: 15
michaelk,

Please explain what / where is the kernal source;
cdrom?

I've run the command:
rpm -iv kernel-source 2.4.21-0.13mdk.rpm

it reply's no such directory

Tomap
 
Old 10-15-2004, 09:09 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
The current working directory needs to be at the location where the rpm exists and are you logged in as root?
 
Old 10-15-2004, 09:21 AM   #7
tomap
Member
 
Registered: Jul 2004
Location: Southern NJ
Posts: 44

Original Poster
Rep: Reputation: 15
yes - I'm root
working from the /usr/src/RPM directory
 
Old 10-15-2004, 09:28 AM   #8
tomap
Member
 
Registered: Jul 2004
Location: Southern NJ
Posts: 44

Original Poster
Rep: Reputation: 15
I've run the command(s);
rpm -iv kernel-source /usr/src/RPM/linux-2.4.21-0.13mdk.rpm
&
rpm -iv /usr/src/RPM/linux-2.4.21-0.13mdk.rpm
&
rpm -iv kernel-source /usr/src/RPM/linux-2.4.21-0.13mdk.rpm
&
rpm -iv kernel-source linux-2.4.21-0.13mdk.rpm
&
rpm -iv kernel-source linux-2.4.21-0.13mdk.rpm

no such file or directory.....
 
Old 10-15-2004, 09:39 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
Do you know which CD contains the kernel source RPM?
Stick that in the drive, then cd to the directory
cd /mnt/cdrom/RPMS

I think that is the correct directory. If you ust cd to /mnt/cdrom and look via the ls command to see the subdirectories. Then cd to that directory, then install the source.

It might be easier for you to use the GUI package manager.
 
Old 10-15-2004, 10:10 AM   #10
tomap
Member
 
Registered: Jul 2004
Location: Southern NJ
Posts: 44

Original Poster
Rep: Reputation: 15
I did as suggested. Used the GUI and it did install the kernel source. Unfortunately, the /lusr/src still contains only the RPM directory.

That's all the time today I can devote to this issue.

Much thanks for your assistance, it is truely appreciated.

Regards,
tomap
 
Old 10-15-2004, 02:12 PM   #11
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
cd to /usr/src/rpm then ls to see what is in there,then install it the normal way for a rpm. rpm -ivh /usr/src/RPM/whatever
 
Old 10-17-2004, 11:27 PM   #12
tomap
Member
 
Registered: Jul 2004
Location: Southern NJ
Posts: 44

Original Poster
Rep: Reputation: 15
I'm back !!!
Hello all,

I finally got the kernek source installed (properly) and got ndiswrapper installed (with no error messages). Now it looks like I must be doing something wrong with the "inf" files and unsure of what it may be? The bcmw15.inf is the driver my windows OS is using, without any problems.
Following is the output from my attempts:

[root@localhost ndiswrapper-0.11]# ndiswrapper -i /mnt/win_d/r74091/ar/bcmw15.inf
ls: /etc/ndiswrapper: No such file or directory
Installing bcmw15
cp: cannot stat `/mnt/win_d/r74091/ar/bcmw15.inf': No such file or directory

[root@localhost ndiswrapper-0.11]# ndiswrapper -i INF /mnt/win_d/r74091/ar/bcmw15.inf
Usage: ndiswrapper OPTION

Manage ndis drivers for ndiswrapper.
-i inffile Install driver described by 'inffile'
-d pciid driver Use installed 'driver' for 'pciid'
-e driver Remove 'driver'
-l List installed drivers
-m Write configuration for modprobe
[root@localhost ndiswrapper-0.11]# ndiswrapper -i INF /mnt/win_d/r74091/ar/bcmw15
Usage: ndiswrapper OPTION

Manage ndis drivers for ndiswrapper.
-i inffile Install driver described by 'inffile'
-d pciid driver Use installed 'driver' for 'pciid'
-e driver Remove 'driver'
-l List installed drivers
-m Write configuration for modprobe
[root@localhost ndiswrapper-0.11]# ndiswrapper l
Usage: ndiswrapper OPTION

Manage ndis drivers for ndiswrapper.
-i inffile Install driver described by 'inffile'
-d pciid driver Use installed 'driver' for 'pciid'
-e driver Remove 'driver'
-l List installed drivers
-m Write configuration for modprobe

[root@localhost ndiswrapper-0.11]# ndiswrapper -l
Invalid product/subclass spec at line 2650
Installed ndis drivers:
bcmw15 invalid driver!
[root@localhost ndiswrapper-0.11]#

I'm wide open for suggestions...................

Regards,
tomap
 
  


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
Is there a single command to list all hardware installed (command line)? davee Linux - Hardware 6 02-28-2009 07:19 PM
Command to output file content line by line aznluvsmc Programming 2 09-12-2004 07:45 PM
51 characters only in the 1st Line of command line eggCover Linux - General 2 07-29-2004 01:28 PM
Command to display whole filestructure hierarchy f/ command line? mjewell Linux - Newbie 10 01-19-2004 10:48 AM
Where is Command line utility for Cups and command tutorial mossy Linux - Software 8 01-16-2004 12:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:31 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