View previous topic :: View next topic |
Author |
Message |
Mallrats Guru
Joined: 15 Jul 2002 Posts: 414 Location: Cleveland Ohio
|
Posted: Fri Dec 12, 2003 4:45 pm Post subject: genkernel :-( |
|
|
After a genkernel --config and a reboot I'm still using the same old kernel
1) What else do I need to do
2) How do I migrate from genkernel to the old ways _________________ BitWise Chat |
|
Back to top |
|
|
ledskof Apprentice
Joined: 22 Oct 2002 Posts: 209
|
Posted: Fri Dec 12, 2003 4:55 pm Post subject: |
|
|
EDIT:
Wait I don't think I quite understand.
You compiled with genkernel and you are unpleased so you want to go back to the old kernel?
But you said it's still loading the same old kernel?
can you clarify a little? |
|
Back to top |
|
|
didl Retired Dev
Joined: 09 Sep 2003 Posts: 1106 Location: Pittsburgh, PA
|
Posted: Fri Dec 12, 2003 5:28 pm Post subject: Re: genkernel :-( |
|
|
Mallrats wrote: | After a genkernel --config and a reboot I'm still using the same old kernel
1) What else do I need to do
2) How do I migrate from genkernel to the old ways |
Well, after you compiled a new kernel you at least have to update your
grub.conf file in case you use GRUB (lilo otherwise) in order to
be able to choose your new kernel in the GRUB menu upon reboot.
Your second question I don't quite get. If you mean how to compile
a kernel "by hand" (i.e. without genkernel) then have a look at the
installation manual and there are tons of threads in the forums on how to
do this properly. |
|
Back to top |
|
|
Mallrats Guru
Joined: 15 Jul 2002 Posts: 414 Location: Cleveland Ohio
|
Posted: Fri Dec 12, 2003 5:45 pm Post subject: |
|
|
ledskof:
A year or two ago, genkernel didn't exist. I could update my kernel and it was magical
When I say migrate back, I mean, how do I remove the genkernel package and used the old way of doing things
didl:
In my boot directory is still initrd-2.4.20-gentoo-r7 and kernel-2.4.20-gentoo-r7, and what I compiled was r9, but if I switch the r7's to r9's in grub.conf, linux won't load
Why is genkernel --config not making the new kernel-2.4.20-gentoo-r9? What do I need to do _________________ BitWise Chat |
|
Back to top |
|
|
irf2003 Veteran
Joined: 10 Sep 2003 Posts: 1078
|
Posted: Fri Dec 12, 2003 7:41 pm Post subject: |
|
|
Mallrats wrote: | ledskof:
A year or two ago, genkernel didn't exist. I could update my kernel and it was magical
When I say migrate back, I mean, how do I remove the genkernel package and used the old way of doing things
didl:
In my boot directory is still initrd-2.4.20-gentoo-r7 and kernel-2.4.20-gentoo-r7, and what I compiled was r9, but if I switch the r7's to r9's in grub.conf, linux won't load
Why is genkernel --config not making the new kernel-2.4.20-gentoo-r9? What do I need to do |
are you sure you compiled the right kernel??
I would go to the /usr/src and make sure that the "linux" symbolic link points to the kernel that is to be compiled.
also before you run genkernel make sure that your /boot partition is mounted so that genkernel will copy the new kernel to it. can you confirm that your /boot partition contains the
new kernel which you compiled. before you mount your /boot
patition check the /boot directory, it no doubts contains the newly compiled kernel files, these should be moved to the /boot partition
HTH
BTW ledskof, you can use genkernel to cutomize the kernel to be compiled as follows:-
try it
Last edited by irf2003 on Fri Dec 12, 2003 7:50 pm; edited 2 times in total |
|
Back to top |
|
|
ledskof Apprentice
Joined: 22 Oct 2002 Posts: 209
|
Posted: Fri Dec 12, 2003 7:43 pm Post subject: |
|
|
oh ok.. I've never used genkernel, or "the old magical way"
lol
I just used the "really old way" of configuring each option of the kernel by hand.
Not to be confused with the "really really old way" where you say yes or no to a lot of questions..
Or the really really really old way where you just created a config with vi...
or the really really really really.. oh nm |
|
Back to top |
|
|
Mallrats Guru
Joined: 15 Jul 2002 Posts: 414 Location: Cleveland Ohio
|
Posted: Fri Dec 12, 2003 7:49 pm Post subject: |
|
|
irf2003
/usr/src/linux points to the r9 directory, not r7
/boot was mounted before and after compiling
Code: | dave@host dave $ ls /boot
System.map boot initrd-2.4.20-gentoo-r7 lost+found
System.map-2.4.20-gentoo-r7 grub kernel-2.4.20-gentoo-r7 |
What else should I do?
I blame documentation on this one
There's no genkernel page http://gentoo-portage.com/browse-program.php?program=4319
and no "man genkernel"
This is why I'm wasting everyone's time _________________ BitWise Chat |
|
Back to top |
|
|
irf2003 Veteran
Joined: 10 Sep 2003 Posts: 1078
|
Posted: Fri Dec 12, 2003 7:53 pm Post subject: |
|
|
the ls /boot is misleading if your boot partition is already mounted.
reboot then do ls /boot, if there are some files in there, it means that genkernel must have copied them there, when it should have really copied them to the boot partion.
try to mount the boot partition at some other mount point and inspect it contents
HTH
BTW the r9 kernel is not there |
|
Back to top |
|
|
ledskof Apprentice
Joined: 22 Oct 2002 Posts: 209
|
Posted: Fri Dec 12, 2003 7:59 pm Post subject: |
|
|
maybe you just need to:
Code: | #rm /usr/src/linux
#ln -s /usr/src/linux-2.4.20.gentoo-r9 /usr/src/linux |
Or whwatever your kernel is for the linux-2.4.20-gentoo-r9 line, and then do genkernel again. |
|
Back to top |
|
|
irf2003 Veteran
Joined: 10 Sep 2003 Posts: 1078
|
Posted: Fri Dec 12, 2003 8:02 pm Post subject: |
|
|
ledskof wrote: | maybe you just need to:
Code: | #rm /usr/src/linux
#ln -s /usr/src/linux-2.4.20.gentoo-r9 /usr/src/linux |
Or whwatever your kernel is for the linux-2.4.20-gentoo-r9 line, and then do genkernel again. |
ledskof, it is already pointing at the right kernel dir.
I bet you he forgot to mount the boot partition before
invoking genkernel, ask me, I am an expert at that, I do it
all the time.
I once did a mount /dev/hdb1 /root instead of /boot
needless to say it screwed things up real bad LOL |
|
Back to top |
|
|
ledskof Apprentice
Joined: 22 Oct 2002 Posts: 209
|
Posted: Fri Dec 12, 2003 8:09 pm Post subject: |
|
|
o, I misread. I thought he said it was pointing at r7. I see it now |
|
Back to top |
|
|
ewan.paton Veteran
Joined: 29 Jul 2003 Posts: 1219 Location: glasgow, scotland
|
Posted: Sat Dec 13, 2003 8:45 am Post subject: |
|
|
i dont realy see the point in genkernel last time i used it you had to know what modules to load and it made almost everything even unneccisary stuff so why not do an make menuconfig, its like 3 extra commands and you can see whats going in it. _________________ Giay tay nam | Giay nam cao cap | Giay luoi |
|
Back to top |
|
|
Skrot Tux's lil' helper
Joined: 06 Oct 2003 Posts: 141 Location: Adelaide, Australia
|
Posted: Sat Dec 13, 2003 10:20 am Post subject: |
|
|
ewan.paton wrote: | i dont realy see the point in genkernel last time i used it you had to know what modules to load and it made almost everything even unneccisary stuff so why not do an make menuconfig, its like 3 extra commands and you can see whats going in it. | Is that not the same as doing "genkernel --config"? _________________ You will release your mind. |
|
Back to top |
|
|
ewan.paton Veteran
Joined: 29 Jul 2003 Posts: 1219 Location: glasgow, scotland
|
Posted: Sat Dec 13, 2003 2:47 pm Post subject: |
|
|
Skrot wrote: | ewan.paton wrote: | i dont realy see the point in genkernel last time i used it you had to know what modules to load and it made almost everything even unneccisary stuff so why not do an make menuconfig, its like 3 extra commands and you can see whats going in it. | Is that not the same as doing "genkernel --config"? |
not really you spend a lot more time uncommenting out all the isdn and radio modules it builds by default but no sound?? than you would typing _________________ Giay tay nam | Giay nam cao cap | Giay luoi |
|
Back to top |
|
|
sethleon Guru
Joined: 14 Dec 2003 Posts: 398 Location: Germany
|
Posted: Sun Dec 14, 2003 6:24 pm Post subject: genkernel :( |
|
|
my genkernel also behaved strange,
if u make "genkernel --config" again, then
check what he does (it is printed out)
my genkernel stoped after "Modules",
and did not go on (more than 1 time),
so i did it the old way:
# cd /usr/src/linux (or any other linux kernel source)
# make menuconfig
# make dep
# make clean
# make bzImage
# make modules
# make modules_install
and changed the settings in grub.conf
(concerning bzImage, etc. view the install doc of gentoo):
title=Mein Gentoo Linux
root (hd0,0)
kernel (hd0,0)/boot/bzImage root=/dev/hda3
[from gentoo install doc, grub.conf]
this should work, as it worked at my laptop as i compiled a new kernel version _________________ Mess with the best, die like the rest. |
|
Back to top |
|
|
Decker Tux's lil' helper
Joined: 05 Oct 2003 Posts: 98 Location: Germany
|
Posted: Mon Dec 15, 2003 8:25 am Post subject: |
|
|
Well....what's the point? Experiment a little bit.
First of all move (don't delete) the old sources (r7) to a dir, where genkernel is not looking for (eg. ~).
Refresh the symlink to the r9 sources (I know it points already there, but just give it a try). Now do a genkernel --config and have a look at the kernel version in the main menu.
Btw: It is not necessary to mount /boot. Genkernel mounts it automatically if it's not mounted. |
|
Back to top |
|
|
sethleon Guru
Joined: 14 Dec 2003 Posts: 398 Location: Germany
|
Posted: Mon Dec 15, 2003 11:01 am Post subject: |
|
|
genkernel roots it ya,
but if you do not use it
/boot will not be mounted _________________ Mess with the best, die like the rest. |
|
Back to top |
|
|
|