Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compiling custom module into 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
dmitryilyin
n00b
n00b


Joined: 08 Apr 2008
Posts: 27
Location: Netherlands

PostPosted: Tue Apr 08, 2008 7:15 pm    Post subject: Compiling custom module into kernel Reply with quote

Hello!

I have installed Gentoo on eeePC.
I have to use some modules not from kernel sources, including atl2 network driver.
Do anyone know how to compile it not as module, but as part of monolithic kernel.
(Yes it means creating custom kernel sources)
Back to top
View user's profile Send private message
poly_poly-man
Advocate
Advocate


Joined: 06 Dec 2006
Posts: 2477
Location: RIT, NY, US

PostPosted: Tue Apr 08, 2008 8:50 pm    Post subject: Reply with quote

you have to actually add the source to the kernel, and make sure that the drivers/ makefile stuff references it.

Unfortunately, if you have any binary drivers, you'll have a hell of a hard time wedging them in there.

What's wrong with modules?
_________________
iVBORw0KGgoAAAANSUhEUgAAA

avatar: new version of logo - see topic 838248. Potentially still a WiP.
Back to top
View user's profile Send private message
dmitryilyin
n00b
n00b


Joined: 08 Apr 2008
Posts: 27
Location: Netherlands

PostPosted: Wed Apr 09, 2008 8:53 pm    Post subject: Reply with quote

When network interface is module it cannot be used for PXE booting... And I am just monolithic kernel fan))
Someone have already did what i wanted
http://geeentoo.com/news.html
Back to top
View user's profile Send private message
Koda
n00b
n00b


Joined: 02 Apr 2008
Posts: 31

PostPosted: Thu Apr 10, 2008 9:07 am    Post subject: Reply with quote

:S network boot (PXE) means that you DON'T boot the kernel installed, so it doesn-t matter whether network is module or not!
c/mon, modules are good!

bye
Koda
Back to top
View user's profile Send private message
widremann
Veteran
Veteran


Joined: 14 Mar 2005
Posts: 1314

PostPosted: Thu Apr 10, 2008 12:53 pm    Post subject: Re: Compiling custom module into kernel Reply with quote

dmitryilyin wrote:
Hello!

I have installed Gentoo on eeePC.
I have to use some modules not from kernel sources, including atl2 network driver.
Do anyone know how to compile it not as module, but as part of monolithic kernel.
(Yes it means creating custom kernel sources)

Why not just leave it as a module? I think you can put it in an initrd if you need it for part of the boot up process.
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6069
Location: Removed by Neddy

PostPosted: Thu Apr 10, 2008 12:56 pm    Post subject: Reply with quote

yer nothnig wrong with modules
handy sometimes
_________________
#define HelloWorld int
#define Int main()
#define Return printf
#define Print return
#include <stdio>
HelloWorld Int {
Return("Hello, world!\n");
Print 0;
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