LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 02-28-2007, 10:29 AM   #1
deadlinx
Member
 
Registered: Feb 2006
Location: Italy
Distribution: Ubuntu FreeBSD
Posts: 92

Rep: Reputation: 15
/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

Last edited by deadlinx; 02-28-2007 at 10:34 AM.
 
Old 02-28-2007, 11:15 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
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.
 
Old 02-28-2007, 11:58 AM   #3
deadlinx
Member
 
Registered: Feb 2006
Location: Italy
Distribution: Ubuntu FreeBSD
Posts: 92

Original Poster
Rep: Reputation: 15
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
 
Old 02-28-2007, 02:53 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
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.
 
Old 02-28-2007, 03:26 PM   #5
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
"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?

Last edited by Quakeboy02; 02-28-2007 at 03:44 PM.
 
Old 03-01-2007, 04:58 AM   #6
deadlinx
Member
 
Registered: Feb 2006
Location: Italy
Distribution: Ubuntu FreeBSD
Posts: 92

Original Poster
Rep: Reputation: 15
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
 
Old 03-01-2007, 12:27 PM   #7
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
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.
 
Old 03-27-2007, 11:03 AM   #8
deadlinx
Member
 
Registered: Feb 2006
Location: Italy
Distribution: Ubuntu FreeBSD
Posts: 92

Original Poster
Rep: Reputation: 15
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
 
Old 03-27-2007, 12:24 PM   #9
deadlinx
Member
 
Registered: Feb 2006
Location: Italy
Distribution: Ubuntu FreeBSD
Posts: 92

Original Poster
Rep: Reputation: 15
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
 
  


Reply

Tags
building, custom, kernel



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
no lib/modules/2.6.13 after kernel compile Motown Slackware 2 09-07-2005 07:59 AM
/lib/modules/.../kernel/drivers empty? maxware Linux - General 7 03-05-2004 07:58 PM
/lib/modules Issues w/ New Kernel peace Linux - General 2 01-03-2004 04:50 PM
After compiling 2.6 kernel >> not enough drivers in /lib/modules?? Jefklak Linux - Software 9 10-21-2003 11:55 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - Newbie 2 01-24-2002 01:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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