Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compiling as a module works but not inside the kernel
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
oneself
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2005
Posts: 107
Location: New York, NY

PostPosted: Mon Apr 30, 2012 8:21 pm    Post subject: Compiling as a module works but not inside the kernel Reply with quote

Hi,

I'm curious about a behaviour I'm seeing in my system. If I compile a piece of hardware as a module (=m) it works, but if I change it to be supported internally inside the kernel it stops working.

For example, I have an Intel network card which uses the CONFIG_E1000E kernel switch. If I set it to
Code:
CONFIG_E1000E=m

It works fine, but if I set it to
Code:
CONFIG_E1000E=y

It stops working.

Why is this happening?
_________________
There are 10 types of people, those who know binary and those who don't.
Back to top
View user's profile Send private message
nephros
Advocate
Advocate


Joined: 07 Feb 2003
Posts: 2139
Location: Graz, Austria (Europe - no kangaroos.)

PostPosted: Mon Apr 30, 2012 8:30 pm    Post subject: Reply with quote

What do you mean "it stops working"? Please describe your problem/bug/failure more verbosely if you can.


If this happens as you say it may well be a kernel bug.

Which kernel sources are you using? Can you post your .config somewhere and post a link to it here?
_________________
Please put [SOLVED] in your topic if you are a moron.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Apr 30, 2012 9:05 pm    Post subject: Reply with quote

You may want to build the firmware into kernel, see dmesg for errors.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
oneself
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2005
Posts: 107
Location: New York, NY

PostPosted: Thu May 03, 2012 2:03 am    Post subject: Reply with quote

Hi,

When I say it doesn't work I mean that NetworkManager says that not network card is available, and I cannot connect to a wired or wifi network. If I simply recompile my kernel as stated above, everything works.

I'm using sys-kernel/gentoo-sources v3.2.12

Here is my .config:
http://pastebin.com/jdLbE0TA
_________________
There are 10 types of people, those who know binary and those who don't.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21682

PostPosted: Fri May 04, 2012 2:12 am    Post subject: Reply with quote

Please boot the kernel where the card "does not work" and post the output of dmesg ; ip a.
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