Building The FreeBSD Kernel

These are my notes from building the FreeBSD 4.x kernel.

    - In case the new kernel fails, make a copy of /modules/* and /kernel.
    - rm -rf /usr/src/sys/i386/compile/MYKERNCONF
    - mkdir -p /usr/src/sys/compile/MYKERNCONF
    - cd /usr/src/sys/i386/conf
    - cp GENERIC MYKERNCONF
      Edit MYKERNCONF.
    - /usr/sbin/config MYKERNCONF
      You should see:
      "Don't forget to do a ``make depend''"
      "Kernel build directory is ../../compile/MYKERNCONF"
    - cd ../../compile/MYKERNCONF
    - make depend
    - make
    - make install
    - rm -rf /usr/src/sys/compile (optional cleanup)
    

    index   home