LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   /lib/modules/kernel-2.6.19.2 -- lost (https://www.linuxquestions.org/questions/linux-kernel-70/lib-modules-kernel-2-6-19-2-lost-533282/)

deadlinx 02-28-2007 10:29 AM

/lib/modules/kernel-2.6.19.2 -- lost
 
Hi,

explanation of the problem in few words:
compiling some drivers, some processes exit with errors
appearently due to the absence of the /lib/modules/2.6.19.2
where 2.6.19.2 is the kernel I built.

In these alst 13 days I was searching for a way to solve this problem,
but I'm not able to find a solution.



"exhaustive" explanation of the problem:

I built my own kernel 2.6.19.2 for my Ubuntu Edgy
following the well known Debian and Ubuntu guides:
make-kpkg --initrd --append-to-version -versione kernel_image kernel_headers modules_image

The new kernel works perfectly so I begin installing
external drivers I need: I installed Nvidia driver and
r1000 (for my Realtek 8168 Gigabit Ethernet card) without
problems.



Finally I was going to install the ipw3545 driver
'cause it is not included in the vanilla;
I followed the "README" of the official project
that can also be found on a high number of sites and blogs.
After successfully installing the new ieee stack
I enter the ipw3945 directory and type:
make the process breaks it seems because it is not able
to find the directory /lib/modules/2.6.19.2
The same problem occurs when I try to to build and use the
support for my Hauppauge WinTV HVR900.



I also rebuilt the kernel with the "classical" way (make bzImage and so on)
and the "make-kpkg" way, but the result is still the same :-(

Please help me 'cause at this moment the only way to use my
wi-fi card is using the official Ubuntu kernel,
but I need to run a custom kernel.


sincerely,

deadlinx

weibullguy 02-28-2007 11:15 AM

Your really better off posting the actual error messages rather than your Reader's Digest condensed version fo what you think the problem is. Posting the last 20-30 line of the make output is usually sufficient to ascertain what happened.

deadlinx 02-28-2007 11:58 AM

Hi,

At this moment I'm not on my Linuxbox, in synthesis the output said:
there is no 2.6.19.2 in /lib/modules/ exiting
error 2

this seems to be something more than my opinion about the problem,
I just read the screen output, anyway for being exahustive I'll
post the complete output as soon as possible.

deadlinx

Emerson 02-28-2007 02:53 PM

Quote:

I also rebuilt the kernel with the "classical" way (make bzImage and so on)
and the "make-kpkg" way, but the result is still the same :-(
This method is rather ancient. The correct method to build a 2.6 kernel is in README file located in root of kernel sources.

Quakeboy02 02-28-2007 03:26 PM

"I also rebuilt the kernel with the "classical" way (make bzImage and so on)
and the "make-kpkg" way, but the result is still the same :-("

Did you install the resulting ".deb" that make-kpkg created? Do you actually still have a "/lib/modules" directory? Could we see the result of "ls /lib/modules" in case there's something obvious that you're missing?

deadlinx 03-01-2007 04:58 AM

Quote:

Originally Posted by Quakeboy02
Did you install the resulting ".deb" that make-kpkg created?

Hi,

yes, I do,
I install the new deb packages I created: linux-image and the linux headers.


Quote:

Originally Posted by Quakeboy02
Do you actually still have a "/lib/modules" directory? Could we see the result of "ls /lib/modules" in case there's something obvious that you're missing?

In /lib/modules I have the directory referred to the defaul Edgy kernel

Quakeboy02 03-01-2007 12:27 PM

Can we see the exact make string you used, including all the options you selected? Not just a description of it, but the exact string of characters you type to make it.

Can we see the exact response from "ls /lib/modules"? Not just a description of it, but the exact response.

Can we see the exact result of "ls -l *.deb" in the directory where your .deb is? Not just a description of it, but the exact response.

deadlinx 03-27-2007 11:03 AM

I finally solved!
 
Hi,

as usual the only good way to solve a problem
is thinking you are alone and no one will really
helping you when you get in trouble.

I didn't reply to every posts here 'cause
I understood there wasn't a quick solution,
so I prefer solve my problem rather than replying
posts and solve nothing, maybe it was not a good
idea :-(

I used to read the Ubuntu wike for having the
best details about my Edgy-box,
I found a good italian how-to here:

http://wiki.ubuntu-it.org/CompilazioneKernel

it advises me to use these commands:

sudo make-kpkg --append-to-version=-custom --initrd kernel_image kernel_headers modules_image


Unfortunately I get in trouble with these,
in the end, after dpkg installation of packages,
no directory for the new kernel is create di /lib/modules





--> Solution <--





The problem is, if you want a Ramdisk image,
but it's really unuseful for a custom kernel
(you'll get a slower boot time!),

so if need a Ramdisk these are correct commands,
in correct order:

sudo make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers modules_image

In this way I have no problem!


If only people who writes in wiki cares about it
there are no more problem like this.

It's not a silly consideration, in fact an official wiki
should be written to solve problem, especially considering
wrong commands lie on the italian official Ubuntu wiki,
so I spent a lot of time before considering a Ubuntu wiki fault.


I'm not a seasoned Unix geek, so I only find that
order of instructions didn't work, but putting --initrd
before --append-to-version=-mynewkernel everything
seems to work perfectly.


I write this post for trying to be useful,
so please be patient if I seem angry,
but I lost a lot of time because of a really
simply solution --> next time I'll reply posts :-)


sincerely,

deadlinx

deadlinx 03-27-2007 12:24 PM

Hi,

I've written to the italian Ubuntu wiki staff
to explain the problem I had so they can
avoid other people to front this error.

sincerely


deadlinx


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