Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Genkernel without initrd
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
hadoque
Apprentice
Apprentice


Joined: 09 Sep 2004
Posts: 150
Location: Stockholm, Sweden

PostPosted: Wed Sep 17, 2008 8:47 pm    Post subject: Genkernel without initrd Reply with quote

Hi
I wan't to compile a kernel with all the stuff that's in the gentoo-kernel, but without using initrd to boot. I tried building a kernel with make all and the genkernel generated .config file, but when trying to start with no initrd i get VFS:cannot open root device ---. Where it's clear that the kernel wants a ramdisk to mount as root. I've disabled support for initrd in the kernel, and the grub-line is working fine wit other kernel-builds.

What else do i need to remove from the kernel to make it boot without initrd?
Back to top
View user's profile Send private message
chainsawbike
Tux's lil' helper
Tux's lil' helper


Joined: 27 Dec 2007
Posts: 78
Location: the great new zealand

PostPosted: Thu Sep 18, 2008 3:04 am    Post subject: Reply with quote

did you change your grub.conf?
could you paste bin it?

also make sure your hdd drivers are compiled in
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1497
Location: Oxfordshire, UK

PostPosted: Thu Sep 18, 2008 9:21 am    Post subject: Reply with quote

It sounds like you can't see your root FS due to not having the correct drivers included as static, not modules when you built your kernel.
This includes things like chipset drivers for motherboard, hard drive controllers, device-mapper, software raid, lvm etc etc.
Back to top
View user's profile Send private message
hadoque
Apprentice
Apprentice


Joined: 09 Sep 2004
Posts: 150
Location: Stockholm, Sweden

PostPosted: Thu Sep 18, 2008 10:26 am    Post subject: Reply with quote

alright, I'll try identifying the drivers and compiling them into the kernel. Thanks
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1497
Location: Oxfordshire, UK

PostPosted: Thu Sep 18, 2008 10:36 am    Post subject: Reply with quote

Just one question..... why the need to not use initrd??

IMHO it'll make your kernel bigger and use up more ram 8O
Back to top
View user's profile Send private message
hadoque
Apprentice
Apprentice


Joined: 09 Sep 2004
Posts: 150
Location: Stockholm, Sweden

PostPosted: Thu Sep 18, 2008 11:20 am    Post subject: Reply with quote

It's like this: I'm working on a new installation of gentoo on my amilo laptop. Most things are working now, but for some reason i can only get my synaptics pad to work properly when running the genkernel setup. I don't like genkernel, I wan't to compile my own lightweight kernel. So I'm hoping that the synaptics pad will work with the genkernel kernel but without initrd, because then i can start to strip down the genkernel kernel and see at what level the synaptics pad will fail.
Long story short ;)
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6780

PostPosted: Thu Sep 18, 2008 11:40 am    Post subject: Reply with quote

richard.scott wrote:
IMHO it'll make your kernel bigger and use up more ram

This is the first time that I have heard that to compile some module which you need anyway directly into the kernel would use more ram.
Or maybe I misunderstand you and you mean that with the ramdisk you can unload something which is only needed at boot time? What would this be (besides the ramdisk itself, of course)?
Back to top
View user's profile Send private message
hadoque
Apprentice
Apprentice


Joined: 09 Sep 2004
Posts: 150
Location: Stockholm, Sweden

PostPosted: Thu Sep 18, 2008 12:07 pm    Post subject: Reply with quote

no, sorry, i forgot to say. .The reason I don't want to use initrd is because i want to run tux on ice, and I've read that there are problems when using initrd. Also I don't feel like I'm in control when gentoo scans and autoloads stuff...
Back to top
View user's profile Send private message
szczerb
Veteran
Veteran


Joined: 24 Feb 2007
Posts: 1709
Location: Poland => Lodz

PostPosted: Thu Sep 18, 2008 12:12 pm    Post subject: Reply with quote

Then just check what modules you use from the genkernel kernel and build them as static in your kernel. If you'll have them loaded all the time, why use modules at all?
Back to top
View user's profile Send private message
hadoque
Apprentice
Apprentice


Joined: 09 Sep 2004
Posts: 150
Location: Stockholm, Sweden

PostPosted: Thu Sep 18, 2008 4:14 pm    Post subject: Reply with quote

Now it starts up nicely. Thanks for the help.
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