LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Gentoo (https://www.linuxquestions.org/questions/gentoo-87/)
-   -   how to compile kernel as standard? (https://www.linuxquestions.org/questions/gentoo-87/how-to-compile-kernel-as-standard-4175470150/)

mshlinux 07-18-2013 10:20 PM

how to compile kernel as standard?
 
I know this may be wrong place. But there is no place for crux in this linux forum.
And I believe that people in this forum are smart in compiling kernel.
that's why I post here...

on my Desktop which is with Core2Duo, 1GB ram and running Debian,
I installed crux-2.8 in VirtualBox, compiled kernel without any configuration
because I thought that kernel itself has made default or standard configuration.

After installation process, I reboot VM but I can't boot into newly installed crux.
the message I get is here:

Quote:

LILO Loading CRUX.................
BIOS data check successful
Kernel panic - not syncing: VFS: Unable to mount root fs on unknow-block (8.1)
Pid: 1, comm: swapper/0 not tainted 3.5.4 #1
Call Trace:
[<c11acae2>] ? panic*0x7a/0x152
xxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxx
etc...etc...
_
so, i think, it is kernel compilation issue.
pls, anyone guide me!

whansard 07-19-2013 09:17 AM

set the crux virtual box machine to boot from cd or iso or whatever you used to install crux. mount the filesystem within the virtual machine and edit your /etc/lilo.conf so that you can boot your original version of the kernel. if your boot menu shows the old kernel already, then boot with that. get a copy of the .config from your running debian kernel in the crux kernel source directory, and run "make oldconfig" with it there. that should give you a working configuration.

mshlinux 07-20-2013 07:42 PM

ok, it works, thank you!

i92guboj 07-30-2013 07:17 AM

Just for the record, the kernel has little defaults. You truly need to configure it yourself. That, or just enable everything and make a huge ramdisk with every driver under the sun.

The errors like the one you saw above are generally due to not having included the chipset driver and/or the fs driver for your root file system. Those are needed either statically into your kernel or in the ramdisk, so the kernel can reach the rest of the drivers that live inside the fs, inside the disk.


All times are GMT -5. The time now is 10:29 PM.