You are not logged in.

#1 2006-07-05 08:38:37

allucid
Member
Registered: 2006-01-06
Posts: 259

custom kernel without initrd?

The new kernels (2.6.17.3-1 and 2.6.17ck) fail with udev module loading for me so I decided to build my own kernel instead of figuring out what the problem was. smile

I downloaded a vanilla kernel from kernel.org (2.6.17.3). I built the kernel without a ramfs, without initrd and without mkinitcpio. I also have very few modules (ipw2100, some firewire and usb stuff). When I boot with the kernel, I get a kernel panic, VFS: can't mount root filesystem on blah blah...

So, I was wondering. Is there something special I need to do (arch patches?) in order to make this work or did I just screw up somewhere. Would enabling ramfs and initrd likely fix this problem? I am fairly certain I have everything needed to boot compiled into the kernel, and not as a module.

Offline

#2 2006-07-05 11:20:02

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: custom kernel without initrd?

Well, if you configure and compile your own kernel you definitely not need any initrd at all and your life grows happier. However, double check that the support for your hard disk controllers and for your root filesystem are compiled INTO the kernel.
Eventually, post you kernel config in pastebin and post the link here (and give us some details about your hd and filesystems).

Double check also your bootloader config.

It may happen sometimes that vanilla needs to be patched in order to work with the most recent udev or other core apps. However, this seems not to be the case now, since arch kernel (as you can see throu the PKGBUILD in abs) is lightly patched, with patches not affecting vital subsystems. Anyway, you could try to compile your kernel through abs using that PKGBUILD as a reference. Also in this case, if you configuration is proper, it is perfectly safe to remove all the initrd-initramfs-initcpio stuff.


Mortuus in anima, curam gero cutis

Offline

#3 2006-07-05 13:56:57

allucid
Member
Registered: 2006-01-06
Posts: 259

Re: custom kernel without initrd?

fixed it!

I copied over the config from an old kernel of mine and did 'make oldconfig'. Some things did not translate well, though. I grep'd the .config for '=m' to find modules and it turns out I had some IDE stuff in there as modules. I fixed that, and now it works very well. smile

Thanks for the help!

Offline

#4 2006-07-06 13:55:52

Insane-Boy
Member
Registered: 2006-02-27
Posts: 243

Re: custom kernel without initrd?

Just check your option..You should make support of your root fs with * not with <M> and you make the needed modules with * ( such as fs module..ide controller module.. etc ) for this you should know very good your hardware.

Offline

Board footer

Powered by FluxBB