Kernel Compilation Problem

Danny Rawlins d.rawlins at datafast.net.au
Sun May 23 14:24:23 UTC 2010


James Mills wrote:
> On Sun, May 23, 2010 at 1:41 AM, justin domingue
> <justin.domingue at hotmail.com> wrote:
>   
>> Hi,
>>     
>
> Hi :)
>
>   
>> I'm starting with CRUX Linux and like it pretty much from what I've seen
>> (especially philosophy).
>>     
>
> Welcome to CRUX! It rocks :)
>
>   
>> My problem is that I've never compiled my kernel, so I don't know what to
>> put and my system would not boot because of that (well I think... I get this
>> error : VFS : Unable to mount root fs on block () ).
>> So i wanted to know if I could copy the CD kernel image... Would everything
>> be okay if I was to do that?
>>     
>
> The latest (2.6) CRUX installation CD's Kernel will not work
> out of the box (anymore?). It will not have the file system
> (likely) that you've probably formatted your disk with.
>
> You must compile the kernel yourself.
>
> Once you've partitioned your disk, formatted it and run setup
> chroot into your new system (using setup-chroot helper script)
> and perform the following:
>
> $ cd /usr/src/
> $ ln -s linux-x.y.z linux # I like doing this
>   
I would not recommend doing that now it's bad practice.
http://linuxmafia.com/faq/Kernel/usr-src-linux-symlink.html
http://bugs.gentoo.org/17349 for some examples of why this is bad.

I use /usr/src/linux-$(uname -r)
> $ cd linux
> $ make menuconfig # See notes below
> $ make all
> $ make modules_install
> $ make install
>
> Notes:
>
> When "configuring your Kernel", be sure to (at the very least):
>
> 1. Select your Processor Type.
> 2. Select your File System Type.
>
> Ensure that the above are "compiled-in" and NOT "modules".
>
> cheers
> James
> _______________________________________________
> CRUX mailing list
> CRUX at lists.crux.nu
> http://lists.crux.nu/mailman/listinfo/crux
>
>
>   




More information about the CRUX mailing list