The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Rebuild the Dev of a non UNIX kernel... DevSer2279 High Level Programming 0 04-20-2008 06:23 PM
Error wile rebuild the kernel irasela UNIX for Advanced & Expert Users 0 02-08-2006 04:44 PM
Rebuild command douknownam UNIX for Dummies Questions & Answers 1 08-18-2004 06:33 AM
Need to rebuild and install the kernel. pudad UNIX for Dummies Questions & Answers 2 10-21-2002 02:04 PM
Don't Know to Rebuild Linux Kernel(URGENT) S.Vishwanath UNIX for Dummies Questions & Answers 2 06-30-2001 12:29 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-29-2003
Registered User
 

Join Date: Sep 2001
Posts: 114
best way to rebuild a kernel

i really have an issue with the otherwise outstading FreeBSD Handbook when it comes to kernel building. information on the proper steps to take is really confusing. i think that chapters 9 and 21 need to be combined to give a very concise format on how best to deal with kernel building/rebuidling issues.

that said, i've been told many methods that people suggest are the best way to deal with a kernel.

i'm looking at the following two:


0 # (be root)
1 # cd /usr/src
2 # make buildworld
3 # make buildkernel KERNCONF=<the-file-with-your-kernel-config>
4 # make installkernel KERNCONF=<the-file-with-your-kernel config>
5 # shutdown -r now
6 # make installworld
7 # mergemaster -i



1 # su
2 # cd /usr/src
3 # make update
4 # make buildworld
5 # make buildkernel KERNCONF=<the-file-with-your-kernel-config>
6 # make installkernel KERNCONF=<the-file-with-your-kernel-config>
7 # make installworld
8 # mergemaster -si
9 # shutdown -r now

which one of these do you people like better? if you have your own suggestions, i would be more than happy to take a look at them.
Forum Sponsor
  #2  
Old 01-29-2003
WIntellect's Avatar
Registered User
 

Join Date: Sep 2002
Location: United Kingdom
Posts: 170
Kernel build?

The details you have provided are NOT for a kernel build, but are in fact for a FreeBSD upgrade - it's called a "make buildworld" process.

In fact, a kernel build (and only a kernal build) is as follows:

(1) cd /usr/src/sys/i386/conf
(2) make a copy of GENERIC and call it something else, eg MYKERNEL
(3) edit MYKERNEL correctly
(4) /sbin/config MYKERNEL
(5) cd ../../config/MYKERNEL
(6) make depend
(7) make
(8) make install
(9) if all has gone well, reboot!

I have summarised Chapter 9.3 of the handbook:
http://www.freebsd.org/doc/en_US.ISO...-building.html

Let me know if you have any further problems
__________________
FreeBSD - Opening computers from closed Windows
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:23 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0