LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-05-2003, 07:21 PM   #1
JROCK1980
Member
 
Registered: Aug 2003
Distribution: FreeBSD
Posts: 490

Rep: Reputation: 30
Kernel compile


I was wondering that when you do menuconfig and select everything you want. What should you save the file as> Does it matter? Thanks for the help. The Linux book does not mention what to save it as.
 
Old 09-05-2003, 07:26 PM   #2
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 46
Re: Kernel compile

you can save it as anything and anywhere you want. i think it defaults to saving itself in the current directory as .config (moving whatever .config is there to .config.old), but i don't think it matters as long as you remember where you saved it for when you want to load it again to reconfigure.
 
Old 09-05-2003, 07:38 PM   #3
JROCK1980
Member
 
Registered: Aug 2003
Distribution: FreeBSD
Posts: 490

Original Poster
Rep: Reputation: 30
So what ever you name it has nothing about what you put into lilo
 
Old 09-05-2003, 08:00 PM   #4
JROCK1980
Member
 
Registered: Aug 2003
Distribution: FreeBSD
Posts: 490

Original Poster
Rep: Reputation: 30
Ok I went ahead and complied everything edited my lilo.conf and I am unable to boot new kernel. Any ideas
 
Old 09-05-2003, 08:06 PM   #5
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 46
maybe you could post your recompile method, i.e., the exact steps you took.

as far as i know, the .config file just tells the kernel how to compile (or, what to compile into the kernel). it doesn't really have anything to do with lilo.

one question (sorry if it's a dumb one): did you run lilo after you edited the lilo.conf? i'm just asking b/c sometimes i forget to and then can't figure out what i did wrong.
 
Old 09-05-2003, 08:20 PM   #6
JROCK1980
Member
 
Registered: Aug 2003
Distribution: FreeBSD
Posts: 490

Original Poster
Rep: Reputation: 30
Ok I installed in the source.

then I made myself root

# make mrproper

# make menuconfig

# make dep

# make clean

# make bzImage

# make modules

# mv /vmlinuz /vmlinuz.old

# mv /boot/System.map /boot/System.map.old

# cp System.map /boot/System.map

Then I edited lilo.conf to ->

image = /boot/vmlinuz
root = /dev/hda3
label = Slackware
read-only

image = /boot/vmlinuz.old
root = /dev/hda3
label = Slackware.old
read-only

Saved my changes and typed lilo

it updated them and I then rebooted

When I select the Slackware. old my computer restarts itself. But that is what I tried and unable to get loaded.
 
Old 09-05-2003, 08:25 PM   #7
egh128
Member
 
Registered: Mar 2002
Location: Asheville, NC
Distribution: Ubuntu
Posts: 257

Rep: Reputation: 30
When you select Slackware.old it reboots? Wierd.
 
Old 09-05-2003, 08:35 PM   #8
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 46
doesn't moving vmlinuz to vmlinuz.old just rewrite the old kernel? i use DaOne's "change lilo first method" (with make/make install after make bzImage) but maybe that's why you can't boot the new one but only the old? what replaces vmlinuz after you move it?

(btw, you forgot to list make modules_install after make modules, but i'm guessing you did that.)

>edit: oh, the computer *reboots* when you select slackware.old? that is weird. can you boot any kernel at all? if you can, immediately rename it vmlinuz_safe, then add that to lilo. then no matter what you do, you'll always be able to boot vmlinuz_safe, at least. you won't have to worry about vmlinuz.old getting rewritten with bumped versions.

Last edited by synaptical; 09-05-2003 at 08:44 PM.
 
Old 09-05-2003, 08:44 PM   #9
JROCK1980
Member
 
Registered: Aug 2003
Distribution: FreeBSD
Posts: 490

Original Poster
Rep: Reputation: 30
I followed the instructions on slackware site. I tried DaOne's way and that does not work either. But I will try again. If you have any advice it would be very helpful thank you
 
Old 09-05-2003, 08:48 PM   #10
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 46
the first time i tried it, i rewrote my good kernel with a messed up one, and then had to recompile a bare.i kernel to start over. that might be your best option, though, if you can't get anything else to work. LMK and i'll try to help walk you through it. just don't give up, it's not really hard, it's just that the files get messed up sometime and you just have to get everything sorted out.
 
Old 09-05-2003, 08:58 PM   #11
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
I've just done 2.4.22 on Slack9 - there might be something you can take here?

extract source
cd into source directory via symlink
make xconfig
make dep
make clean
make bzImage
make modules
make modules_install

cp System.map /boot/System.map-2.4.22
cp arch/i386/boot/bzImage /boot/bzImage-2.4.22

gedit /etc/lilo.conf

copy previous Slack stanza - change image directive to

image=/boot/bzImage-2.4.22

change label to what you want

save

as root

/sbin/lilo
 
Old 09-05-2003, 09:04 PM   #12
JROCK1980
Member
 
Registered: Aug 2003
Distribution: FreeBSD
Posts: 490

Original Poster
Rep: Reputation: 30
Ok I just finished the modules_install. Now what do I have to do? And I wont give up
 
Old 09-05-2003, 09:11 PM   #13
JROCK1980
Member
 
Registered: Aug 2003
Distribution: FreeBSD
Posts: 490

Original Poster
Rep: Reputation: 30
Ok I was doing what Skyline posted but I rebooted before trying to type lilo to update it and the new kernel loaded. I am going to finish what I was suppose to do and see if I get the same results. I will let you guys know
 
Old 09-05-2003, 09:16 PM   #14
JROCK1980
Member
 
Registered: Aug 2003
Distribution: FreeBSD
Posts: 490

Original Poster
Rep: Reputation: 30
Ok it worked. One last question. I used swaret to get the kernel-source for the 2.4.22. Does anyone know the website. I went to kernel.org and downloaded that but when I unzip it it goes into home directory. How do I get it to unzip into /usr/src/
 
Old 09-05-2003, 09:25 PM   #15
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
If youve got an extracted source directory in your home directory simply move it to /usr/src as root user in a shell:

mv /home/JROCK/linux-2.4.22 /usr/src

(substitute JROCK for your username etc.)
 
  


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
upgraded kernel, won't let me compile kernel once Suspend2 patches are applied microsoft/linux Linux - Laptop and Netbook 3 10-02-2005 03:37 PM
I want to compile 2.6 kernel and keep everything from 2.4 intact (dual kernel system) sina_kish Linux - Software 7 02-02-2005 10:01 AM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 07:02 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 04:05 PM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 02:40 PM


All times are GMT -5. The time now is 08:33 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration