1 |
I am trying to compile a kernel for a server that uses SCSI drives. I |
2 |
followed the Gentoo documentation for building a kernel, specifying all |
3 |
the appropriate SCSI low-level drivers with |
4 |
|
5 |
make menuconfig |
6 |
|
7 |
then |
8 |
|
9 |
make dep && make bzImage modules modules_install |
10 |
|
11 |
and copied bzImage over to /boot/kernel-2.4.22-gentoo-rc5. |
12 |
|
13 |
When I boot with the new kernel, it dies on |
14 |
|
15 |
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0 |
16 |
ds: no socket drivers loaded! |
17 |
VFS: Cannot open root device "sda5" or 08:05 |
18 |
Please append a correct "root=" boot option |
19 |
Kernel panic: VFS: Unable to mount root fs on 08:05 |
20 |
|
21 |
The "root=" kernel option is set correctly in /boot/grub/grub.conf so I |
22 |
am a bit mystified. |
23 |
|
24 |
Someone mentioned to me that I need to make an initrd for SCSI because |
25 |
of some chicken-and-egg problem during boot. Here I'm a bit stuck |
26 |
because I don't see much documentation on initrd in the Gentoo |
27 |
installation docs other than in the mention of genkernel. |
28 |
|
29 |
(I tried genkernel, by the way, and booting with the kernel and initrd |
30 |
it produces got me to a shell in the initrd ramdisk but wouldn't |
31 |
recognize my root device.) |
32 |
|
33 |
I found the mkinitrd ebuild but it doesn't clear things up that much. |
34 |
It talks about "scsi_hostadapter entries in /etc/modules.conf" but I |
35 |
don't see any scsi_hostadapter entries in my modules.conf. Do I need to |
36 |
run modules-update or something? (I tried running it and modules.conf |
37 |
was left unchanged with no scsi_hostadapter entries.) And do I need to |
38 |
toggle any settings in the kernel to indicate that I'm using initrd or |
39 |
does it figure that out from the initrd setting in grub.conf? |
40 |
|
41 |
Is there any good documentation that anyone knows of that explains how |
42 |
to compile a kernel on Gentoo if you're working with SCSI drives? Can |
43 |
anyone give me an example set of commands one would go through in this |
44 |
process? This is an area I'm not really familiar with as you can |
45 |
undoubtedly tell .... |
46 |
|
47 |
Thanks, |
48 |
|
49 |
-Collin |
50 |
|
51 |
|
52 |
|
53 |
|
54 |
-- |
55 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
56 |
Collin Starkweather, Ph.D. collin.starkweather@××××××××××××××××××.com |
57 |
University of Colorado Department of Economics |
58 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |