LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-04-2004, 05:43 AM   #1
mathias1975
LQ Newbie
 
Registered: Sep 2004
Location: Poland
Distribution: debian
Posts: 5

Rep: Reputation: 0
Modules error after compile 2.6.8.1 kernel


I decided to move to slackware distro from debian (mandrake earlier). I made full install of Slackware 10, installed what I need and then made next step - compiling new kernel 2.6.8.1. It's worth to ment that the system didn't recover my parallel port so I wasn't able to use my printer. I did a few configs but in most cases I had problems inserting modules. At the end
I got something similar to this:

version magic '2.6.8.1 K7 gcc-3.3' should be '2.6.8.1-K7 preempt
K7 gcc-3.3' insmod: error inserting '/lib/xxxx.ko': -1 Invalid

Whats the problem ? When I was trying to insert realtek 8139 into kernel I got this error : FATAL 8139too modules not found or similar and thereof the network card didn't work.

After all when I tried to boot with kernel 2.6.8.1 today in the morning it can not boot from partition althought yesterday everything was ok. Could you please give me some advice on above problems.
 
Old 10-04-2004, 06:50 AM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 47
Re: Modules error after compile 2.6.8.1 kernel

Quote:
Originally posted by mathias1975
I made full install of Slackware 10, installed what I need and then made next step - compiling new kernel 2.6.8.1..
the next step would be to use the system and get used to how Slackware really works..............
 
Old 10-04-2004, 07:02 AM   #3
eyeliner
Member
 
Registered: Aug 2004
Location: Near...
Distribution: Mandriva 2011.0
Posts: 58

Rep: Reputation: 15
Did you
"make modules" and then
"make modules_install"?
Did you copy system-2.6.8.1 to /boot/system.map
and .config to /boot config?

I've compiled the same kernel and everything is "chiky baby";
I've even rebooted my laptop now just to see if everything is good.
It loads quite fast as i have compiled the few moduled i need
the most on the kernel.

My only problem is that I think a few problems ocurr during boot.
There is no hotplug start and no services run, and that is why is
loads in blistering speed.

Probably that is why the laptop doesn't power down...
 
Old 10-04-2004, 07:08 AM   #4
mathias1975
LQ Newbie
 
Registered: Sep 2004
Location: Poland
Distribution: debian
Posts: 5

Original Poster
Rep: Reputation: 0
Like most people here I'm not an expert on Slackware. However I have red a lot of articles about so I was able to compile kernel which was almost OK. The only thing I need to know is how to eliminate the errors mentioned on earlier post. I don't need your suggestions - if you're not going to help me do better say nothing.
 
Old 10-04-2004, 07:10 AM   #5
mathias1975
LQ Newbie
 
Registered: Sep 2004
Location: Poland
Distribution: debian
Posts: 5

Original Poster
Rep: Reputation: 0
Sorry eyeliner this post was ment to be the answer to the guy called himself 320mb
 
Old 10-04-2004, 07:13 AM   #6
mathias1975
LQ Newbie
 
Registered: Sep 2004
Location: Poland
Distribution: debian
Posts: 5

Original Poster
Rep: Reputation: 0
I have forgotten to copy the System.map to /boot/System.map I try and run it again. Thanx . Do I really need to copy .config to /boot/.config too ?
 
Old 10-04-2004, 07:35 AM   #7
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
no you don't need that. Besides, if you edit the Makefile and change the install_path to /boot/ then you won't have to worry about copying files to the boot folder, it will be done automatically.

The best bet is to get the generic slackware 2.6.8.1 .config file and then just remove what you're certain you don't need. Look on any slackware mirror and you'll find the .config. Best of luck.
 
Old 10-04-2004, 07:44 AM   #8
eyeliner
Member
 
Registered: Aug 2004
Location: Near...
Distribution: Mandriva 2011.0
Posts: 58

Rep: Reputation: 15
Hey mathias1975, does it work?

I don't know if the above files ARE mandatory, but as i had my
share of problems with kernels, i do it all like i said.

I don't know why, I'm somewhat afraid that the auto install
feature overrides any previous one (and it did!!).

Maybe I'll start to create a new directory in /boot after each
kernel so to keep a better control of all files.

Cheers.
 
Old 10-04-2004, 09:28 AM   #9
mathias1975
LQ Newbie
 
Registered: Sep 2004
Location: Poland
Distribution: debian
Posts: 5

Original Poster
Rep: Reputation: 0
I have made everything once again sticking install_path = /boot/ into Makefile as suggested by KMcD. Everything works just fine except i still encounter problems with parallel port - it doesn't want to load on the begining - I have put it as a module. I think that the problem described by me on the begining of the thread was connected with some mess I did between old and new kernel files. I find it important to do all the things carefully.
 
Old 10-04-2004, 09:41 AM   #10
eyeliner
Member
 
Registered: Aug 2004
Location: Near...
Distribution: Mandriva 2011.0
Posts: 58

Rep: Reputation: 15
Tell me about it.

I am with an almost useless system because I triffled with a precompiled kernel, modules and headers.

As of now, no services run at boot, so no net and network.

Probably we stumbled on the same thing.
As I can't do much with the services, i'll have to reinstall.
Damn...
 
Old 10-04-2004, 11:22 AM   #11
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
Quote:
Originally posted by eyeliner
I don't know why, I'm somewhat afraid that the auto install
feature overrides any previous one (and it did!!).
I know what you mean. My standard practise is to now create a new folder for each kernel I'm testing and install the test image to this new folder. For instance on my pc I have the default 2.4.26 kernel installed in /boot/, a test 2.4.27 kernel installed at /boot.27/ and a test 2.6.8.1 installed at /boot6.x/

Once I have the 2.6.8.1 kernel stable I'll install it to /boot/ and change the makefile to reflect this. You won't mess up your system as long as you backup the stable boot folder and it modules.
 
Old 10-04-2004, 03:00 PM   #12
hkxx9
Member
 
Registered: Sep 2004
Location: Smoky Mtns
Distribution: Slackware 10
Posts: 64

Rep: Reputation: 15
KMcD: Where could I find this 2.6.8.1 generic config file?
I would be interested in looking at it. Don't see it on the
mirror I downloaded from.

cheers
 
Old 10-05-2004, 02:52 AM   #13
KMcD
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slack -- current
Posts: 354

Rep: Reputation: 30
try this link, on the HEAnet mirror, based in Ireland.

Just download, rename to .config and move to /usr/src/linux-2.6.8.1/

When on the mirror ftp site, look for testing/source/linux-2.6.x/

should be there.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 modules after kernel compile glorsplitz Slackware 7 09-20-2005 10:26 AM
no lib/modules/2.6.13 after kernel compile Motown Slackware 2 09-07-2005 07:59 AM
Compile Error- /lib/modules/extra/modules.dep UpChuck Debian 2 01-11-2004 10:20 AM
No more modules after kernel compile w/ ck patch uglydot Slackware 3 11-10-2003 03:04 PM
modules after re-compile kernel skarim Linux - Software 3 10-15-2003 01:48 AM


All times are GMT -5. The time now is 12:23 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration