Don't forget to make a backup before using this.  I've only
tested it myself on my own hardware (M-Sys DOC2000 16MB, and
an apparent M-Sys DOC Millenium? 8MB, though it *may* be a
DOC2000 as well, but Linux drivers say Millenium).

To get a working mtd-lilo, run the following commands:
    # tar -xvzf lilo_21.7.orig.tar.gz
    # cd lilo_21.7
    # patch -p1 < ../lilo_21.7-1.diff
    # patch -p1 < ../mtd-lilo-21.7-1.patch
    # make all

Then copy all the necessary files over, make "mtd.b" a link
to "mtd-text.b" or "mtd-menu.b", create a lilo.conf, run lilo
and reboot.

Here's an example "/boot/lilo.conf.mtd":
    ---- Begin lilo.conf.mtd ----
    # Should be a link to mtd-text.b or mtd-menu.b
    install=/boot/mtd.b

    boot=/dev/nftla

    # In case you've booted from a hard drive that won't be visible
    # when booting from the DOC (shouldn't hurt anything).
    disk=/dev/nftla
        bios=0x80

    compact
    map=/boot/map
    password=[blanked out]
    delay=0

    default=panic

    # Example with initrd
    image=/boot/bzImage
      label=panic
      restricted
      image=0x100
      initrd=/boot/initrd
      append="ramdisk_blocksize=4096 ramdisk_size=8192 VERBOSE=1 DEBUG=1"

    # Example with rootfs on 1st partition of DOC
    image=/boot/bzImage
      label=linux
      restricted
      root=/dev/nftla1
      append="noinitrd"
    ----- End lilo.conf.mtd -----

    # mtd-lilo -r /mnt/nftla1 -C /boot/lilo.conf.mtd
