Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
which module?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Horacius
n00b
n00b


Joined: 19 Aug 2012
Posts: 7

PostPosted: Tue Aug 21, 2012 10:20 pm    Post subject: which module? Reply with quote

Hi, in my 4th try to install Gentoo I decided to use genkernel too see how it works; I thought I wouldnt have to worry about any modules, but I figured out I still need to configure them. The problem is I dont have a clue about which module corresponds to my hardware as there are over 700 to pick from. Is there a way to know which module/s corresponds to a certain hardware element?

Thanks in advance!
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Tue Aug 21, 2012 10:27 pm    Post subject: Reply with quote

Horacius,

Paste your output of lspci -n here for your hardware :wink:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Aug 21, 2012 10:55 pm    Post subject: Reply with quote

Horacius,

Unless you have some odd hardware or are using VMware, genkernel should make you a kernel that works.

The only module you need to know the name of, to add to /etc/conf.d/modules is the one for your network card.
Most of the other required modules will be auto loaded one way or another.
Your network card module might get autoloaded too but the system is not very good with network cards.
_________________
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
Horacius
n00b
n00b


Joined: 19 Aug 2012
Posts: 7

PostPosted: Wed Aug 22, 2012 2:28 am    Post subject: Reply with quote

lspci -n :

00:00.0 0600: 8086:2770 (rev 02)
00:01.0 0604: 8086:2771 (rev 02)
00:1b.0 0403: 8086:27d8 (rev 01)
00:1c.0 0604: 8086:27d0 (rev 01)
00:1d.0 0c03: 8086:27c8 (rev 01)
00:1d.1 0c03: 8086:27c9 (rev 01)
00:1d.2 0c03: 8086:27ca (rev 01)
00:1d.3 0c03: 8086:27cb (rev 01)
00:1d.7 0c03: 8086:27cc (rev 01)
00:1e.0 0604: 8086:244e (rev e1)
00:1f.0 0601: 8086:27b8 (rev 01)
00:1f.2 0101: 8086:27c0 (rev 01)
00:1f.3 0c05: 8086:27da (rev 01)
02:00.0 0300: 10de:0de1 (rev a1)
02:00.1 0403: 10de:0bea (rev a1)
03:05.0 0200: 10ec:8167 (rev 10)

its a gentoo only machine, I got to connect to it by ssh to post the lspci result here so the network works fine after I use net-setup.
Back to top
View user's profile Send private message
Horacius
n00b
n00b


Joined: 19 Aug 2012
Posts: 7

PostPosted: Wed Aug 22, 2012 2:29 am    Post subject: Reply with quote

oops sorry for the double post
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Wed Aug 22, 2012 1:34 pm    Post subject: Reply with quote

Horacius,

Paste your lspci -n output here http://kmuto.jp/debian/hcl/

It will list drivers specific to your hardware e.g. the network card. Then check that those drivers are enabled.

As NeddySeagoon said, genkernel should make you a kernel that works. You just want to make sure your specific hardware requirements are met.
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
Horacius
n00b
n00b


Joined: 19 Aug 2012
Posts: 7

PostPosted: Wed Aug 22, 2012 4:37 pm    Post subject: Reply with quote

doh failed to see the link in your first post... anyway, Im confused.. does genkernel generates a kernel which doesnt need me to edit the modules file after compiling? my machine boots, it has some issues tho, the question is: do I have to edit the modules file after compiling no matter what? or do I have to give genkernel other/more options than "all"?

Thanks for the help :D
Back to top
View user's profile Send private message
BillWho
Veteran
Veteran


Joined: 03 Mar 2012
Posts: 1600
Location: US

PostPosted: Wed Aug 22, 2012 5:27 pm    Post subject: Reply with quote

Horacius wrote:
doh failed to see the link in your first post... anyway, Im confused.. does genkernel generates a kernel which doesnt need me to edit the modules file after compiling? my machine boots, it has some issues tho, the question is: do I have to edit the modules file after compiling no matter what? or do I have to give genkernel other/more options than "all"?

Thanks for the help :D

I really don't understand what you mean by
Quote:
do I have to edit the modules file after compiling no matter what?

You shouldn't have to edit anything after you compile the kernel :? Can you clarify that and elaborate further on the issues that you have :?:
_________________
Good luck :wink:

Since installing gentoo, my life has become one long emerge :)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Aug 22, 2012 5:47 pm    Post subject: Reply with quote

Horacius,

Code:
genkernel -all
should make you a fat bloated booting kernel.
You may need to add the name of your networking module to /etc/conf.d/modules but thats about all.

Code:
10ec8167   Yes   Realtek Semiconductor Co., Ltd.   RTL-8110SC/8169SC Gigabit Ethernet   r8169
Your module name is r8169.

Try this boot your install and run
Code:
lsmod | grep r8169
if you get back a line starting r8169, you are good and your module is loaded.
If not add r8169 to the modules file.

Now
Code:
 /etc/init.d/net.eth0
should start your networking. Everything else on your PCI busses should autoload.

If you get specific errors, tell us the exact error message so we can help with the errors.
_________________
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
Horacius
n00b
n00b


Joined: 19 Aug 2012
Posts: 7

PostPosted: Wed Aug 22, 2012 6:05 pm    Post subject: Reply with quote

I compiled the kernel with genkernel, When I boot my machine I see how it scans for hardware, it doesnt work as with the live cd when I think it should but I may be wrong and thats why I ask.

The guide says in the 7.e point you should list the modules you want automatically loaded in the file /etc/conf.d/modules, but for me it isnt clear if you have to do that no matter if you use genkernel or not.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Aug 22, 2012 6:26 pm    Post subject: Reply with quote

Horacius,

You need to understand some of the history of Linux.

12 years ago when I becan with linux, there were no kernel module auto loading mechanisims as as the handbook says, you needed to list all of the modules you want to be loaded by the boot process in a file someone in /etc.

Over the years module autoloading has been developed. The kernel can do some on its own, udev will load others. However, there is not complete coverage of every kernel module. Some still need to be named in /etc/conf.d/modules.

If you list a module here that is autoloaded by the kernel or udev, it won't matter. Attempting to load an already loaded module is not an error.

One class of common kernel modules where auto loading is patchy, goin on nonexistent, is netword crd modules. Hence the test I described earlier.
If its loaded, you need not add it to /etc/conf.d/modules.
_________________
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
Horacius
n00b
n00b


Joined: 19 Aug 2012
Posts: 7

PostPosted: Wed Aug 22, 2012 6:47 pm    Post subject: Reply with quote

Ok I think its clear now, I have also read a bit more about genkernel so Im going to reinstall from scratch :D

Thanks a lot guys, Ill be back soon.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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