You are not logged in.

#1 2008-11-14 14:09:22

markp1989
Member
Registered: 2008-10-05
Posts: 431

compile kernel without a initial ram disk

im looking to recompile the kernel, to speed up boot time, i have a list of modules that i need.

theses are currently being loaded from rc.conf

sis-agp sis5513 snd-intel8x0 ohci_hcd ehci-hcd sata_sis nvidia psmouse r8169 slhc

and these are the modules and hooks that are in the initial ram disk

 HOOKS="base udev sata"
MODULES="ata_generic sata_sis ext2"

would some one be willing to give me a quick crash course in kernel compilation?

thanks markp1989


Desktop: E8400@4ghz - DFI Lanparty JR P45-T2RS - 4gb ddr2 800 - 30gb OCZ Vertex - Geforce 8800 GTS - 2*19" LCD
Server/Media Zotac GeForce 9300-ITX I-E - E5200 - 4gb Ram - 2* ecogreen F2 1.5tb - 1* wd green 500gb - PicoPSU 150xt - rtorrent - xbmc - ipazzport remote - 42" LCD

Offline

#2 2008-11-14 19:25:32

Dheart
Member
From: Sofia, Bulgaria
Registered: 2006-10-26
Posts: 956

Re: compile kernel without a initial ram disk

What do you want to do? You want to build those modules into the kernel so that they'd not need to be loaded, right?


My victim you are meant to be
No, you cannot hide nor flee
You know what I'm looking for
Pleasure your torture, I will endure...

Offline

#3 2008-11-14 21:01:42

broch
Banned
From: L.A. California
Registered: 2006-11-13
Posts: 975

Re: compile kernel without a initial ram disk

this is pretty easy:
1) always keep a copy of working kernel
2) if you just want to learn, use default Arch kernel config as a starting template
3) make sure that disk controller and fs (you are using) are build in
4) you can leave the rest as modules, if custom kernel will boot, however some function will be missing, you can always later build devices into kernel. On the other hand, some devices can impact boot time if build as modules (.. or build in the kernel) this you will need to test
5) personally, I think that building kernel from sources (www.kernel.org) is more flexible and easier, but you may try both methods to see which suits you better.

Offline

Board footer

Powered by FluxBB