Guide: Configure 2.4.5 kernel with LRP support. Monkey LRP

By Brett Simpson

Download 2.4.5 kernel from www.kernel.org into /usr/src
tar xzpf linux-2.4.5.tar.gz
mv linux linux-2.4.0-test11-virgin
Download initrd-archive-2.4.0-test11.diff & linuxrc-always-2.4.0-test11.diff into /usr/src You can get them from here.
patch -p0 < initrd-archive-2.4.0-test11.diff
vi linuxrc-always-2.4.0-test11.diff and change the first two lines to point to linux instead of linux-2.4.0-test11-????
mv linux-2.4.0-test11-virgin linux
patch -p0 < linuxrc-always-2.4.0-test11.diff
cd /usr/src/linux
make menuconfig (or "make config" if you don't have ncurses)
Use the config file in the download area as an example but be sure to select these or else you wiil get stuck at various stages of the boot process.

#
# Block devices
#
CONFIG_BLK_DEV_LOOP=m
CONFIG_BLK_DEV_NBD=m
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_SIZE=4096
CONFIG_BLK_DEV_INITRD=y
CONFIG_BLK_DEV_INITRD_ARCHIVE=y
CONFIG_BLK_DEV_INITRD_ARCHIVE_AUTOFS_MINIX=y

and

#
# File systems
#
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
CONFIG_MINIX_FS=y

make dep;make clean;make bzImage;make modules;make modules_install

On Redhat modules are installed under /lib/modules/2.4.5
Copy the needed modules into your modules.lrp package. Go to http://lrp.c0wz.com/ for more help on how to do this.
mount your floppy and copy /usr/src/linux/arch/i386/boot/bzImage onto your floppy. like this.
mount /dev/fd0 /mnt/floppy (or "mount /dev/fd0u1680 /mnt/floppy" if your is formatted for 1.6mb)
cp /usr/src/linux/arch/i386/boot/bzImage /mnt/floppy/linux (be sure to run sync before using umount always!)

Kernel too big!!! Try this!!
bzImage too big for your floppy? Try compressing it with upx. Download UPX 1.11 (this is unstable).
cp /usr/src/linux/arch/i386/boot/bzImage /root/upx-1.11-linux/vmlinuz
cd /root/upx-1.11-linux
./upx -9 vmlinuz
mount /dev/fd0 /mnt/floppy
cp vmlinuz /mnt/floppy/linux
sync
umount /mnt/floppy

Format a 1.68 floppy for use with a 1.68mb image
fdformat /dev/fd0u1680
mkfs -t msdos /dev/fd0u1680
dd if=image.file.name of=/dev/fd0u1680 bs=1k