View previous topic :: View next topic |
Author |
Message |
Horacius n00b
Joined: 19 Aug 2012 Posts: 7
|
Posted: Tue Aug 21, 2012 10:20 pm Post subject: which module? |
|
|
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 |
|
|
BillWho Veteran
Joined: 03 Mar 2012 Posts: 1600 Location: US
|
Posted: Tue Aug 21, 2012 10:27 pm Post subject: |
|
|
Horacius,
Paste your output of lspci -n here for your hardware _________________ Good luck
Since installing gentoo, my life has become one long emerge |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Tue Aug 21, 2012 10:55 pm Post subject: |
|
|
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 |
|
|
Horacius n00b
Joined: 19 Aug 2012 Posts: 7
|
Posted: Wed Aug 22, 2012 2:28 am Post subject: |
|
|
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 |
|
|
Horacius n00b
Joined: 19 Aug 2012 Posts: 7
|
Posted: Wed Aug 22, 2012 2:29 am Post subject: |
|
|
oops sorry for the double post |
|
Back to top |
|
|
BillWho Veteran
Joined: 03 Mar 2012 Posts: 1600 Location: US
|
Posted: Wed Aug 22, 2012 1:34 pm Post subject: |
|
|
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
Since installing gentoo, my life has become one long emerge |
|
Back to top |
|
|
Horacius n00b
Joined: 19 Aug 2012 Posts: 7
|
Posted: Wed Aug 22, 2012 4:37 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
BillWho Veteran
Joined: 03 Mar 2012 Posts: 1600 Location: US
|
Posted: Wed Aug 22, 2012 5:27 pm Post subject: |
|
|
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 |
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
Since installing gentoo, my life has become one long emerge |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Wed Aug 22, 2012 5:47 pm Post subject: |
|
|
Horacius,
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 runif 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 |
|
|
Horacius n00b
Joined: 19 Aug 2012 Posts: 7
|
Posted: Wed Aug 22, 2012 6:05 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Wed Aug 22, 2012 6:26 pm Post subject: |
|
|
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 |
|
|
Horacius n00b
Joined: 19 Aug 2012 Posts: 7
|
Posted: Wed Aug 22, 2012 6:47 pm Post subject: |
|
|
Ok I think its clear now, I have also read a bit more about genkernel so Im going to reinstall from scratch
Thanks a lot guys, Ill be back soon. |
|
Back to top |
|
|
|