Announcement

Collapse
No announcement yet.

unable to blacklist modules

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    unable to blacklist modules

    From my understanding of Linux and from what I have read in multiple online searches adding the following to /etc/modprobe.d/blacklist should prevent these modules from being loaded:

    Code:
    blacklist cdc_ether
    blacklist rndis_host
    blacklist ipaq
    However, after adding those modules to the blacklist file and rebooting I get the following in /var/log/messages when I plug in my Treo 700w.

    Code:
    Feb 14 22:18:55 leviathan kernel: [ 603.076031] usb 1-2: new full speed USB device using uhci_hcd and address 2
    Feb 14 22:18:55 leviathan kernel: [ 603.274234] usb 1-2: configuration #1 chosen from 1 choice
    Feb 14 22:18:55 leviathan kernel: [ 603.336742] usbcore: registered new interface driver cdc_ether
    Feb 14 22:18:55 leviathan kernel: [ 603.436767] eth1: register 'rndis_host' at usb-0000:00:1a.0-2, RNDIS device, 80:00:60:0f:e8:00
    Feb 14 22:18:55 leviathan kernel: [ 603.436783] usbcore: registered new interface driver rndis_host
    Feb 14 22:18:55 leviathan kernel: [ 603.447894] usbcore: registered new interface driver rndis_wlan
    Am I just missing something really simple/stupid?

    #2
    Re: unable to blacklist modules

    Try running:
    Code:
    sudo update-initramfs -u
    That should recreate the initial bootfs with the changes you've made

    Comment


      #3
      Re: unable to blacklist modules

      Hmm. For some reason that didn't do it.

      Here is /var/log/messages after recreating the initial bootfs (and it is the image that I am using to boot):

      Code:
      Feb 15 08:01:02 leviathan kernel: [ 251.932645] usb 1-2: new full speed USB device using uhci_hcd and address 2
      Feb 15 08:01:02 leviathan kernel: [ 252.130027] usb 1-2: configuration #1 chosen from 1 choice
      Feb 15 08:01:03 leviathan kernel: [ 252.224765] usbcore: registered new interface driver cdc_ether
      Feb 15 08:01:03 leviathan kernel: [ 252.328819] eth1: register 'rndis_host' at usb-0000:00:1a.0-2, RNDIS device, 80:00:60:0f:e8:00
      Feb 15 08:01:03 leviathan kernel: [ 252.328848] usbcore: registered new interface driver rndis_host
      Feb 15 08:01:03 leviathan kernel: [ 252.368571] usbcore: registered new interface driver rndis_wlan
      Feb 15 08:01:07 leviathan kernel: [ 256.810996] eth1: unregister 'rndis_host' usb-0000:00:1a.0-2, RNDIS device
      Feb 15 08:01:08 leviathan kernel: [ 257.888028] usb 1-2: reset full speed USB device using uhci_hcd and address2
      Feb 15 08:01:09 leviathan kernel: [ 258.654856] eth1: register 'rndis_host' at usb-0000:00:1a.0-2, RNDIS device, 80:00:60:0f:e8:00
      Feb 15 08:01:09 leviathan kernel: [ 258.748277] eth1: unregister 'rndis_host' usb-0000:00:1a.0-2, RNDIS device
      Feb 15 08:01:09 leviathan kernel: [ 258.944026] usb 1-2: reset full speed USB device using uhci_hcd and address2
      Feb 15 08:01:10 leviathan kernel: [ 259.653856] eth1: register 'rndis_host' at usb-0000:00:1a.0-2, RNDIS device, 80:00:60:0f:e8:00
      It looks like the os is still loading those modules when I attach my device.

      Possible bug?

      Comment

      Working...
      X