0

I am having the same trouble as others getting my Atheros AR8131 Ethernet card recognised by Ubuntu 12.10 on my new HP Pavillion P7-1449 PC. I found the same question where the answer suggested the following:

  1. Download Tarball compact-wireless-3.6.8-1-snpc
  2. Run

    ./scripts/driver-select alx
    make
    sudo make install
    

The problem is when I run the make command I get the following:

make -C /lib/modules/3.5.0-21-generic/build M=/home/chris/Downloads/compat-wireless-3.6.8-1-snpc modules
make: *** /lib/modules/3.5.0-21-generic/build: No such file or directory.  Stop.
make: *** [modules] Error 2

Found a link to an alternative patch file (compat-wireless-2012-09-25-pc) but then I get the similar error:

make -C /lib/modules/3.5.0-21-generic/build M=/home/chris/Desktop/compat-wireless-2012-09-25-pc modules
make: *** /lib/modules/3.5.0-21-generic/build: No such file or directory.  Stop.
make: *** [modules] Error 2

Any help you could provide would be greatly appreciated.

gertvdijk
  • 69,427
Chris
  • 1

4 Answers4

1

The instructions to install compat-wireless modules are good, but in recent Ubuntu releases, this has been packaged and there's no need to compile this from source anymore! So, let's take a step back and look at another much simpler approach to install it.

Simply install the appropriate linux-backports-modules-cw-* package for your kernel, e.g.:

  • For Quantal, using Linux compat-wireless-3.6 backported to regular kernel

    sudo apt-get install linux-backports-modules-cw-3.6-quantal-generic
    
  • Same, but for Precise

    sudo apt-get install linux-backports-modules-cw-3.6-precise-generic
    

Or use any other package management tool to install this package. While it has 'backport' in its package name, it's not needed to enable any backports repository - it's just there in main.

Finally, reboot, or if you know the kernel module to load: sudo modproble modulename.

gertvdijk
  • 69,427
1

Lately the modules from the 3.8 kernel have been backported, so use

sudo apt-get install linux-backports-modules-cw-3.8-precise-generic

instead of

sudo apt-get install linux-backports-modules-cw-3.6-precise-generic

as in gertvdijk's answer here

raghavsood33
  • 131
  • 4
0

I am not sure, there is no need of compilation. Alx module which only works with my AR8161 on Ubuntu 12.04 LTS is gone. So download, and compile works for me.

I have to download some older package from compact wireless website which ALX module contains as mentioned here.

wget -O- http://linuxwireless.org/download/compat-wireless-2.6/compat-wireless-2012-07-03-pc.tar.bz2
0

no, that will not help. The last version that contains alx module is version 3.4, unfortunately.

so a regular user with this network card is completely dumped :(

and each time I upgrade to a new version of kernel once a few months, I have to waste one hour trying to figure out where did the linux magicians hide my network card driver! anybody's been curious why Linux fails on Desktop? this is why! :(

why cannot they just move it where all the other network card drivers are?

so the proper command is:

sudo apt-get install linux-backports-modules-cw-3.4-precise-generic

or

sudo apt-get install linux-backports-modules-cw-3.4-precise-generic-pae

depending on which magic version of kernel you magically use...

Palo
  • 105
  • 1
  • 8