FreeBSD make: don't know how to make buildkernel. Stop Error and Solution

Posted on in Categories , , , last updated June 22, 2008

Q. I’m trying to recompile my kernel by tying the following commands:

cd /usr/src/sys/i386/conf
cd /usr/src
make buildkernel KERNCONF=NEWKEN

But I’m bumped with an error that read as follows:

make: don’t know how to make buildkernel. Stop Error and Solution

How do I fix this error?

A. This is well known problem. You need an up to date and complete copy of the FreeBSD source including kernel at /usr/src and /usr/src/sys. To grab latest FreeBSD kernel source use cvsup or sysinstall command.
# sysinstall
Select > Configure > Distributions > Src > Select Base, Sys and all other required source code > Ok > Ok > Select Internet > FTP Main site and install the source code.

Once installed type the following command to compile the kernel:
# cd /usr/src
# make buildkernel KERNCONF=NEWKEN
# make installkernel KERNCONF=NEWKEN
# reboot

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

7 comment

  1. [[email protected] /usr/ports/benchmarks/bonnie]# make install bonnie
    make: don’t know how to make bonnie. Stop

    Why do i get dis

  2. su
    fastest_cvsup -c ru
    ee /root/9rel-supfile
    cat ee /root/9rel-supfile
    *default base=/var/db
    *default prefix=/usr
    *default release=cvs tag=RELENG_9_0
    *default delete use-rel-suffix
    *default compress
    csup 9rel-supfile
    ETA: 5 Hours..
    uname -a
    FreeBSD estaf.users.trc.local 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 [email protected]:/usr/obj/usr/src/sys/GENERIC amd64

    cd /usr/src/sys/amd64/conf/
    ee ROUTER

    cd /usr/src/

    make buldkernel KERNCONF=ROUTER
    make: don’t know how to make buldkernel. Stop

  3. You have a typo in your command, it’s buildkernel not buldkernel

    Another question: Updated from 7.1 to 8.3 successfully, then added sources as described above, but make buildkernel ends up with:

    #:/usr/src> make buildkernel
    make: no system rules (
    *** Error code 2
    Stop in /usr/src.

    What’s going on?

Leave a Comment