LinuxQuestions.org
Visit Jeremy's Blog.
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 08-23-2002, 08:40 AM   #1
wonderpun
Member
 
Registered: Aug 2002
Location: Geekland, Planet Earth
Distribution: Slackware 9.1
Posts: 323

Rep: Reputation: 30
Lightbulb Kernel Recompiling


Hi there!
I've tried to recompile the kernel in Slackware 8.1. But the recompiling wasn't succesful.(Although I didn't see any errors) I've read in a book that a zImage file should've been created but I didn't find such a file. Maybe someone can tell me what I did wrong? Here're the commands I used:

make dep; make clean; make; make modules; make modules_install

After the recompiling was over like I said I didn't find the zImage file so I booted the old kernel. But the strangest thing is that now my network card doesn't work.(At boot up I see an error: Can't find the <my_network_card_module>)
Thanks in advance!
 
Old 08-23-2002, 08:44 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
You missed the step where you actually build the kernel. make bzImage

Then the kernel will be located in /arch/i386/boot
 
Old 08-23-2002, 08:46 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Oh, and if you are building an new kernel from the same generation (example, 2.4.18 and you are building 2.4.18) as the kernel that shipped with your distro, then you will want to edit the /lib/modules/2.4.18(or whatever kernel) directory. Maybe something like: 'mv /lib/modules/2.4.18 /lib/modules/2.4.18.old' would be what you would want to use.

Don't know if it's too late now

Good luck
 
Old 08-23-2002, 09:16 AM   #4
wonderpun
Member
 
Registered: Aug 2002
Location: Geekland, Planet Earth
Distribution: Slackware 9.1
Posts: 323

Original Poster
Rep: Reputation: 30
Thanks MasterC!
But I'd still like to know when should I write the make bzImage command?
 
Old 08-24-2002, 01:16 AM   #5
Sfin
Member
 
Registered: Apr 2002
Location: Michigan
Distribution: Slackware 8.0
Posts: 197

Rep: Reputation: 30
usually thisis how to compile a kernel:

1) make menuconfig OR make xconfig
2) make dep
3) make clean
4) make bzImage
5) make modules
6) make modules_install

make sure to rename the old kernel image located in the /boot direcytory to something else, like vmlinuz.old, so that you can use it as a backup.

mv /boot/vmlinuz /boot/vmlinuz.old

then copy the bzImage file from arch/i386/boot to /boot directory, with the following command:

cp arch/i386/boot/bzImage /boot/vmlinuz
 
Old 08-24-2002, 02:12 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
make bzImage is a step that must come AFTER make dep and make clean, but is up to you where you run it after that, but it must be run.

The above how to written by Sfin is a very good one, and one that you should follow most of the time, it works especially well with Slack.

There is another website that has the how-to that I follow (with the 1 exception that I run make bzImage last)(It's actually Aussie's website):
http://www.p-two.net/modules.php?op=...catid=&topic=3
 
Old 08-24-2002, 04:32 AM   #7
wonderpun
Member
 
Registered: Aug 2002
Location: Geekland, Planet Earth
Distribution: Slackware 9.1
Posts: 323

Original Poster
Rep: Reputation: 30
Thanks Sfin and MasterC!
 
Old 08-24-2002, 04:55 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
No problem, glad I/we could help
 
  


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
recompiling kernel DaveyB Linux - Newbie 3 08-10-2004 09:45 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM
What does recompiling the kernel do? direwolf20 Linux - Newbie 2 10-08-2003 12:06 AM
What use does recompiling the kernel have? twinkers Debian 8 10-06-2003 10:46 AM
recompiling kernel slacknewbie Linux - General 3 05-08-2002 10:24 AM

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

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