Click to See Complete Forum and Search --> : Custom Kernel Won't Boot
milo7777n
03-15-2002, 05:52 PM
# cd /usr/src/sys/i386/conf
# cp GENERIC CUSTOM
# Kedit CUSTOM
# ident CUSTOM
# make buildkernel KERNCONF=CUSTOM
# make installkernel KERNCONF=CUSTOM
no problems so far
# reboot
Message at boot
/usr/src/sys/i386/conf/GENERIC
Problem no custom.
What could be wrong with this.
demetrius
03-15-2002, 06:13 PM
From the Handbook located at http://www.freebsd.org :
If you have not upgraded your source tree in any way (you have not run CVSup, CTM, or used anoncvs), then you should use the config, make depend, make, make install sequence.
Procedure 1. Building a kernel the ``traditional'' way
Run config(8) to generate the kernel source code.
# /usr/sbin/config MYKERNEL
Change in to the build directory.
# cd ../../compile/MYKERNEL
Compile the kernel.
# make depend
# make
Install the new kernel.
# make install
[ 15 March 2002: Message edited by: demetrius ]
btberch
03-17-2002, 06:49 PM
Originally posted by milo7777n:
<STRONG># cd /usr/src/sys/i386/conf
# cp GENERIC CUSTOM
# Kedit CUSTOM
# ident CUSTOM
# make buildkernel KERNCONF=CUSTOM
# make installkernel KERNCONF=CUSTOM
no problems so far
# reboot
Message at boot
/usr/src/sys/i386/conf/GENERIC
Problem no custom.
What could be wrong with this.</STRONG>
For post 4.3-release:
# cd /usr/src/sys/i386/conf
# cp GENERIC YOURKERNEL
edit YOURKERNEL
# cd /usr/src
# make buildkernel KERNCONF=YOURKERNEL
# make installkernel KERNCONF=YOURKERNEL
reboot and your done
You might want to make sure that
'kern_securelevel="-1"' in /etc/rc.conf. If not change it and reboot. After the custom kernel is installed then you can change it back to your original level.
[ 17 March 2002: Message edited by: btberch ]
milo7777n
03-18-2002, 02:15 PM
GOT IT
I ended up not seeing that i was mispelling KERNCONF as KERNELCONF. Hence no luck. A word to the wise. Spell it right.