LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Modules error after compile 2.6.8.1 kernel (https://www.linuxquestions.org/questions/slackware-14/modules-error-after-compile-2-6-8-1-kernel-238548/)

mathias1975 10-04-2004 05:43 AM

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.

320mb 10-04-2004 06:50 AM

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..............

eyeliner 10-04-2004 07:02 AM

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...

mathias1975 10-04-2004 07:08 AM

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.

mathias1975 10-04-2004 07:10 AM

Sorry eyeliner this post was ment to be the answer to the guy called himself 320mb

mathias1975 10-04-2004 07:13 AM

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 ?

KMcD 10-04-2004 07:35 AM

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.

eyeliner 10-04-2004 07:44 AM

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.

mathias1975 10-04-2004 09:28 AM

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.

eyeliner 10-04-2004 09:41 AM

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...

KMcD 10-04-2004 11:22 AM

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.

hkxx9 10-04-2004 03:00 PM

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

KMcD 10-05-2004 02:52 AM

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.


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