LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 02-14-2003, 02:09 PM   #1
wrc1944
Member
 
Registered: Aug 2002
Location: Gainesville, Florida
Distribution: Gentoo ~x86 2007.0
Posts: 139

Rep: Reputation: 15
Recompiling Stoc Drake 9.0 kernel for Athlon XP question


I've done 3 or 4 kernel compiles (different versions) OK, but never the
following scenario, so I'd like to run this by the experts here. My
objective is to right after a fresh install of Mandrake 9.0,
immediatly recompile the kernel for an athlon XP cpu, and remove
unneeded stuff for which I don't run, or have no hardware for. My
thinking is this:

1. Copy the .config file from /usr/src/linux-2.4.19-16mdk to another
location
for my minor editing, and then run make mrproper.

2. Do my editing of .config, and then copy it back to
usr/src/linux-2.4.19-16mdk.

3. Then do the normal make dep && make clean && make bzImage && make
modules

4. Then do make modules_install && make install. Then run lilo.

Shouldn't that do it?

Some questions come to mind:

1. Should I change the makefile Extra version, or do nothing? I want
the install to overwrite the /lib/modules, so why should I change the
version?

2. Is running lilo necessary? After all, I'm not adding another kernel
version,I'm just recompiling the same one from the same sources for my
Athlon cpu.

3. Is this somehow going to mess up /boot and System.map?

If this procedure won't work, can somebody please enlighten me as to
where I'm going wrong? I'm hoping I will wind up with exactly the same
kernel, and setup,but now compiled for my Athlon-XP cpu, not i586, and
a little leaner kernel.

Thanks,
wrc1944
 
Old 02-14-2003, 02:51 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
It looks OK. I think you should change the version name and compile is as every other kernel. Just in case. Everyone makes mistakes. With no running kernel you won't be able to boot easily. You can always delete the old one...
 
Old 02-14-2003, 03:25 PM   #3
wrc1944
Member
 
Registered: Aug 2002
Location: Gainesville, Florida
Distribution: Gentoo ~x86 2007.0
Posts: 139

Original Poster
Rep: Reputation: 15
Mara,
OK- if I did it with the version changed, I know I'd have to run lilo. But if I do it just as described above, am I correct in thinking I don't need to run lilo, and it would overwrite the /lib/modules?

I plan on adding other kernels with preemptive patchs later, but wish to keep the basic Mandrake 9.0 kernel too, but just have it recompiled for Athlon XP cpu.

Since this would be done first thing after an 9.0 install, in the unlikely event I messed up editing .config, I could just run another install with the install floppy with all my packages selections already done- real quick and simple.

wrc1944
 
Old 02-14-2003, 04:26 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
It would overwrite the modules. But I recommend to run lilo. I tried such thing once and it didn't work. I had to run lilo.
 
  


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
Kernel 2.6.10 on drake 10.1 - PCMCIA problems jelitegamer Linux - Software 0 02-26-2005 07:31 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM
'drake console command question the_idoru Linux - Newbie 1 03-16-2003 11:39 AM
recompiling php question j-ray Linux - Software 5 07-20-2002 04:10 PM
A question About ATHLON 1.4 Ghz emperor13 Linux - General 2 10-15-2001 11:17 AM

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

All times are GMT -5. The time now is 05:25 AM.

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