1 |
On Thu, 2008-03-27 at 14:31 -0400, Benjamen R. Meyer wrote: |
2 |
> Florian Philipp wrote: |
3 |
> > On Thu, 2008-03-27 at 12:35 -0400, Benjamen R. Meyer wrote: |
4 |
> >> My main question comes down to this: I am using the 'genkernel' package |
5 |
> >> to build & install the kernel and initrd image. Both show up in /boot. |
6 |
> >> How much can I rely on genkernel to build a valid initrd image? |
7 |
> > Try "genkernel menuconfig all" to check for a valid kernel config before |
8 |
> > genkernel builds it. Refer to genkernel's man-page for further options. |
9 |
> |
10 |
> Yes, I did that. I ran genkernel, and generated it all. The initrd just |
11 |
> doesn't seem to be working. |
12 |
> |
13 |
> |
14 |
> >> How can |
15 |
> >> I mount the initrd image to verify it has the modules, etc. and verify |
16 |
> >> it is a valid image? |
17 |
> > There is a wiki-entry about it: http://gentoo-wiki.com/HOWTO_Initramfs |
18 |
> |
19 |
> Ok, so I used zcat to decompress the image, and then cpio to extract the |
20 |
> data to a temporary folder. (The instructions on the wiki didn't work |
21 |
> for some reason...complaints about finding cpio and zcat complaining |
22 |
> about arguments). Any how... |
23 |
> |
24 |
> I snooped around the extracted files and was unable to find either the |
25 |
> qla2xxx module (or the qla2200 modules, or any modules for that matter) |
26 |
> or the qla2200 firmware. The firmware is on the hard drive (/dev/sda1 -> |
27 |
> /lib/firmward/qla2200_fw.bin), and so is the module - |
28 |
> /lib/modules/2.6.24-gentoo-r3/kernel/drivers/scsi/qla2xxx/qla2xxx.ko. Is |
29 |
> the initrd image invalid?? Or are they stored somehow in the files |
30 |
> non-obviously? |
31 |
> |
32 |
> How could I easily add them to the initrd image? (This is really my |
33 |
> first time playing with initrd images...) |
34 |
> |
35 |
> Thanks, |
36 |
> |
37 |
> Ben |
38 |
> |
39 |
|
40 |
They are in lib/modules. I think it should work if you just copy the |
41 |
modules to their respective folder and add their names to the respective |
42 |
file in etc/modules. |
43 |
|
44 |
To create a initrd new initrd, use the following command: |
45 |
|
46 |
find . | cpio --quiet --dereference -o -H newc | gzip -9 >/boot/initrd |