Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is it possible to swap kernel sources?
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
dechah
n00b
n00b


Joined: 18 Jun 2002
Posts: 37
Location: Melbourne

PostPosted: Tue Jul 02, 2002 1:13 am    Post subject: Is it possible to swap kernel sources? Reply with quote

I recently installed Gentoo with XFS filesystems on a couple of my partitons. I faithfully followed the installation guide and I am currently running the kernel compiled from the "xfs-sources". I recently discovered that the latest "gentoo-sources" has XFS filesystem support included.

If it is not too much trouble, I would prefer to switch to this kernel source.

Can I simply grab the lastest gentoo-sources package, compile it with the correct settings and then replace my existng bzImage in the /boot partition with the new bzImage created from the gentoo-sources package.

I am not experienced enough to know if this is going to break anything in my current Gentoo install. I guess I should just try it and see, but if anyone has already gone down this path before me, I would love to know if there are any tips or tricks I should consider first.

Regards

Dechah
_________________
Cheers

Dechah
Back to top
View user's profile Send private message
FINITE
Guru
Guru


Joined: 10 May 2002
Posts: 449

PostPosted: Tue Jul 02, 2002 1:29 am    Post subject: Reply with quote

I would just dive right in :D I would seriously. It shouldn't hurt anything at all. You would need to update your boot loader to be able to boot your new kernel. Otherwise you should have no problems.
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Tue Jul 02, 2002 1:44 am    Post subject: Reply with quote

One thing to watch out for if you are trying to keep your existing kernel bootable in case of problems is the modules directory. If you try to install two versions of the same kernel version, you may end up overwriting the /lib/modules/ subdirectory and cause yourself some grief.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
rommel
Veteran
Veteran


Joined: 19 Apr 2002
Posts: 1145
Location: Williamsburg Virginia

PostPosted: Tue Jul 02, 2002 2:51 am    Post subject: Reply with quote

you know i did that and got a kernel panic...but because xfs was performing so pathetically i didnt even try to figure it out i just blew the install and started over...you should be careful...and i think unless you want something specific that the vanilla-xfs kernel doesnt support you should just leave well enough alone
Back to top
View user's profile Send private message
AutoBot
l33t
l33t


Joined: 22 Apr 2002
Posts: 968
Location: Usually Out

PostPosted: Tue Jul 02, 2002 7:36 am    Post subject: Reply with quote

rommel wrote:
you know i did that and got a kernel panic...but because xfs was performing so pathetically i didnt even try to figure it out i just blew the install and started over...you should be careful...and i think unless you want something specific that the vanilla-xfs kernel doesnt support you should just leave well enough alone


Actually I run gentoo so I don't have to leave well enough alone :D

Here are some easy steps you can follow dechah:

Code:

su -
emerge rsync
emerge gentoo-sources
# copy the .config to whatever the gentoo-sources dir is currently
cp /usr/src/linux/.config /usr/src/linux-2.4.19-r7
# point the /usr/src/linux symlink to gentoo sources, same rule above applies
ln -s /usr/src/linux-2.4.19-r7 /usr/src/linux
cd /usr/src/linux
make menuconfig
make dep && make bzImage clean modules modules_install
mount /boot
mv /boot/bzImage /boot/bzImage.old
cp /usr/src/linux/arch/i386/boot/bzImage /boot
# make sure there is a bzImage.old and a bzImage
ls /boot
umount /boot
# edit grub or lilo to reflect the .old kernel if needed then
reboot

_________________
This message self destructed a long time ago.
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Tue Jul 02, 2002 8:01 am    Post subject: Reply with quote

AutoBot wrote:
rommel wrote:
you know i did that and got a kernel panic...but because xfs was performing so pathetically i didnt even try to figure it out i just blew the install and started over...you should be careful...and i think unless you want something specific that the vanilla-xfs kernel doesnt support you should just leave well enough alone


Actually I run gentoo so I don't have to leave well enough alone :D

Here are some easy steps you can follow dechah:

Code:

su -
emerge rsync
emerge gentoo-sources
# copy the .config to whatever the gentoo-sources dir is currently
cp /usr/src/linux/.config /usr/src/linux-2.4.19-r7
# point the /usr/src/linux symlink to gentoo sources, same rule above applies
ln -s /usr/src/linux-2.4.19-r7 /usr/src/linux
cd /usr/src/linux
make menuconfig
make dep && make bzImage clean modules modules_install
mount /boot
mv /boot/bzImage /boot/bzImage.old
cp /usr/src/linux/arch/i386/boot/bzImage /boot
# make sure there is a bzImage.old and a bzImage
ls /boot
umount /boot
# edit grub or lilo to reflect the .old kernel if needed then
reboot


Quote:

umount /boot
# edit grub or lilo to reflect the .old kernel if needed then


First edit grub and then umount the /boot :-)
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
AutoBot
l33t
l33t


Joined: 22 Apr 2002
Posts: 968
Location: Usually Out

PostPosted: Tue Jul 02, 2002 8:04 am    Post subject: Reply with quote

Good call pacman, it's 3 A.M. and I am slipping into a upright coma lol.
_________________
This message self destructed a long time ago.
Back to top
View user's profile Send private message
DArtagnan
l33t
l33t


Joined: 30 Apr 2002
Posts: 942
Location: Israel, Jerusalem

PostPosted: Tue Jul 02, 2002 8:06 am    Post subject: Reply with quote

:-)
Go sleep and gimme your username/password `s root to your linux box :p
_________________
All for one and one for All
--

MACPRO machine...
Back to top
View user's profile Send private message
dechah
n00b
n00b


Joined: 18 Jun 2002
Posts: 37
Location: Melbourne

PostPosted: Tue Jul 02, 2002 10:42 am    Post subject: Reply with quote

Thanks for all your assistance people




AutoBot wrote:
rommel wrote:
you know i did that and got a kernel panic...but because xfs was performing so pathetically i didnt even try to figure it out i just blew the install and started over...you should be careful...and i think unless you want something specific that the vanilla-xfs kernel doesnt support you should just leave well enough alone


Actually I run gentoo so I don't have to leave well enough alone :D

Here are some easy steps you can follow dechah:

Code:

su -
emerge rsync
emerge gentoo-sources
# copy the .config to whatever the gentoo-sources dir is currently
cp /usr/src/linux/.config /usr/src/linux-2.4.19-r7
# point the /usr/src/linux symlink to gentoo sources, same rule above applies
ln -s /usr/src/linux-2.4.19-r7 /usr/src/linux
cd /usr/src/linux
make menuconfig
make dep && make bzImage clean modules modules_install
mount /boot
mv /boot/bzImage /boot/bzImage.old
cp /usr/src/linux/arch/i386/boot/bzImage /boot
# make sure there is a bzImage.old and a bzImage
ls /boot
umount /boot
# edit grub or lilo to reflect the .old kernel if needed then
reboot

_________________
Cheers

Dechah
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