Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Apparently mainline kernel 3.8.5 is compiled without support for recent Atheros Communications Inc. AR8161 Gigabit Ethernet card. I know it is supplied in recent kernels with the module name alx.

Compilation of enter link description here

The backporting mechanism doesn't work here since and it fails during compiling (and no wonder, since it is written that it is compatible with no later than 3.6 kernels).

I could use compat-drivers, but they fail to build.

What are my options (except from recompiling the whole kernel) to add alx module?

(I need a recent kernel because I'm playing with btrfs).

BTW I use ASUS N56VZ notebook.


The did compile, but it didn't install the driver. (No errors in process, but ultimately no network eighter.

I did put sudo make linux-install after compilation. But after reboot the the alx module is still not present.)

share|improve this question

You have two options.

1) Try this ppa

You download the kernel you want to try and install it with dpkg

sudo dpkg -i linux-image-3.8.5-030805-generic_3.8.5-030805.201303281651_amd64.deb

change the name to the kernel you download. If you are building modules you will need the headers as well.

See also:

Note these kernels are intended for testing only and no support is available.

2) Compile a kernel yourself.

Once you build a few kernels it is not too hard. Start with localmodconfig and then check to see the alx module is going to be compiled.

share|improve this answer
Thank you for your answer. The first option is exactly what doesn't work. And precisely because the mainline kernel doesn't have this device I ever asked that question. And 2. I know that compiling would help, but it is impractical to recompile the kernel every few weeks, when new version is available. I just thought, that maybe because the Linux kernel has modular structure, there is a way to compile only the driver itself. Just like with compat-drivers, except that they don't compile. – Adam Ryczkowski Apr 4 '13 at 16:50
although you can compile just a single module, you would need to do so for each kernel. You do not "need" to compile a kernel every few weeks, stay with a working one. Last, on anything resembling a modern machine, with localmodconfig, compiling a kernel should take 10-15 minutes tops. Up to you, it is your hardware. – bodhi.zazen Apr 4 '13 at 16:54
Thank you for your patience. Maybe indeed I see it the wrong way. – Adam Ryczkowski Apr 4 '13 at 17:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.