LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 01-06-2005, 03:03 PM   #1
Xavius
Member
 
Registered: Mar 2004
Posts: 107

Rep: Reputation: 15
kernel compiling problem: can I use 2.4 .config file with 2.6 ?


Compiling the 2.6.10 kernel, can I use the .config file from my 2.4.27 kernel ?

I don't want to begin the kernel configuration from zero. It's not because I'm lazy but because I don't want to miss some important option or misunderstand something.........
 
Old 01-06-2005, 03:16 PM   #2
WMD
Member
 
Registered: Jul 2004
Location: Florida
Distribution: Slackware, Debian
Posts: 484

Rep: Reputation: 30
No. There's a lot of changes. The 2.4 config won't work with it.
 
Old 01-06-2005, 03:17 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"Compiling the 2.6.10 kernel, can I use the .config file from my 2.4.27 kernel ?"

When 2.6 first came out Linus Torvalds said that using 2.4 config files on a 2.6 compile will cause problems.

--------------------------------
Steve Stites
 
Old 01-06-2005, 03:24 PM   #4
Xavius
Member
 
Registered: Mar 2004
Posts: 107

Original Poster
Rep: Reputation: 15
thanks a lot!

where can I find a guide for kernel 2.6 options?

I don't mean a "compiling" guide, but a guide that explains all (or most) of the kernel options and feaures........
I really don't want miss some important option or misudersand some setting......... because if I wnt a working kernel of course I must understand what I'm going to do.........

Someone can help me?

thanks in advance
 
Old 01-06-2005, 03:30 PM   #5
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
well....i did use the 2.4--- config-file as a start-point for the 2.6--- kernels.
it gives a lot of errors when starting " make xconfig " , but most basics will be set correctly .

but you need to take a good look at all of it anyway.
( but it's just as a start... )

egag
 
Old 01-06-2005, 03:37 PM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
you could always go to slackware.com and get the 2.6 kernel out of current. get the kernel-ide-2.6.x (or replace ide with whatever you want).

instead of installing the kernel with installpkg, just unzip the .tgz file (tar -zxvf kernel-ide-2.6.x-i486.tgz) and use its config. It will have a file named config-ide-2.6.x copy that to your kernel source file as .config and run xconfig or meuconfig.
 
Old 01-06-2005, 04:07 PM   #7
Xavius
Member
 
Registered: Mar 2004
Posts: 107

Original Poster
Rep: Reputation: 15
but where is this file?
I found linux-2.6.9.tar.bz2 and kernel-source-2.6.9-noarch-1.tgz, but not the file you say......

where is that file in slackware-curent directory?
 
Old 01-06-2005, 05:01 PM   #8
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46

Oops, its in the current-->testing-->linux-2.6.x directory named kernel-generic-2.6.9-1.tgz

Last edited by __J; 01-06-2005 at 05:03 PM.
 
Old 01-06-2005, 06:14 PM   #9
Xavius
Member
 
Registered: Mar 2004
Posts: 107

Original Poster
Rep: Reputation: 15
using that .config file, after some tweaking I havde compiled and installed the kernel.

But, when rebooting, if I choose the 2.6.10 kernel I get the error

Kernel panic - not syncing: vfs: unable to mount fs on unknow-black (3,70)

what's the meaning of it? and how can I solve it?
I understand that the system cannot mount filesystem, but why?
 
Old 01-06-2005, 06:20 PM   #10
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Problem with your hard drive controler driver, SCSI or IDE or you did not enabled your root
partition filesystem as built-in but as module (more likely if you use the default config and did not
set a initrd).

To solves this, check and re-check your IDE or SCSI config and filesystem too

then recompile and reinstall the kernel and modules
 
Old 01-06-2005, 06:21 PM   #11
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
you best compile-in the file-system you use. ( reiserfs or ext2/3 )
maybe you didn't do that... ?

egag
 
Old 01-06-2005, 06:26 PM   #12
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Rep: Reputation: 30
most of the time, i do not dare touch the ide and scsi sections, except for 2 obvious things: remove tape/floppy support (i'm on a laptop) and add scsi-emulation support.
 
Old 01-07-2005, 03:33 AM   #13
Xavius
Member
 
Registered: Mar 2004
Posts: 107

Original Poster
Rep: Reputation: 15
I have compiled with built-in support for reiserfs (my / filesystem) and now the system boots.

but X cannot starts.

If I do startx I get a message saying: no configuration is good.......... Should I reinstall the videocard drivers? This can solve the problem?

or the configuration of xorg.conf for 2.6.10 differs from that for 2.4 ?
 
Old 01-07-2005, 05:09 AM   #14
kostian
Member
 
Registered: Jul 2004
Location: LT
Posts: 150

Rep: Reputation: 15
Quote:
Originally posted by Xavius
Should I reinstall the videocard drivers?
yes.
 
Old 01-07-2005, 09:30 AM   #15
Xavius
Member
 
Registered: Mar 2004
Posts: 107

Original Poster
Rep: Reputation: 15
installing the NVidia driver I'm having some troubles.

If I install 6029 version, the install goes well, but my sistem always had problem with these drivers. A lot of things in kde are totally transparent, like desktop backgrounds, menu, bar and the system is totally unusable..........

I don't think it's a problem of kde, because there are no problem with driver version 6111

For this, with kernel 2.4 I use NVidia drivers 6111, but these drivers don't install with kernel 2.6.10
Trying to install I get the error:

ERROR: Unable to load the kernel module 'nvidia.ko'. This is most likely
because the kernel module was built using the wrong kernel source files.
Please make sure you have installed the kernel source files for your
kernel; on Red Hat Linux systems, for example, be sure you have the
'kernel-source' rpm installed. If you know the correct kernel source
files are installed, you may specify the kernel source path with the
'--kernel-source-path' commandline option.


The problem is that version 6629 installs without problem with both kernel and version 6111 installs with kernel 2.4, so I don't get because the drivers 6111 with kernel 2.6 give this problem..........

Any suggestion?
 
  


Reply



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
compiling an old kernel using a new config file? slinky2004 Linux - General 5 10-06-2005 10:40 AM
Compiling the Kernel, config hell. dataangel Linux - Newbie 4 09-05-2004 09:24 PM
Lilo config for compiling new kernel problem Zaskar Debian 4 07-31-2004 01:11 PM
kernel compiling and config problems c31c Linux - Newbie 6 04-27-2004 11:49 AM
use of .config file while kernel compiling rvijay17 General 4 04-03-2003 04:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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