I'm trying to install drivers for Asus pce-N10 wireless adapter onto ubuntu mate 16.04 It is provided with source files of drivers and a readme that basically says:

Installation: type 'sudo su make make install'

Of course it doesn't work this way. Instead I get the error:

gcc: error: /lib/modules/4.4.0-22-generic/build/include/linux/autoconf.h: No such file or directory

apparently the file is absent from there. How do I make one?

apt-get install linux-headers-generic returns

linux-headers-generic is already newest version (

I've found a bunch of advice to compile my own kernel on internets but fail to do so. For example, #4 in this one is rather old and naming schemes of the folders seem to differ from what I'm getting. I've tried navigating to the makefile in the unzipped sources and running the command listed in the link:

make menuconfig

But that one returns errors about even more missing files not even seeming related ones.

Another mention of the problem here suggests the following commands in the sources folder:

 make oldconfig
 make prepare

Those are executed without error, but autoconf.h doesn't seem to appear in any related folder. When run in the /lib/modules/4.4.0-22-generic/ folder make prepare causes following error:

make1: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl' needed by 'arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h'. Stop

  • Did you install the linux-headers-generic package? it should pull in the headers for your current kernel (4.4.0-22-generic), which is almost always necessary when building kernel modules – steeldriver May 24 '16 at 23:59
  • Yes, I did. There's no autoconf.h. – Dimitry May 25 '16 at 8:55
  • Find a more recent driver version – fkraiem May 25 '16 at 9:12
  • Driver is recent. – Dimitry May 25 '16 at 11:52
  • Could you please edit your question to include the output of the terminal command lspci -nnk | grep -A2 Network? That may help us find a suitable driver, e. g. one that has been updated for a newer kernel. Thanks. – David Foerster Feb 22 '17 at 23:57

linux/autoconf.h has moved to generated/autoconf.h it seems in newer kernels. I don't know when this happened, but I had the same problem with a 3.2 kernel. I just renamed and this seemed to fix that specific problem. However there will probably be other changes so I suspect you will still need to port the driver to your required kernel.

See also https://serverfault.com/a/568397

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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