[dundee] Linux Gaming

Nistur Effee nistur at karate.com
Mon Apr 2 13:30:22 BST 2007


Ok, as Dreamisdead said, it's easiest typing "make install" and then it'll do everything for you BUT there is a slight problem. Assuming you haven't got everything quite peachy, for example you compile incorrect SATA drivers *cough* and you do "make install", ok it will back up your old kernel and for all intents and purposes it's still there. But I'm pretty sure it doesn't change your grub menu.lst so it's not referenced when you boot.
Unless you already know what's going on and something *does* go wrong, you have to modify grub at boot. Not really that hard, but you need to know what you're typing.
Personally whereas this is the easy way out in a way, I still recommend copying the 3 files over manually: (assuming you're in the root of the kernel source)
./arch/x86/boot/bzImage -> /boot/linux-2.6.whatever
./.config  -> /boot/config-2.6.whatever
./System.map  -> /boot/System.map-2.6.whatever

then fire up your favourite text editor and open up your /etc/grub/menu.lst and you should see a section that looks like this:

title  Arch Linux 
root (hd0,0)
kernel /boot/linux-2.6.20-r3 root=/dev/hda1

ok, there may be some differences, but I'm sure you'll find what I mean. OK, rename the title to "mylinux BACKUP" or something everything else in that section... DON'T TOUCH
If it all goes pear shaped that kernel should still boot and you should have things back to how they were (except for things like graphics card drivers, which are a bitch...)

Now make a new section, above that one, copying the layout, it's possible that a premade kernel has, I think it's a .img or something there too, but what you need is something along the lines of this:

title call me whatever you want
root (hd0,0)  --- copy this EXACTLY from the other section
kernel /boot/linux-2.6.whatever root=/dev/hda1

Obviously, change the kernel name to what you saved it as, and the two root options to what suits your system. These shouldn't have changed from the last kernel though. When you're all done, reboot and check out your fancy new options in GRUB.
Next step: Pray you've compiled the correct things

I hope that's made it a little clearer. As I said, it's possible to use make install like DreamisDead suggested, however I don't think it changes grub.conf at all. so you have to change the kernel line from within grub manually.

Anyway, I think I'm going to try starting LFS on my laptop again *smile*

---------------------------------------------------
Signing out
Nistur                            nistur at karate.com


-- 
_______________________________________________
Get your free email from http://mail.karate.com



More information about the dundee mailing list