LinuxQuestions.org
Review your favorite Linux distribution.
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-18-2007, 04:46 AM   #1
hashess
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Rep: Reputation: 0
.config for 2.6.19.2 kernel


Hi all.
I just installed slackware 10.2 and I'd like to compile the last kernel available. So i took the kernel. But now, i'm stuck on the .config file.

In fact, the installed kernel is 2.4.x version and me, i want to put the last 2.6.x. and in the /boot directory there is no config file for 2.6.x.

So my question is : where can i get this config file for my kernel version?

Thanks a lot (I hope you understand me, i'm belgian and i only studied english at school for 8 years lol)
 
Old 01-18-2007, 05:14 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
When you're in the top directory of the source tree, execute make menuconfig and create the file.
 
Old 01-18-2007, 05:39 AM   #3
hashess
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Original Poster
Rep: Reputation: 0
you mean in the /usr/src/linux directory (where linux is the symbolic link of linux-2.6.19.2) ?

Can you give me a link where all is explain about what to put in module and in build and all about that please?
Thanks so much
 
Old 01-18-2007, 07:58 AM   #4
red_fire
Member
 
Registered: Jan 2007
Location: Indonesia
Distribution: Slackware Linux
Posts: 67

Rep: Reputation: 11
you can install linux-2.6.13 packages from the cd 2 first. use the config from the packages, after that just uninstall them.
 
Old 01-18-2007, 08:07 AM   #5
simcox1
Member
 
Registered: Mar 2005
Location: UK
Distribution: Slackware
Posts: 794
Blog Entries: 2

Rep: Reputation: 30
If you just want the .config, you can get them from any Slackware mirror. Here's a link. http://ftp.osuosl.org/pub/slackware/...generic-2.6.18

Last edited by simcox1; 01-18-2007 at 08:11 AM.
 
Old 01-18-2007, 09:33 AM   #6
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Big fat warning...do NOT remove your old, known to be working kernel and keep it as a choice in your menu.lst or lilo.conf until you're absolutely sure the new kernel works.

Given simcox1's generic configuration file, doing the following should give you a shiny new 2.6 series kernel. Use www.google.com for more detailed instructions, there are any number of sites providing advice/instructions on this procedure. Just be careful the advice/instructions apply to the 2.6 kernel. Alot of them don't and still tell you to do things like create /usr/src/linux symlinks to the source tree.
Code:
cd /usr/src
wget http://ftp.osuosl.org/pub/slackware/slackware-11.0/testing/source/linux-2.6.18/config-generic-2.6.18
mv -v config-generic-2.6.18 linux/.config
cd linux
make mrproper
make menuconfig
make
make modules_install
cp arch/<your_system_arch>/boot/bzImage /boot/kernel-2.6.19.2
cp System.map /boot/System.map-2.6.19.2
cp -v .config /boot/config-2.6.19.2
The configuration menu provides help on *every* selection. Usually the help says something like, "If you are unsure select..." and gives you a safe alternative. As far as modules vs. built in, stick with the generic configuration file simcox1 provided. Disable support only for those items you know you don't have.

Replace <your_system_arch> with the appropriate architecture. For example, my system is an x86_64, yours may be i386, only you know. After this you will need to edit your menu.lst or lilo.conf (?) and add the new kernel. Reboot, select the new kernel, hold your breath.
 
Old 01-18-2007, 11:04 AM   #7
hashess
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks everybody for your precious help.
Well i downloaded the .config file.

But i have a question about the order to proceed. Do i have to do this actions in this order :
after make, cp arch/...; cp System... and then symbolic links and finaly make modules_install or can do the modules install before cp arh/, ... cp System... and then symbolic links?

I hope you'll understand what I mean...
 
Old 01-18-2007, 11:08 AM   #8
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
What symbolic links? Follow the order I gave you in my last post and you should be OK. There are no symlinks that need to be created to compile and install a new kernel.
 
Old 01-18-2007, 01:16 PM   #9
hashess
LQ Newbie
 
Registered: Jan 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Ok everything is ok i'm running 2.6.19.2 thanks all

But i have some things to tell you :

In fact i did everything in this order :
cd /usr/src
wget http://ftp.osuosl.org/pub/slackware/...generic-2.6.18
mv -v config-generic-2.6.18 linux/.config
cd linux
make mrproper
make menuconfig
make
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.19.2
cp System.map /boot/System.map-2.6.19.2
cp -v .config /boot/config-2.6.19.2
make modules_install

then lilo configuration

That it. Thanks for your help
See you in the next topic lol
 
  


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
Can't run kernel config after APT kernel install rollo Debian 9 04-12-2006 05:06 PM
Kernel Config 2.6.x ewt3y Linux - Newbie 3 08-16-2005 06:29 AM
INFO: creating a special secured kernel (grsecurity kernel patch) w sysctl config markus1982 Linux - Security 0 05-25-2003 05:29 AM
I lost rmed my kernel config file. Anyway to create one from the kernel? severedhead Linux - Software 3 07-12-2002 07:54 PM

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

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