custom kernel installation
freebsd at edvax.de
Fri Jun 7 22:54:42 UTC 2013
On Sat, 8 Jun 2013 00:37:02 +0200, Norman Khine wrote:
> i have a dedicated server from OVH and have updated freebsd to 9.1 and want
> to enable IPFW in the kernel as this is not enabled.
Why not use the module for this? For many years now, you
do not need a custom kernel if you want to use IPFW (which
_had_ to be compiled into the kernel in the past). Use
# kldload ipfw.ko
# kldload ipfw_nat.ko
if it's just about having IPFW. Of course, if explicitely
having it _in_ the kernel is your objective, unread this
> the way i updated the system was to copy /boot/kernel.old to /boot/GENERIC
> then followed ch25
> went well and the system is up to date.
So you did freebsd-update to update to 9.1-RELEASE.
> so i got the 9.1 sources and now in /usr/src/sys/amd64/conf i have a
> GENERIC file, but this is too generic, besides i don't have access to the
> physical box.
This file is what the GENERIC kernel (distributed with the OS)
has been generated from. Use it as a template for your own
> what will be the correct way to include the IPFW to existing /boot/kernel
> is there a way to generate the GENERIC file from the existing loaded kernel?
No, you can simply copy it and then make changes. For example:
# cd /usr/src/sys/amd64/conf
# cp GENERIC MYKERNEL
(or use any other descriptive name)
# vi MYKERNEL
(make changes as desired, then :wq)
# cd /usr/src
# make buildkernel KERNCONF=MYKERNEL
# make installkernel KERNCONF=MYKERNEL
Keep in mind that kernel and world have to be in sync version-wise!
Regarding IPFW, you will probably add lines like the following:
Of course you can also remove lines for hardware you don't have
in your box, like trimming the support for NICs or SCSI controllers
and the like. :-)
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions