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:[EMAIL PROTECTED],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:[EMAIL PROTECTED],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 <[EMAIL PROTECTED]> 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

Reply via email to