From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JeydF-0007o6-U0 for garchives@archives.gentoo.org; Thu, 27 Mar 2008 20:23:30 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7B489E08EE; Thu, 27 Mar 2008 20:23:28 +0000 (UTC) Received: from out3.smtp.messagingengine.com (out3.smtp.messagingengine.com [66.111.4.27]) by pigeon.gentoo.org (Postfix) with ESMTP id 5C05BE08EE for ; Thu, 27 Mar 2008 20:23:28 +0000 (UTC) Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id 27FC3E3A99; Thu, 27 Mar 2008 16:23:28 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute2.internal (MEProxy); Thu, 27 Mar 2008 16:23:28 -0400 X-Sasl-enc: ZC42B2B6NUCGI56LtwC85FwIo/d+oMFmAa7W9TYO6avB 1206649406 Received: from [10.129.146.71] (unknown [212.23.103.36]) by mail.messagingengine.com (Postfix) with ESMTPSA id 39B4DA484 for ; Thu, 27 Mar 2008 16:23:25 -0400 (EDT) Subject: Re: [gentoo-user] Creating an initrd for loading... From: Florian Philipp To: gentoo-user@lists.gentoo.org In-Reply-To: <47EBE7E6.1030704@yahoo.com> References: <47EBCCC8.20404@yahoo.com> <1206638858.30987.87.camel@NOTE_GENTOO64.PHHEIMNETZ> <47EBE7E6.1030704@yahoo.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-zw5bQPcUzakn1uS1Erlw" Date: Thu, 27 Mar 2008 21:23:01 +0100 Message-Id: <1206649381.30987.115.camel@NOTE_GENTOO64.PHHEIMNETZ> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 X-Archives-Salt: 7358947b-39e6-4338-a353-12b419342d53 X-Archives-Hash: d9244cdfa8e162bcc4d0c574e5574098 --=-zw5bQPcUzakn1uS1Erlw Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2008-03-27 at 14:31 -0400, Benjamen R. Meyer wrote: > Florian Philipp wrote: > > On Thu, 2008-03-27 at 12:35 -0400, Benjamen R. Meyer wrote: > >> My main question comes down to this: I am using the 'genkernel' packag= e=20 > >> to build & install the kernel and initrd image. Both show up in /boot.= =20 > >> How much can I rely on genkernel to build a valid initrd image? > > Try "genkernel menuconfig all" to check for a valid kernel config befor= e > > genkernel builds it. Refer to genkernel's man-page for further options. >=20 > Yes, I did that. I ran genkernel, and generated it all. The initrd just=20 > doesn't seem to be working. >=20 >=20 > >> How can=20 > >> I mount the initrd image to verify it has the modules, etc. and verify= =20 > >> it is a valid image? > > There is a wiki-entry about it: http://gentoo-wiki.com/HOWTO_Initramfs >=20 > 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=20 > for some reason...complaints about finding cpio and zcat complaining=20 > about arguments). Any how... >=20 > I snooped around the extracted files and was unable to find either the=20 > qla2xxx module (or the qla2200 modules, or any modules for that matter)=20 > or the qla2200 firmware. The firmware is on the hard drive (/dev/sda1 ->=20 > /lib/firmward/qla2200_fw.bin), and so is the module -=20 > /lib/modules/2.6.24-gentoo-r3/kernel/drivers/scsi/qla2xxx/qla2xxx.ko. Is=20 > the initrd image invalid?? Or are they stored somehow in the files=20 > non-obviously? >=20 > How could I easily add them to the initrd image? (This is really my=20 > first time playing with initrd images...) >=20 > Thanks, >=20 > Ben >=20 They are in lib/modules. I think it should work if you just copy the modules to their respective folder and add their names to the respective file in etc/modules. To create a initrd new initrd, use the following command: find . | cpio --quiet --dereference -o -H newc | gzip -9 >/boot/initrd --=-zw5bQPcUzakn1uS1Erlw Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) iD8DBQBH7AIlqs4uOUlOuU8RAme/AJ0WLMYVhgK6F8SpCPzByBNakwQtAQCfV1Tn SJ1Xyn2SiVwzJhG0b1XrDSU= =qaaG -----END PGP SIGNATURE----- --=-zw5bQPcUzakn1uS1Erlw-- -- gentoo-user@lists.gentoo.org mailing list