I have been struggling to find a solution for loading module ath9k into the kernel and I have met a dead end.

The kernel is 3.17.1 taken from kernel.org and I am compiling it in Ubuntu Trusty (14.04) 64-bit. The target ARCH is x86_64

After make all command is issued, I copy the bzImage & initrd (custom made..mounts proc ,sys, dev and exec busybox sh) to /boot directory and it boots up fine.

Whenever I type

modprobe ath9k

I get the no module found error and so I head over to the ath9k folder ( in lib) and run insmod ath9k.ko, it gives an error elf file not for this architecture

But my .config file elf enabled by default (make x86_64_defconfig and I personally made sure)

the output for uname -a is: Linux (none) 3.17.1 #1 SMP x86_64 unknown

What gives?????

  • The best approach to this (imo) is to build Debian binary packages of the kernel image and the module image. Is there some reason you are not using your distributions default binary kernel package? – Faheem Mitha Nov 16 '14 at 9:07
  • well nothing in particular. I just want to learn kernel developing the hard way. Just curious that's all. – Surya Teja Karra Nov 16 '14 at 15:38
  • running depmod should rebuild the list of available modules for your kernel. – captcha Nov 17 '14 at 1:57
  • @SuryaTejaKarra Take a look at the Debian kernel Handbook, and also kernel-package. – Faheem Mitha Nov 17 '14 at 7:59

Your Answer

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

Browse other questions tagged or ask your own question.