Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Where am I going wrong with 2.6.2 build
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
gman70
n00b
n00b


Joined: 05 Feb 2004
Posts: 4

PostPosted: Fri Feb 06, 2004 4:00 am    Post subject: Where am I going wrong with 2.6.2 build Reply with quote

Ok, I have been banging my head against the wall. Can someone help me figure out where I am going wrong?

2.4.20 = current kernel

Want to move to 2.6.2

Steps I have taken:

1. emerged 2.6.2 ebuild from /usr/portage/sys-kernel/development-sources

2. rm /usr/src/linux && ln -s /usr/src/linux-2.6.2 /usr/src/linux

3. make menuconfig

4. make && make modules_install

Here is where I get confused. Since this is a fresh install of Gentoo w/kernel 2.4.20, I have an image called "vmlinuz-2.4.20"

Here is what my current /etc/lilo.conf file looks like:

boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
lba32
default=linux

image=/boot/vmlinuz-2.4.20
label=linux-2.4.20
read-only
root=/dev/hda3
append="hdd=ide-scsi"

So I guess my question is what after step 4, and did I miss anything? Do I need to copy System.map files still? I obviously want to retain my current 2.4.20 kernel incase something goes wrong.


GMAN
Back to top
View user's profile Send private message
boudie
n00b
n00b


Joined: 01 Feb 2004
Posts: 74
Location: nova scotia, canada

PostPosted: Fri Feb 06, 2004 5:51 am    Post subject: Reply with quote

Copy your new System.map, config and kernel to /boot
(mount it first, if not mounted). Remove the old links, make new links to the 2.6 items, append your /etc/lilo
and add the new kernel, rerun lilo and when you reboot
you'll have the choice of two kernels, choose 2.6 and
you're in. Make sure the System.map, config and kernel have specific names (kernel-2.6.1, etc).
Back to top
View user's profile Send private message
Dr Gonzo
Apprentice
Apprentice


Joined: 31 Jan 2004
Posts: 276
Location: Austin, TX

PostPosted: Fri Feb 06, 2004 5:51 am    Post subject: Reply with quote

After make modules_install, you should do a "make install". A lot of people don't use this, but I find it rather convenient. It'll copy a bzImage to /boot along with System.map, and it creates symlinks. (vmlinuz points to the newly compiled kernel, and vmlinuz.old will probably point to your old one. It may not, though. You can create that one yourself before you make install and possibly save yourself some headaches.)

make install will also update Lilo for you. Ain't that nifty?

BTW, I highly recommend using grub as your bootloader. There are some excellent howtos around, but the best one is in the Gentoo installation manual. It has never failed me, and I can always boot my machine, even if something goes majorly wrong.

Some advice, though. Do some searches on this forum for ufs and devfs. Kernel 2.6 uses a different way of handling hardware, and requires some configuration. Also, you might have some trouble getting into a console under X. Make sure you compile support for /dev/pts, and include the mount points in /etc/fstab.

There's more info all over the place about these things, as well as a couple of howtos. Search the forums!

I just did all of this yesterday. Trust me. It'll work.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum