LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 03-16-2003, 01:00 PM   #1
Q*Bert
Member
 
Registered: Feb 2003
Location: Birmingham, UK
Distribution: Redhat 8.0, Immunix 7.0 a few others
Posts: 222

Rep: Reputation: 30
Rebuilding kernel script


Here's a handy script to take the hassle out of rebuilding your kernel. It just simplifies the process, so that you don't have to remember how to do it. If anyone has anything else to add, please feel free.
cat > more /usr/src/linux/buildkernel
Code:
make mrproper &&
make menuconfig &&
make dep &&
echo "*************************************************"
echo ""
echo "FINISHED MAKING DEPS. MAKING COMPRESSED IMAGE NOW"
echo ""
echo "*************************************************"
make bzImage &&
echo "****************************************************"
echo ""
echo "FINISHED MAKING COMPRESSED IMAGE, MAKING MODULES NOW"
echo ""
echo "****************************************************"
make modules &&
echo "**********************************************"
echo ""
echo "FINISED MAKING MODULES, INSTALLING MODULES NOW"
echo ""
echo "**********************************************"
make modules_install &&
# if you have redhat 8.x, you can uncomment the next line to invoke module_upgrade
# /usr/sbin/module_upgrade
# this is optional - you can do this yourself. It copies the compressed bzImage to a file called newImage
cp /usr/src/linux/arch/i386/boot/bzImage /boot/newImage
# end
To terminate the script, press [Ctrl+D]. The permission must be changed to 755:

chmod 755 /usr/src/linux/buildkernel

and you're ready to go. You must of course edit the lilo.conf or grub.conf according to your setup.

Last edited by Q*Bert; 03-16-2003 at 01:01 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need some insite before rebuilding the kernel. kphume Linux - General 1 05-05-2004 09:22 AM
rebuilding kernel jmarsh Linux - Software 2 04-04-2003 08:09 PM
Problems Rebuilding a kernel slayer0605 Linux - General 4 02-28-2003 04:57 AM
redhat 7.3 rebuilding kernel granny Linux - Newbie 6 12-20-2002 01:48 PM
Rebuilding the kernel decster Linux - General 9 09-23-2002 05:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

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