DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 31st May 2011
desreguard desreguard is offline
Port Guard
 
Join Date: May 2011
Posts: 11
Default commands to build a kernel

What command do i use to build a kernel?
I have edited my GENERIC kernel and now i need to build it.

make buildkernel KERNCONF=MYKERNEL doesnt work
config MYKERNEL doesnt work either.


cany one one help me?
Reply With Quote
  #2   (View Single Post)  
Old 1st June 2011
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

When in doubt, read the Handbook chapter on doing just that.

There is a reason the Handbook was written ...
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #3   (View Single Post)  
Old 4th June 2011
sharris sharris is offline
Package Pilot
 
Join Date: Jun 2010
Posts: 146
Default

The handbook is good advice but it don't tell you how to do it this way or how to clean-up, if I remember correctly. It's the long way. You can watch what happen in each step. You can do the && thing you find in the hand book latter. This is more fun!

The exact steps are:

cd /usr/src/sys/amd64/conf
make LINT

/usr/sbin/config GENERIC_90
cd ../compile/GENERIC_90

make cleandepend
make depend
make
make install

rm -frv /usr/src/sys/amd64/compile/GENERIC_90 # clean-up

I did this at lease a hundred 100 times...
....
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem during kernel-build for a 6.x-to-7 upgrade clevershark FreeBSD Installation and Upgrading 2 1st February 2009 10:45 PM
execute commands from xinitrc rex FreeBSD General 3 22nd October 2008 10:24 PM
No DRI + GLX commands? Hrr4 FreeBSD General 5 21st September 2008 10:05 AM
Unable to build custom kernel [Wrong configuration?] jrick FreeBSD General 3 31st July 2008 01:53 PM
Cisco IOS commands ?? jb_daefo Off-Topic 7 5th June 2008 01:53 AM


All times are GMT. The time now is 05:21 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick