View previous topic :: View next topic |
Author |
Message |
tcma Apprentice

Joined: 28 Jun 2004 Posts: 208
|
Posted: Thu Sep 16, 2004 7:48 pm Post subject: 2.4.26-r6 to 2.6.7 kernel |
|
|
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 |
|
 |
tcma Apprentice

Joined: 28 Jun 2004 Posts: 208
|
Posted: Thu Sep 16, 2004 8:17 pm Post subject: |
|
|
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 |
|
 |
pilla Bodhisattva


Joined: 07 Aug 2002 Posts: 7732 Location: Underworld
|
Posted: Thu Sep 16, 2004 8:44 pm Post subject: |
|
|
Moved from Installing Gentoo _________________ "I'm just very selective about the reality I choose to accept." -- Calvin |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55474 Location: 56N 3W
|
Posted: Thu Sep 16, 2004 8:50 pm Post subject: |
|
|
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 |
|
 |
tcma Apprentice

Joined: 28 Jun 2004 Posts: 208
|
Posted: Thu Sep 16, 2004 8:58 pm Post subject: |
|
|
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 |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55474 Location: 56N 3W
|
Posted: Thu Sep 16, 2004 9:47 pm Post subject: |
|
|
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 |
|
 |
nrh1703 n00b

Joined: 19 Jul 2004 Posts: 12 Location: UK
|
Posted: Thu Oct 07, 2004 3:36 pm Post subject: |
|
|
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
<edit> solved!! |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55474 Location: 56N 3W
|
Posted: Thu Oct 07, 2004 4:45 pm Post subject: |
|
|
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
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 |
|
 |
tollwilly125 n00b


Joined: 31 Aug 2003 Posts: 73 Location: Boston, MA
|
Posted: Thu Oct 07, 2004 7:57 pm Post subject: |
|
|
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 |
|
 |
|