Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How do I build initrd?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
dragos240
Apprentice
Apprentice


Joined: 19 Apr 2009
Posts: 252

PostPosted: Sun Oct 04, 2009 12:51 pm    Post subject: How do I build initrd? Reply with quote

How do I build the initrd, I got the kernel, but it doesn't explain how to get the initrd. Some help would be appreciated.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Sun Oct 04, 2009 12:56 pm    Post subject: Reply with quote

Why would you need initrd? Do you have some exotic hardware which comes with binary blobs?
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
dragos240
Apprentice
Apprentice


Joined: 19 Apr 2009
Posts: 252

PostPosted: Sun Oct 04, 2009 1:20 pm    Post subject: Reply with quote

Jaglover wrote:
Why would you need initrd? Do you have some exotic hardware which comes with binary blobs?


Oh, so you ONLY need the kernel? I thought you needed an initrd to boot (my experience in most linux distros)
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Sun Oct 04, 2009 1:22 pm    Post subject: Reply with quote

Yep, build support for your HDD controller, partition table and root partition filesystem into kernel (not as modules) and that's it.
Back to top
View user's profile Send private message
dragos240
Apprentice
Apprentice


Joined: 19 Apr 2009
Posts: 252

PostPosted: Sun Oct 04, 2009 1:32 pm    Post subject: Reply with quote

Jaglover wrote:
Yep, build support for your HDD controller, partition table and root partition filesystem into kernel (not as modules) and that's it.


Thanks!
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21773

PostPosted: Sun Oct 04, 2009 5:06 pm    Post subject: Reply with quote

dragos240 wrote:
Oh, so you ONLY need the kernel? I thought you needed an initrd to boot (my experience in most linux distros)

Most Linux distributions ship a kernel+initrd so that they can support a wide variety of hardware without including every possible driver statically in the kernel. Since you can build your own kernel for Gentoo, you can tailor it to the hardware you need, build in drivers for that, and exclude everything else. Gentoo supports an initrd, and you may need it for configurations where the root filesystem cannot be autodiscovered by the kernel. For example, a laptop with an encrypted root filesystem needs an initrd to prepare the mapping before the kernel can try to run the real init process.

For simplicity, try without an initrd. If that works, you are done. If not, ask for help and someone can tell you whether your goal requires an initrd or if you made a mistake, such as specifying the root device incorrectly.
Back to top
View user's profile Send private message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Mon Oct 05, 2009 9:20 am    Post subject: Reply with quote

some note: initrd also contains the frambuffer images, if used :idea:
_________________
Gentoo on Uptime Project - Larry is a cow
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Mon Oct 05, 2009 10:27 am    Post subject: Reply with quote

in gentoo, the simplest way to create a initrd+kernel is to use genkernel.
Works flawless, and it still supports customization like bootsplash.

But as mentioned, initrd are only needed on some special setups (or if used in a binary distro).

cheers
V.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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