best way to rebuild a kernel


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users best way to rebuild a kernel
# 1  
Old 01-29-2003
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.
# 2  
Old 01-29-2003
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
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

I need help rebuild ext3 filesystem

hi to all I wanted to edit a enigma2 image to my box .. the image is root.img .. Analysed then I have the picture and I have this: parted root.img WARNING: You are not superuser. Watch out for permissions. GNU Parted 2.2 Using /home/soft/Bureau/enigma2/root.img Welcome to GNU Parted! Type... (3 Replies)
Discussion started by: soft
3 Replies

2. Red Hat

redhat rebuild kernel

Hi expert, I goes to # pwd /usr/src/kernels/2.6.32-279.el6.x86_64 then I make bzImage I meet error # make CHK include/linux/version.h CHK include/linux/utsrelease.h SYMLINK include/asm -> include/asm-x86 make: *** No rule to make target `missing-syscalls'. Stop. make:... (1 Reply)
Discussion started by: yanglei_fage
1 Replies

3. UNIX for Dummies Questions & Answers

Kernel not rebuild

hi, system operation: unix sco 3.2.4 Kernel not rebuild, do not remove or update tcp/ip e3H0 driver. messages: cat:cannot open../sdevice.d/5 line:5.1 32 -1 fatal error:mdevice:wrong number of fields idmaster:device do not exist in therefore can not be update idinstall: cannot... (0 Replies)
Discussion started by: milen
0 Replies

4. BSD

rebuild the portsystem

hi Howto rebuild the whole portsystem on freeBSD? THX (3 Replies)
Discussion started by: ccc
3 Replies

5. Programming

Rebuild the Dev of a non UNIX kernel...

My name for this post may be a bit off but basically I would like to take go though the same proses that kernel developers went though to build other kernels that are based on UNIX such as Linux, And do it from scratch IE. starting with the base UNIX and building on to it. So I in theory could... (0 Replies)
Discussion started by: DevSer2279
0 Replies

6. UNIX for Advanced & Expert Users

Error wile rebuild the kernel

Hi!!! I installed the patch: DUV40F16-C0040500-10245-Manual-20010328 to avoid a reboot problem in my server, AlphaServer 4100 with Tru64 4.0F. When the patch instalation finished I rebuild the kernel like this: # duconfig -c ORACLE-TEST Start de rebuild and a few minutes after appear... (0 Replies)
Discussion started by: irasela
0 Replies

7. HP-UX

How to rebuild a new disk

Hi.... I newbee to this and wanted help on hpux11 system. Disk is being replaced and need to rebuild and what r the commands I need to perform after the disk is swapped :confused: Thanks! (1 Reply)
Discussion started by: catwomen
1 Replies

8. UNIX for Dummies Questions & Answers

Rebuild command

I want to convert a Microfocus Sequential file to a Line Sequential Variable file. The reason I want to do this is so that I can upload the file from a UNIX box to a PC as a text file. I know that there is a command called "rebuild" that will allow me to convert the files, but I can not get it to... (1 Reply)
Discussion started by: douknownam
1 Replies

9. UNIX for Dummies Questions & Answers

Need to rebuild and install the kernel.

Trying to install some ide raid drivers (to add some more hdds) and the instrcutions have toled me to modify some code in the kernel folder in usr/src (this is mandrake linux 9 btw). I need to then rebuild the kernel, how do I do this? Is there some file that I bring up for a whole c project (the... (2 Replies)
Discussion started by: pudad
2 Replies

10. UNIX for Dummies Questions & Answers

Don't Know to Rebuild Linux Kernel(URGENT)

Hello. I'm installing Oracle8i on Red Hat Linux Server 7.0. The Oracle documentation has some preinstallation request to be carried before installing the Oracle software. It asks to modify some SEMAPHORE & SHARED MEMORY values in to a specified file. And finally after updating this values it... (2 Replies)
Discussion started by: S.Vishwanath
2 Replies
Login or Register to Ask a Question