Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Forgot to install ath9k module, what do I do?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
lellopisello
n00b
n00b


Joined: 12 Dec 2022
Posts: 1
Location: Italy

PostPosted: Mon Dec 12, 2022 3:58 pm    Post subject: Forgot to install ath9k module, what do I do? Reply with quote

hi guys, I'm going to preface by saying that I am completely new to Gentoo as this is an issue I'm having with my first installation.
anyways, during the kernel configuration, I just completely forgot to include the drivers to my network card, which is a Qualcomm Atheros AR9565 (the required module should be ath9k right?)
do I really need to recompile the kernel to fix this issue or is there a better way?
and, if I do need to recompile how should I do it? should i do a kernel upgrade?
thanks in advance.
Back to top
View user's profile Send private message
Christian99
Veteran
Veteran


Joined: 28 May 2009
Posts: 1721

PostPosted: Mon Dec 12, 2022 4:09 pm    Post subject: Reply with quote

just go in kernel src dir, call make menuconfig and enable the driver (or instead of make menuconfig, use any other method to enable the driver), and then call make.
make figures out, what source files need to be build, and also considers object files still lying around from previous compiles, so it doesn't rebuild all required source files, only source files, that aren't compiled yet.

after that, do make install (and make module_install if you have modules build) and you should be fine
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1886
Location: Germany

PostPosted: Mon Dec 12, 2022 4:46 pm    Post subject: Reply with quote

make sure, if you have a separate boot partition, to mount /boot before make install
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54821
Location: 56N 3W

PostPosted: Mon Dec 12, 2022 6:38 pm    Post subject: Reply with quote

lellopisello,

Welcome to Gentoo.

Yes you need ath9k. If you choose it as a module in
Code:
make menuconfig
.
Then run
Code:
make modules
make modules_install
modprobe ath9k
it may just work.

Adding modules to the running kernel like this is not guaranteed to work but its always worth a try.
No reboot required.

If the modprobe fails, look in dmesg for the errors. Missing symbols indicate that ath9k wants something else that was not build.
So do the whole build and install again.

Make is lazy. Unless all the existing binaries are removed from the kernel build tree, make will reuse what it can.
If you are running make by hand, don't forget to use
Code:
make -j<CPU_THREADS>
on only one thread will be used.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum