Go to the previous, next chapter.
So, if you want to compile NetBSD under AmigaDOS, get the document RECOMPILE. Although it is old, it contains some advice for this, but again, I strongly recommend that you do any kernel-development under NetBSD itself.
For more general information on compiling the NetBSD kernel, refer to the 386BSD-FAQ; there is a complete chapter related to the subject.
Change to the directory /sys/arch/amiga/conf. This is where
the configuration file for the kernel lives. This file details
exactly what options (eg. CD file systems) you want installed, and
what hardware you have. The easiest way to configure your new
kernel is to copy the file GENERIC, and name it after
Once you have tailored the config file to your system, you need to
ask the system to build a makefile for you. This is done with the
program config.new. Type the following command
(substituting your kernel name for BABYLON, obviously ;-). The
program config.new will create a directory
../compile/BABYLON (or whatever), and place a customised kernel
makefile & header files in there. If all goes to plan, you should
get a message along the lines of `Don`t forget to run make depend'.
The computer will take a short while sorting out some computery
stuff it has to do (to be technical about it ;-), and now is probably
as good a time as any to start making the buckets of coffee you will
inevitably need for the full kernel recompile. When the make finishes,
you can set the system off building your kernel with
If this is your first kernel compile, the estimated time is "Forever".
Particularly if you don't have too much memory to spare; however, it is
feasible to do a kernel compile in only 4MB - I have ;-).
Several cups of coffee later
Assuming you only had coffee (and nothing more, say, alcoholic...), you
should be able to use your new kernel once the compilation has finished.
The kernel will be named netbsd in your compile directory.
When you successfully build and installed a new kernel, you can reboot
your computer into the new kernel with the following command:
Do not delete your old kernel etc. until you have fully
tested the new one; bear in mind that once you reboot into the new
kernel, commands like ps wont work unless you copy the new kernel
image over the one in /netbsd.
@xref{FA device-files} doesn't exist.
config.new BABYLON
Compiling your kernel
You are now about ready to compile! Change directory to the
compile directory for your kernel (eg. ../compile/BABYLON),
and type
make depend
make
cp netbsd /dev/reload