From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FOida-0006rb-Jk for garchives@archives.gentoo.org; Wed, 29 Mar 2006 21:55:35 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.5) with SMTP id k2TLrw7o012205; Wed, 29 Mar 2006 21:53:58 GMT Received: from cicero1.cybercity.dk (cicero1.cybercity.dk [212.242.40.4]) by robin.gentoo.org (8.13.6/8.13.5) with ESMTP id k2TLn1TP023060 for <gentoo-user@lists.gentoo.org>; Wed, 29 Mar 2006 21:49:01 GMT Received: from user2.cybercity.dk (user2.cybercity.dk [212.242.41.35]) by cicero1.cybercity.dk (Postfix) with ESMTP id F3EF763EC0B for <gentoo-user@lists.gentoo.org>; Wed, 29 Mar 2006 23:49:00 +0200 (CEST) Received: from [10.0.0.2] (port78.ds1-abs.adsl.cybercity.dk [212.242.227.17]) by user2.cybercity.dk (Postfix) with ESMTP id BDD012866FD for <gentoo-user@lists.gentoo.org>; Wed, 29 Mar 2006 23:49:00 +0200 (CEST) From: Bo Andresen <bo.andresen@gmail.com> To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] New To Gentoo and Emerge, No ACPI in Kernel Date: Wed, 29 Mar 2006 23:49:04 +0200 User-Agent: KMail/1.9.1 References: <e5a3e9ac0603232310y11fe4612l63c1b01fcf95c533@mail.gmail.com> <20060328120110.3519463c@hactar.digimed.co.uk> <e5a3e9ac0603291158o13485b64x72c0396835861e8b@mail.gmail.com> In-Reply-To: <e5a3e9ac0603291158o13485b64x72c0396835861e8b@mail.gmail.com> Precedence: bulk List-Post: <mailto:gentoo-user@lists.gentoo.org> List-Help: <mailto:gentoo-user+help@gentoo.org> List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org> List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org> List-Id: Gentoo Linux mail <gentoo-user.gentoo.org> X-BeenThere: gentoo-user@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 Content-Disposition: inline Message-Id: <200603292349.06274.bo.andresen@gmail.com> X-Archives-Salt: 1fecb890-2f12-492c-8b60-19eff2944937 X-Archives-Hash: dd1a214afe0d71a53451f6821aa885f5 On Wednesday 29 March 2006 21:58, Lord Sauron wrote: > Okay, here's where I've isolated the problem to. This might be a > rather lengthy explanation, so make sure you have about 15 minutes on > your hands before diving in. However, the explanation shouldn't take > long - I've never actually compiled/installed/used a kernel before. > Okay, enough apologising in advance: down to business. > > I know that it correctly compiles the kernel. I put a new name for > the new kernel (test1) to try and ID it as it floats about all the > other kernels I'm too scared to delete. > > # make install > > Sticks it into /boot. /boot now reads > > System.map config.old > System.map-2.6.15-gentoo-r1 grub > System.map-2.6.15-gentoo-r1.old > initramfs-genkernel-x86-2.6.15-gentoo-r5 System.map-2.6.15-gentoo-r1test1 > kernel-genkernel-x86-2.6.15-gentoo-r5 > System.map-2.6.15-gentoo-r1test1.old lost+found > System.map.old vmlinuz > boot vmlinuz-2.6.15-gentoo-r1 > config vmlinuz-2.6.15-gentoo-r1.old > config-2.6.15-gentoo-r1 vmlinuz-2.6.15-gentoo-r1test1 > config-2.6.15-gentoo-r1.old vmlinuz-2.6.15-gentoo-r1test1.old > config-2.6.15-gentoo-r1test1 vmlinuz.old > config-2.6.15-gentoo-r1test1.old > > Not terribly exciting. However, I went to /boot/grub/menu.lst and it > reads as such: > > localhost boot # cat ./grub/menu.lst > default 0 > timeout 7 > splashimage=(hd0,0)/grub/splash.xpm.gz > title=Gentoo Linux > root (hd0,0) > kernel /kernel-genkernel-x86-2.6.15-gentoo-r5 root=/dev/ram0 > init=/linuxrc ramdisk=8192 real_root=/dev/hda3 > initrd /initramfs-genkernel-x86-2.6.15-gentoo-r5 > > The most concerning part is the last three lines. For any kernel, it > appears to demand the kernel itself. If you'll refer back to # ls > /boot then you'll notice that kernel-2.6.15-gentoo-r1test1 isn't > there. Sure it is. It's vmlinuz-2.6.15-gentoo-r1test1 and make install even made a symlink to it: vmlinuz. If you type ls -l /boot/vmlinuz it should give something that end on: /boot/vmlinuz -> vmlinuz-2.6.15-gentoo-r1test1 > Nor is the initrd. If you don't use genkernel you don't actually need an initrd. If you want one you have to enable it. I can't tell you how since I don't use it myself. > I don't know where they might be, or if > they're not there then how to generate them. Try adding the following to /boot/grub/menu.lst: title Gentoo Linux test1 root (hd0,0) kernel /vmlinuz root=/dev/hda3 This will create a new menu item in Grub during start up. If you want this kernel to be selected by default you either add above the genkernel menu item shown above or change the default to 1. After default you can add a fallback line and set it to another kernel than the default. This is a part of my menu.lst: ================================================================ # Boot automatically after 30 secs. timeout 5 # By default, boot the first entry. default 0 # Fallback to the second entry. fallback 1 # Reboot 5 seconds after a kernel panic panic=5 # Nice splash image for grub :) splashimage=(hd0,1)/grub/splash.xpm.gz title Gentoo Linux root (hd0,1) kernel /vmlinuz root=/dev/hda6 video=vesafb-tng:1400x1050-32@60,mtrr,ywrap splash=silent,theme:livecd-2006.0 quiet CONSOLE=/dev/tty1 initrd /fbsplash-livecd-2006.0-1400x1050 title Gentoo Linux (Old) root (hd0,1) kernel /vmlinuz.old root=/dev/hda6 video=vesafb-tng:1400x1050-32@60,mtrr,ywrap splash=verbose,theme:livecd-2006.0 quiet CONSOLE=/dev/tty1 initrd /boot/fbsplash-livecd-2006.0-1024x768 ================================================================ The indented lines are on the end of the kernel line above them. My initrd's are create by splashutils and have nothing to do with compiling the kernel. If they are removed it boots just as well just without the livecd-2006 theme. > If I can find out those two things then I should be able to test my > new kernel and see if it actually worked. > > On 3/28/06, Neil Bothwick <neil@digimed.co.uk> wrote: > > On Tue, 28 Mar 2006 11:51:11 +0200, Bo Andresen wrote: > > > > Sorry, what does YMMV mean? > > > > > > Those are the resources that I use for that kind of questions: > > > > > > http://en.wikipedia.org/wiki/YMMV > > > http://www.urbandictionary.com/define.php?term=ymmv > > > > You can also emerge wtf. > > I assume wtf will tell me what wtf stands for... is the last letter > representative of a forbidden word, by any chance? Of course ;) : $ wtf wtf WTF: {what,when,where,who,why} the fuck > > $ wtf ymmv > > YMMV: your mileage may vary > > Yeah, it's just that the wiki and sometimes the urban dictionary are often more detailed. :) -- Bo Andresen -- gentoo-user@gentoo.org mailing list