1. Copy linux-2.4.20.tar.bz2 (from the 2-nd CD or download it from
here) to /usr/src.
2. tar jxvf linux-2.4.20.tar.bz2.
3. ln -sf linux-2.4.20 linux.
4. cd linux.
5. cp /boot/config .config.
6. make menuconfig ('make oldconfig' first if you decide to compile, say, 2.4.22 instead of 2.4.20).
7. Search (and enable) for large RAM support. Exit and save.
8. make dep && make clean && make bzImage.
9. On this stage you can save your current modules (in case something goes wrong). Or just gave different EXTRAVERSION to your new kernel in Makefile (/usr/src/linux).
10. make modules && make modules_install.
11. cp arch/i386/boot/bzImage /boot/vmlinuz-large_ram_support.
12. cp System.map /boot/System.map-large_ram_support.
13. cp .config /boot/config-large_ram_support.
14. ln -sf /boot/System.map-large_ram_support /boot/System.map.
15. ln -sf c/boot/config-large_ram_support /boot/config.
16. Edit /etc/lilo.conf to include your new kernel (if everything works with your new kernel you always can remove your current one afterwards):
Code:
boot=/dev/hda1
prompt
timeout=50
change-rules
reset
vga=normal
default=Linux_LRS
image=/boot/vmlinuz
root=/dev/hda1
label=Linux
read-only
image=/boot/vmlinuz-large_ram_support
root=/dev/hda1
label=Linux_LRS
read-only
17. lilo.
18. shutdown -r now (and pray
).