Results 1 to 10 of 31

Thread: Assistance on Removing Ath5k and installing madwifi

Hybrid View

  1. #1
    Join Date
    May 2009
    Beans
    1

    Assistance on Removing Ath5k and installing madwifi

    Does anyone know the best way to remove teh ath5k drivers and install the madwifi drivers?

  2. #2
    Join Date
    Mar 2009
    Location
    Helsinki, Finland
    Beans
    650
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Assistance on Removing Ath5k and installing madwifi

    Here we go:

    1. You'll need build-essential, make & friends for compiling the driver, so open up a terminal and run
      Code:
      sudo apt-get install build-essential
    2. Make sure you comment out (add a # in front) or delete the lines with ath_pci, ath_hal or wlan from the /etc/modprobe.d/blacklist*.conf files. Jaunty for instance creates a blacklist-ath_pci.conf file, where ath_pci is blacklisted.
    3. Unload the wireless with
      Code:
      sudo ifconfig wlan0 down
    4. Blacklist ath5k with
      Code:
      echo blacklist ath5k | sudo tee -a /etc/modprobe.d/blacklist.conf
    5. Grab the latest snapshot from here, download it somewhere you can easily find it (need to compile it again every time you update kernel), ~/MadWifi/ for instance. Then unpack the archive.
    6. Navigate your terminal to the directory where the files were unpacked and ensure there are no conflicting modules present by running
      Code:
      sudo ./scripts/madwifi-unload
    7. Then compile the driver with
      Code:
      make clean
      make
      sudo make install
    8. Get the new driver up and running with
      Code:
      sudo depmod -ae
      sudo modprobe -r ath5k
      sudo modprobe ath_pci
    9. mkroetzsch (below) solved an issue with suspend (where you otherwise had to manually unload and reload the driver to get it working after resume) by editing the following line (the part on red is what you add there) in /etc/default/acpi-support:
      Code:
      MODULES="ath_pci"


    If you run into some problems, post back on this thread and we can see about fixing them.
    Last edited by t0mppa; November 17th, 2009 at 11:39 AM. Reason: to keep this up to date

  3. #3
    Join Date
    Jan 2007
    Location
    North Carolina
    Beans
    20
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Assistance on Removing Ath5k and installing madwifi

    Thank you very much! This was very helpful and mindless for me!

  4. #4
    Join Date
    Jan 2006
    Beans
    53

    Re: Assistance on Removing Ath5k and installing madwifi

    I think you meant:

    Code:
    echo blacklist ath5k | sudo tee -a /etc/modprobe.d/blacklist.conf
    Either way, ath5k is still being loaded in addition to ath_pci at boot.

    Any idea what package it is in? I'll just uninstall it altogether.

    Thanks,
    Josh

  5. #5
    Join Date
    Mar 2009
    Location
    Helsinki, Finland
    Beans
    650
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Assistance on Removing Ath5k and installing madwifi

    Quote Originally Posted by jshayden View Post
    I think you meant:

    Code:
    echo blacklist ath5k | sudo tee -a /etc/modprobe.d/blacklist.conf
    Yes, that's right, good call there.

    Quote Originally Posted by jshayden View Post
    Either way, ath5k is still being loaded in addition to ath_pci at boot.

    Any idea what package it is in? I'll just uninstall it altogether.

    Thanks,
    Josh
    That's odd, there shouldn't be any other module depending on it and thus loading it as a side product, so can't see why the simple blacklisting doesn't work.

    Anyway all the wireless drivers come prebuilt with the kernel, so uninstalling it through conventional means might prove a little troublesome. What you can do though is look up the module file /lib/modules/<kernel_that_you_use>/kernel/drivers/net/wireless/ath5k/ath5k.ko and rename it (to ath5k.ko.disabled for instance), that should make it unloadable and thus solve your problem.

  6. #6
    Join Date
    Jan 2006
    Beans
    53

    Re: Assistance on Removing Ath5k and installing madwifi

    I eventually got the blacklist to work; I think I was writing to the wrong file somehow.

    So, now ath_pci is loading and ath5k is not.

    However, the wireless connection isn't working. It asks for my WPA password over and over. Every once in awhile it will connect, but it's very slow with horrible latency.

    Not only did this work perfectly in Jaunty, but it was included in the repositories. Any ideas?

    Thanks,
    Josh

  7. #7
    Join Date
    Jul 2009
    Beans
    1

    Re: Assistance on Removing Ath5k and installing madwifi

    Thank you, worked a treat!

    Step 7, I did a sudo checkinstall instead of sudo make install. Involves a few more steps but it means changes can be reverted if anything goes wrong.

    Regards,
    Egor

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •