LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-10-2003, 01:34 PM   #1
SomeEverydayNob
LQ Newbie
 
Registered: Jul 2002
Distribution: Slackware 9
Posts: 6

Rep: Reputation: 0
Clarification needed.....


Okay, Im trying to install my HSP56 MicroModem in Slackware 9. I found a driver and installation guide, but I can't figure out a few things in it. Heres what I need help with:

==========
Section 5
==========

5. Compiling and installing the drivers

The first requisite for installation is that you have a kernel source
in /usr/src/linux/ (see section 7.7) and it must be configured, that
is, you should have done a bash$ make configure and bash$ make dep on
it.
While doing these make sure that you have the source for your running
kernel...for example, if you are running kernel 2.4.8 and if you have
the source for kernel 2.4.9 in /usr/src/linux/, then the drivers would
not work.
Moreover, you must configure the kernel with isapnp and pnp support and
see to the fact that you don't have a smp/uniprocessor mismatch ( that
is, running uniprocessor kernel but having a kernel source with smp
support in /usr/src/linux). Also, you will need a kernel which supports
loadable modules.
And of course, you need to have gcc installed, check it by issuing the
command bash$ gcc -v . If you do not get any errors, then everything is
all right
If you have gcc version 3 or above , and have problems during
compiling, please refer to this section in the FAQ.

==========
Section 7.7
==========

7.7. Directory of the kernel source files
If you get an error saying /usr/src/linux/include/linux/modversions.h :
no such file or directory, look in your /usr/src directory for the
kernel source. The default location is /usr/src/linux/ but some
distributions may install the files somewhere else.
If you find that the files are somewhere else, say in the directory,
/usr/src/myspecialsource/ , do not try to move the files, just create a
symbolic link with the command
bash$ ln -s /usr/src/myspecialdirectory/ /usr/src/linux/
In case of the PCTel-0.8.6 or newer drivers you can also specify the
location of your kernel source by using the option
bash$ --with-kernel-includes=your kernel source directory
during running the configure script.

==========
What I need
==========

Okay, it mentions in section 7.7, an error involving modversions.h. Then it says if you get this error, to look in another file for your kernel source. So I'de imagine modversions.h is your kernel source? Mine is located in /usr/include/linux/modversions.h.

Now, it says in section 5, that I have to do a 'make configure' and 'make dep' on this file. How would I do this? I tried doing '/usr/include/linux/modversions.h make configure/dep' but it always says permission denied [Im logged in as root].

It also says I need to configure the kernel with isapnp and pnp support and see to the fact that I don't have a smp/uniprocessor mismatch. How would I do this?

It also says I need a kernel which supports loadable modules. How would I figure this out?

Thanks.
 
Old 05-10-2003, 01:47 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Oops, thought this concerned mandrake

Last edited by fancypiper; 05-10-2003 at 01:48 PM.
 
Old 05-10-2003, 01:48 PM   #3
SomeEverydayNob
LQ Newbie
 
Registered: Jul 2002
Distribution: Slackware 9
Posts: 6

Original Poster
Rep: Reputation: 0
np.....
 
Old 05-10-2003, 02:07 PM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
I'm not a slacker, but your kernel source code is in:

/usr/src/linux-<version number>

and there should be a link

/usr/src/linux

that points to the source code directory.

You might want to rename your old kernel and edit your bootloader to reflect this if your present kernel's name is bzImage

To configure your kernel for compiling as root:

cd /usr/src/linux
make menuconfig

This is where you configure modules, etc. Save your config when exiting

Compile your kernel (working directory is either /usr/src/linux or the actual directory of the source by commanding:

make dep && make clean bzImage modules modules_install

Then copy your new kernel:

cp /usr/src/linux/arch/i386/boot/bzImage /boot

Edit your bootloader, run /sbin/lilo if you use lilo, etc.

The Linux Kernel HOWTO

HTH
 
  


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
Clarification needed in this reg exp/awk code mselvam Programming 3 07-09-2005 05:26 PM
Clarification Needed nagu_linux Linux - Software 1 03-30-2005 02:48 AM
GRUB clarification needed CyberLord_7 Fedora 2 02-16-2005 01:37 PM
about an add clarification jamaso Linux - General 1 04-18-2004 08:36 AM
download clarification needed-kde 3.04 ronss Linux - Software 5 10-15-2002 04:43 AM

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

All times are GMT -5. The time now is 01:25 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
Open Source Consulting | Domain Registration