LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-15-2006, 09:27 AM   #1
athanatos
Member
 
Registered: Apr 2004
Distribution: Slackware 11.0, OpenBSD 4.0
Posts: 58

Rep: Reputation: 15
Some questions about the 'compiling a kernel' section at slackbook.org


Code:
# mv /boot/vmlinuz /boot/vmlinuz.old
# cat arch/i386/boot/bzImage > /vmlinuz
# mv /boot/System.map /boot/System.map.old
# cp System.map /boot/System.map
# make modules_install
Here are my questions:

1.

Why does it say:
Code:
# cat arch/i386/boot/bzImage > /vmlinuz
and not
Code:
# cp arch/i386/boot/bzImage > /vmlinuz
2.

Why is the kernel image placed in / and not in /boot:
Code:
# rm /boot/vmlinuz
# cat arch/i386/boot/bzImage > /boot/vmlinuz-x.y.z
# cd /boot
# ln -s vmlinuz-x.y.z vmlinuz
3.

Code:
# make modules_install
Currently I have the linux-2.6.13 kernel from /pub/slackware/slackware-10.2/testing/packages/linux-2.6.13 installed. I compile a new kernel with lots of new modules. When I would like to switch back to the linux-2.6.13 kernel, how to be sure that I have the same modules like I had before 'make modules_install'? I mean, do I have to copy the config from /boot/config-generic-2.6.13 to /usr/src/linux/.config and do the following:

Code:
# make modules
# make modules_install
Or is it enough to just reinstall the package 'kernel-modules-2.6.13-i486-1.tgz'?

Last edited by athanatos; 07-15-2006 at 09:39 AM.
 
Old 07-15-2006, 10:12 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,214
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
1. It's the same thing
2. I guess it's a typo. Unless it says to change your /etc/lilo.conf accordingly, the correct place is /boot
3. If you (re)compile the same kernel, adding new modules, then the old ones stay intacted. If you compile a new kernel, it's modules go under /lib/modules/<kernel-version>/

I suggest you to not delete the old kernel before being sure that your new one is working as you expect it to do.

Regards
 
  


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
Ok, we need a LinuxQuestions.org/Games section perry LQ Suggestions & Feedback 4 03-28-2004 02:06 PM
kernel compiling questions panzram Linux - General 1 06-26-2003 09:34 AM
New Section - LinuxQuestions.org Reviews jeremy LQ Suggestions & Feedback 3 06-14-2003 01:24 AM
Kernel compiling questions Mentecapto Linux - Newbie 1 09-26-2002 05:20 PM
Kernel compiling questions mistery Linux - Newbie 1 07-19-2002 08:15 PM

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

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