How can I rebuild my kernel back to 2.6.15

Discussion in general that pertains to Sabayon Linux - Must Pertain to Sabayon Linux

Moderator: Moderators

How can I rebuild my kernel back to 2.6.15

Postby lurch » Sat Jun 24, 2006 23:51

Hi
I have a sound problem with KDE which appears to be caused by kernel 2.6.16 according to post's i have read.
Can someone tell me how to revert back to 2.6.15 so I can try this ?
Thanks
lurch
Young Hen
 
Posts: 22
Joined: Fri Dec 16, 2005 23:53

2 things you can try

Postby cvill64 » Sun Jun 25, 2006 0:03

Hey Lurch,

There are two things you can try, you can either a) first try the upgrade (I would do this) and b) try the downgrade. To do a, simply do this:

Code: Select all
$ emerge gentoo-sources
$ zcat /proc/config.gz > /usr/src/config
$ genkernel --kernel-config=/usr/src/config --menuconfig --bootloader=grub --gensplash=default all


A make config menu will pop up and you can customize it a bit more, such as I would suggest changing the Processor to Amd64 versus just generic if you have amd or to Intel64 and the same if you have something like a Pentium M or 4 for 32, optimization at its best :). Most of the other settings should be right, but if you know the setting in the kernel that is screwing with you KDE, you can try and correct that here. Then you exit, select yes to save the changes, and then reboot when its done and choose the new kernel.

Now to downgrade, you simply do the the same thing except

Code: Select all
$ emerge =sys-kernel/gentoo-sources-2.6.15-r7
$ zcat /proc/config.gz > /usr/src/config
$ genkernel --kernel-config=/usr/src/config --menuconfig --bootloader=grub --gensplash=default all


There is an r8 of 2.6.15, but it is unstable, where as r7 is stable for 64 and 32. Or you can follow B and try a different 2.6.16 kernel instead of going all the way back to .15. Best of luck :)
cvill64
Sagely Hen
 
Posts: 2185
Joined: Fri Dec 30, 2005 10:03
Location: Virginia, USA

Postby cvill64 » Sun Jun 25, 2006 0:26

Oh yes! If you use reiser4, you'll need to instead of doing

Code: Select all
$ emerge gentoo-sources


You need to do
Code: Select all
$ emerge reiser4-gentoo-sources


If you get an error saying there are no sources installed in /usr/src then append the "-u" option to your emerge.

Code: Select all
$ emerge -u gentoo-sources

or

$ emerge -u reiser4-gentoo-sources


If you're running miniedition, you can just do
Code: Select all
./scripts/emerge-kernel.sh
and it'll upgrade for you. And don't forget, if you have external drivers just
Code: Select all
$ emerge module-rebuild


and one more thing, if you have nvidia or ati, don't forget to emerge those again,
Code: Select all
$ emerge nvidia-kernel nvidia-glx
and the module-rebuild will automatically do it for your ati drivers :) If you're not using proprietary drivers, then you should have to worry, just to dhte module-rebuild emerge and it'll take care of it.
cvill64
Sagely Hen
 
Posts: 2185
Joined: Fri Dec 30, 2005 10:03
Location: Virginia, USA


Return to Sabayon Linux General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest