Passing parameters to modules in Ubuntu

In this example, I pass the parameter “card=42″ to the module “saa7134″ when the module loads at boot time.

  1. Add your module to /etc/modules

    # /etc/modules: kernel modules to load at boot time.
    #
    # This file contains the names of kernel modules
    # that should be loaded at boot time, one per line.
    # Lines beginning with "#" are ignored.
    saa7134

  2. Add options saa7134 card=42 to the end of /etc/modprobe.d/options

    # Enable double-buffering so gstreamer et. al. work
    options quickcam compatible=2
    # Default hostap to managed mode
    options hostap_pci iw_mode=2
    options hostap_cs iw_mode=2
    # Stop auto-association.
    # LP: #264104
    options ipw2200 associate=0
    # XXX: Ignore HPA by default. Needs to be revisted in jaunty
    options libata ignore_hpa=1
    options saa7134 card=42

Now reboot and you should be all set.


You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Comments are closed.