View previous topic :: View next topic |
Author |
Message |
dmitryilyin n00b
Joined: 08 Apr 2008 Posts: 27 Location: Netherlands
|
Posted: Tue Apr 08, 2008 7:15 pm Post subject: Compiling custom module into kernel |
|
|
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 |
|
|
poly_poly-man Advocate
Joined: 06 Dec 2006 Posts: 2477 Location: RIT, NY, US
|
Posted: Tue Apr 08, 2008 8:50 pm Post subject: |
|
|
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 |
|
|
dmitryilyin n00b
Joined: 08 Apr 2008 Posts: 27 Location: Netherlands
|
Posted: Wed Apr 09, 2008 8:53 pm Post subject: |
|
|
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 |
|
|
Koda n00b
Joined: 02 Apr 2008 Posts: 31
|
Posted: Thu Apr 10, 2008 9:07 am Post subject: |
|
|
: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 |
|
|
widremann Veteran
Joined: 14 Mar 2005 Posts: 1314
|
Posted: Thu Apr 10, 2008 12:53 pm Post subject: Re: Compiling custom module into kernel |
|
|
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 |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6069 Location: Removed by Neddy
|
Posted: Thu Apr 10, 2008 12:56 pm Post subject: |
|
|
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 |
|
|
|