From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PE5Py-0002DH-Vl for garchives@archives.gentoo.org; Thu, 04 Nov 2010 19:24:19 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BCF48E0663; Thu, 4 Nov 2010 19:23:57 +0000 (UTC) Received: from mail-ew0-f53.google.com (mail-ew0-f53.google.com [209.85.215.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 7D1AE1C04F for ; Thu, 4 Nov 2010 19:23:57 +0000 (UTC) Received: by ewy10 with SMTP id 10so1366963ewy.40 for ; Thu, 04 Nov 2010 12:23:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=bQXUb1D7cDkfdUfFKdpP09zVqNS7i8Skcd44TmooiMY=; b=PcnMIU6uUGI/XcVZl//P4XTWmHWvKLvHkvNpboWpjFOpp9f7j8T/QGQmL4+A8ZeE2t K///aKIq9p1AcG0poeug7BzisxjMLdmCsNyofdookcgQrIFFgm8xNncATN7l0HeozX/H 2DY2vkI923+kl8LcxNv0P5GThydC5WVOJoF2s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; b=BfqnzCLh3Ouzi2frHJSqCvUG9k9u/dFKBP6ENqWO91GofxFK16B2FquYslT5/LUzXP faLLPTHfee1tcxueguoExaf7EiELDdVVjmJzFbF13h1mgPbSxClzmDdVUJ2dRpnG2tDc mVsYr8zjI7LAWF+8LFbJRAIyEVQT2CM8o/1vw= Received: by 10.14.37.10 with SMTP id x10mr106758eea.31.1288898636846; Thu, 04 Nov 2010 12:23:56 -0700 (PDT) Received: from nazgul.localnet (196-215-2-42.dynamic.isadsl.co.za [196.215.2.42]) by mx.google.com with ESMTPS id w20sm257417eeh.0.2010.11.04.12.23.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 04 Nov 2010 12:23:56 -0700 (PDT) From: Alan McKinnon To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] kernel panic on manually built kernel Date: Thu, 4 Nov 2010 21:24:28 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.36-ck; KDE/4.5.3; x86_64; ; ) References: <4CD2E093.5030008@optonline.net> <201011041852.51375.alan.mckinnon@gmail.com> <4CD2E6A5.5050502@optonline.net> In-Reply-To: <4CD2E6A5.5050502@optonline.net> 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 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201011042124.28738.alan.mckinnon@gmail.com> X-Archives-Salt: f9c97b29-63f3-4b04-a085-9f20f8c1b8ee X-Archives-Hash: fc262389f829747a3f7699afa90fd99b Apparently, though unproven, at 19:00 on Thursday 04 November 2010, dhk did opine thusly: > On 11/04/2010 12:52 PM, Alan McKinnon wrote: > > Apparently, though unproven, at 18:34 on Thursday 04 November 2010, dhk > > did > > > > opine thusly: > >> I've always used the genkernel, but now am trying to make a manual one. > >> > >> I think the kernel is alright since all the default setting seemed > >> > >> reasonable and the build was easy enough. However, when I boot to it I > >> get a kernel panic and it complains about the root device /dev/hda3. So > >> I think the problem has to do with my parameters or syntax in grub.conf. > >> > >> Below are three grub menu options. The first two have the problem and > >> > >> the third is the genkernel that works fine. Is there something wrong > >> with the way the first two are? Thanks. > > > > Why did you think it a good idea to NOT post the *actual* error? > > > > Your grub entries are correct. > > > > I'll bet money that you built one or more of your chipset drivers, > > libata, or root filesystem driver as a module. > > > > These must not be modules, they must be built-in (otherwise you need an > > initrd) > > > >> # This is a Manually built kernel with default settings. kernel panic > >> title Gentoo Linux x86 2.6.34-r12 > >> root (hd0,0) > >> kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/hda3 > >> > >> # This is a Manually built kernel with default settings. kernel panic > >> title Gentoo Linux x86 2.6.34-r12 > >> root (hd0,0) > >> kernel /boot/kernel-2.6.34-gentoo-r12 root=/dev/hda3 vga=791 > >> splash=verbose video=vesafb:mtrr,ywrap udev > >> # From Documentation: video=uvesafb:mtrr:3,ywrap,1024x768-32@85 > >> > >> # This a genkernel and works > >> title Gentoo Linux x86 2.6.34-r6 > >> root (hd0,0) > >> kernel /boot/kernel-genkernel-x86_64-2.6.34-gentoo-r6 init=/linuxrc > >> ramdisk=8192 real_root=/dev/hda3 vga=791 splash=verbose > >> video=vesafb:mtrr,ywrap udev > >> initrd /boot/initramfs-genkernel-x86_64-2.6.34-gentoo-r6 > >> > >> --dhk > > Thanks all, I check those suggestions and get back to you. > > The reason I didn't include the exact error is that I can't capture it. > I'd have to write it on paper and then reboot to the working kernel. > By then it doesn't seem to be in any of the logs. I'll see what I can > do about that. The usual error is something like panic: can't find root filesystem (dev/hda3) or similar. It's so common when building your own kernel the first time, that if you post the gist of the error (doesn't have to be 100% exact), you'll get 10 replies in an error from folk who've all made the same mistake themselves. Some of us more than once... It's always missing drivers or (more usually) drivers built as modules. -- alan dot mckinnon at gmail dot com