Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2.4.26-r6 to 2.6.7 kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
tcma
Apprentice
Apprentice


Joined: 28 Jun 2004
Posts: 208

PostPosted: Thu Sep 16, 2004 7:48 pm    Post subject: 2.4.26-r6 to 2.6.7 kernel Reply with quote

I emerge gentoo-sources on emachines M6807 laptop and get 32 bit x86 2.4.26-r6 gentoo kernel.
If I want to get 32 bit 2.6.7 gentoo for my kernel, is the easiest way is to do:
emerge gentoo-dev-sources

Upgrading to 2.6.7 should not affect to my existing applications such as mozilla?
It should run as before, isn't it?
Back to top
View user's profile Send private message
tcma
Apprentice
Apprentice


Joined: 28 Jun 2004
Posts: 208

PostPosted: Thu Sep 16, 2004 8:17 pm    Post subject: Reply with quote

My disk partitions are as follows.
hda7 is free now,
so I can use it to install 2.6.7 and keep hda6 as 2.4.26.
May I use hda3 as boot and hda5 as swap for either 2.4.26 and 2.6.7?
Then I can select either 2.4.26 or 2.6.7 during boot.

Is this the procedure to install to hda7?
mke2fs -j /dev/hda7
mount /dev/hda7 /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/hda3 /mnt/gentoo/boot
cd /mnt/gentoo
...

Disk /dev/hda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1559 12522636 7 HPFS/NTFS
/dev/hda2 1560 2196 5116702+ c W95 FAT32 (LBA)
/dev/hda3 2197 2205 72292+ 83 Linux
/dev/hda4 2206 7296 40893457+ 5 Extended
/dev/hda5 2206 2330 1004031 82 Linux swap
/dev/hda6 2331 4821 20008926 83 Linux
/dev/hda7 4822 7296 19880406 83 Linux
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7732
Location: Underworld

PostPosted: Thu Sep 16, 2004 8:44 pm    Post subject: Reply with quote

Moved from Installing Gentoo
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55474
Location: 56N 3W

PostPosted: Thu Sep 16, 2004 8:50 pm    Post subject: Reply with quote

tcma,

You many have as many kerenls in your /boot partition as yo have room for and choose which one to use in the grub boot screen. There is no need to make a new partition.

The new kernel should not affect any applications.

Build your second and subsequent kernels, just as you did the first kernel.

Be careful to use unique names when you copy the bzImage to /boot.
Using the name bzImage is not a good idea.

Add a new entry to grub.conf to allow you to choose and boot the new kernel.

Reboot and try it. If it fails, boot the old kernel and fix it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
tcma
Apprentice
Apprentice


Joined: 28 Jun 2004
Posts: 208

PostPosted: Thu Sep 16, 2004 8:58 pm    Post subject: Reply with quote

Is this the best way to get 2.6.7?
emerge gentoo-dev-sources

NeddySeagoon wrote:
tcma,

You many have as many kerenls in your /boot partition as yo have room for and choose which one to use in the grub boot screen. There is no need to make a new partition.

The new kernel should not affect any applications.

Build your second and subsequent kernels, just as you did the first kernel.

Be careful to use unique names when you copy the bzImage to /boot.
Using the name bzImage is not a good idea.

Add a new entry to grub.conf to allow you to choose and boot the new kernel.

Reboot and try it. If it fails, boot the old kernel and fix it.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55474
Location: 56N 3W

PostPosted: Thu Sep 16, 2004 9:47 pm    Post subject: Reply with quote

tcma,

That will get you a source tree for 2.6.8-r4, on the basis of my last emerge sync, about a week ago. If you have a more recent sync, you may get a later kernel.

You then have to configure, build and install it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
nrh1703
n00b
n00b


Joined: 19 Jul 2004
Posts: 12
Location: UK

PostPosted: Thu Oct 07, 2004 3:36 pm    Post subject: Reply with quote

following

Code:
emerge gentoo-dev-sources


will my old (2.6.7-r11) kernel config be picked up automatically or should I save the old config and load the alternate config once i run

Code:
make menuconfig



<edit> solved!!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55474
Location: 56N 3W

PostPosted: Thu Oct 07, 2004 4:45 pm    Post subject: Reply with quote

nrh1703,

You will get a whole new kernel tree with its .config file missing.
If your old kernel is only a minor version or so away from the new one, copy the .config from the old tree to the new one.
In the new tree, run
Code:
make oldconfig
this will validate your existing configuration and ask you to answer for any new configure oprions that are not covered by your old configuration.

Check it over with make menuconfig. or make gconfig or make xconfig.
The latter two require a GUI.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
tollwilly125
n00b
n00b


Joined: 31 Aug 2003
Posts: 73
Location: Boston, MA

PostPosted: Thu Oct 07, 2004 7:57 pm    Post subject: Reply with quote

make oldconfig saves a lot of time. just remember that you have to copy your old .config to /usr/src/linux before make oldconfig.
_________________
Click, Click, bloody Click PANCAKES!!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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