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

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 7 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersncdu pydf
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
7 comments… add one
  • hoaintv Sep 24, 2008 @ 4:08


  • SIFE Aug 27, 2009 @ 21:33

    Salamo Alikom
    even i install the source from sysinstall and make a shortcut link ti /sys ,i still get this error .

  • Edward Sudhahar ( SSIET ) Sep 14, 2009 @ 9:24

    make: don’t know how to make bonnie. Stop

    What is dis error about. Why do i get it. Giv me solution for dat…

  • Edward Sudhahar ( SSIET ) Sep 14, 2009 @ 9:25

    [root@freebsd /usr/ports/benchmarks/bonnie]# make install bonnie
    make: don’t know how to make bonnie. Stop

    Why do i get dis

  • Dmitry Sep 20, 2012 @ 22:08

    fastest_cvsup -c ru
    ee /root/9rel-supfile
    cat ee /root/9rel-supfile
    *default host=cvsup7.ru.freebsd.org
    *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 root@farrell.cse.buffalo.edu:/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

  • Thomas Mack Sep 25, 2012 @ 19:12

    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 (sys.mk).
    *** Error code 2
    Stop in /usr/src.

    What’s going on?

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum