LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Faulty kernel??? (https://www.linuxquestions.org/questions/linux-software-2/faulty-kernel-418059/)

laasunde 02-21-2006 12:46 PM

Faulty kernel???
 
Hi,

When trying to install a driver I got a message that I was missing linux/version.h, after a bit of searching online I came across and webpage giving this bit of advice;

Code:

If you get an "linux/version.h no such file or directory" message when compiling the driver, you either have not installed the kernel source code, or you haven't run

cd /usr/src/linux; make include/linux/version.h

yet.

[Source]

This seem to have fixed the problem so I continued to try and install the driver and then get the following output:
Code:

[root@localhost pwc-10.0.11]# make KSRC=/usr/src/linux
make -C /usr/src/linux SUBDIRS=/tmp/pwc-10.0.11 modules
make[1]: Entering directory `/usr/src/linux-2.6.10'
  CC [M]  /tmp/pwc-10.0.11/pwc-if.o
  CC [M]  /tmp/pwc-10.0.11/pwc-misc.o
  CC [M]  /tmp/pwc-10.0.11/pwc-ctrl.o
  CC [M]  /tmp/pwc-10.0.11/pwc-v4l.o
  CC [M]  /tmp/pwc-10.0.11/pwc-uncompress.o
  CC [M]  /tmp/pwc-10.0.11/pwc-dec1.o
  CC [M]  /tmp/pwc-10.0.11/pwc-dec23.o
  CC [M]  /tmp/pwc-10.0.11/pwc-kiara.o
  CC [M]  /tmp/pwc-10.0.11/pwc-timon.o
  LD [M]  /tmp/pwc-10.0.11/pwc.o
  Building modules, stage 2.
  MODPOST
/bin/sh: scripts/mod/modpost: No such file or directory
make[2]: *** [__modpost] Error 127
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.10'
make: *** [all] Error 2
[root@localhost pwc-10.0.11]#

One a forum they seem to indicate that this means a incomplete or broken kernel. Is that true? Any way to check and fix this?

Using kernel 2.6.10 with RTAI 3.3 patch added to it.

Thanks for any suggestions.

burntfuse 02-21-2006 03:45 PM

If nothing else works, you could try downloading a new kernel and configuring and building it yourself.

laasunde 02-21-2006 04:03 PM

Not sure if I explained myself properly in the first post.

At the moment Im using a vanilla kernel which is been patched with a RTAI 3.3 patch.

When trying to install a
stand alone video module for kernel 2.6
(Running a 'make' command) I received
an error that I'm missing linux\version.h

By running
Code:

cd /usr/src/linux; make include/linux/version.h
I'm able to remove that error message but now I receive the following error
Code:

  Building modules, stage 2.
  MODPOST
/bin/sh: scripts/mod/modpost: No such file or directory
make[2]: *** [__modpost] Error 127
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.10'
make: *** [all] Error 2

I'm starting to worry that my kernel might be faulty or broken because of this error messages
and because what I read here
and here.

When making the current kernel (with RTAI) I follow this step-by-step
manual.

Beside the error message I recived when trying to install the driver everything else seems to
be working fine. I do however worry that there might be something wrong with the current setup.

Is there any way to check the current kernel setup or get rid of the error message I'm getting?

Thanks

burntfuse 02-28-2006 02:19 PM

Yeah, I knew what you meant. I meant that by downloading a new stock kernel and trying to build that you could see if your current kernel's broken, or if it's a problem with your system. If it works without the patches, then you know that the patches might be breaking something.

Penguin of Wonder 02-28-2006 04:20 PM

Quote:

Originally Posted by laasunde
Is there any way to check the current kernel setup or get rid of the error message I'm getting?
Thanks

You can check out your current kernel setup by looking at the .config file that comes with it. That will tell you all the options that comes with your kernel, and whether or not they are included, modules, or are not included. Usually you can find a copy in /boot. But /usr/src usally has a copy to I think.


All times are GMT -5. The time now is 04:29 AM.