next up previous contents
Next: Making a Bootable Diskette Up: Getting Linux into Small Previous: Populating the Root File   Contents

Building a Kernel

Now it is time to build a kernel. For the target system we will build a kernel that is different from the host system kernel. W build it under the myboot directory. First cd to the myboot/linux subdirectory.

The most important job is configuring the kernel. Run the following command:

make menuconfig
Instead of menuconfig you can use config (not recommended!) or xconfig. This will give a usable kernel for the target system. Of course you must adapt the configuration to the target system you are using. If your target system has PCI, it would be better to enable it. In that case, you probably have a 486DX or a Pentium, so the math emulation may go. If you have SCSI on your target system, you should of course enable support for it and for the host adapter you are using. If you have SCSI and no IDE devices installed, you can disable ATA/IDE/MFM/RLL support.

Now we only need to build the kernel:

make clean
make dep
make zImage
The kernel described here should be around 400kB and it should work with make zImage. Use make bzImage instead if you build a kernel with more features, e.g. networking support.


next up previous contents
Next: Making a Bootable Diskette Up: Getting Linux into Small Previous: Populating the Root File   Contents
Lennart Benschop 2003-05-29