First, download the Bering kernel configuration
file in the /usr/src/linux
directory and
rename it .config
.
Then do the following:
cd /usr/src/linux make dep cd /usr/src/freeswan-1.99 make menugo (or make xgo if compilation is done within an xterm)
Notice that the kernel compilation is started from within the
freeswan-1.99 directory. The make menugo (or xgo)
command will create the necessary symlinks, apply the freeswan patches to
the kernel, compile the kernel and the modules. Go for coffee, that can
take a while. Also you will have to save and exit the kernel configuration
menu that will popup in the process. This is the safest procedure to
install freeswan. The problem is that it will install ipsec on your
development machine so you will have to remove some files in the
/etc
directory if you do not want ipsec to start when
you next log on:
cd /etc rm -f init.d/ipsec rm -f rc?.d/???ipsec
You now have to install the modules and to compress the kernel image:
mkdir /tmp/Bering_modules_2.4.18 cd /usr/src/linux make modules_install INSTALL_MOD_PATH=/tmp/Bering_modules_2.4.18 upx --best -o linux.upx arch/i386/boot/bzImage
UPX is a compression program available at the UPX Website. You will have to use the 1.11 beta version which is the only one which compress linux kernel files.
Well you are now done! Your modules are available in the
/lib/modules/2.4.18
directory and your floppy
linux
is the linux.upx
you have
just generated.