Adding a kernel module

  1. Mount the floppy disk containing the module you need to support your hard disk controller:

    mount -t msdos /dev/fd0 /mnt
  2. Copy the module file to '/lib/modules':

    cp /mnt/mymodule.o /lib/modules
  3. Unmount the floppy:

    umount /mnt
  4. Run 'lrcfg'

  5. Edit the kernel modules file (menu 3-2-1)

  6. At the end of the file, enter the name of the module, without the '.o'. If your module file is 'mymodule.o', add 'mymodule' to the end of the modules file.

  7. Make sure there is at least one blank line between your module name and the '<< EOF >>' marker

  8. Save the file <alt>-w and exit the program <alt>-q

  9. Press 'q' until you return to the lrcfg main menu

  10. Put your LRP boot disk back in the floppy drive

  11. Press 'b' to backup the ramdisk

  12. Select 'Modules', which should be choice 5

  13. Exit lrcfg and return to the command line

  14. Load the new module by hand, using the command:

    insmod /lib/modules/mymodule.o
  15. Make sure the module loaded successfully. If you get lots of unresolved symbol errors, either your module and kernel versions don't match, or the module depends on another module that you haven't loaded yet. If the module complains about something (like it can't find the hardware it's supposed to talk to) you may need some command line options for the module, or you may need to check your hardware configuration. Fix any problems before you continue.

  16. You might want to reboot to make sure the module will automatically load correctly.