Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
genkernel :-(
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Mallrats
Guru
Guru


Joined: 15 Jul 2002
Posts: 414
Location: Cleveland Ohio

PostPosted: Fri Dec 12, 2003 4:45 pm    Post subject: genkernel :-( Reply with quote

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
View user's profile Send private message
ledskof
Apprentice
Apprentice


Joined: 22 Oct 2002
Posts: 209

PostPosted: Fri Dec 12, 2003 4:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
didl
Retired Dev
Retired Dev


Joined: 09 Sep 2003
Posts: 1106
Location: Pittsburgh, PA

PostPosted: Fri Dec 12, 2003 5:28 pm    Post subject: Re: genkernel :-( Reply with quote

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
View user's profile Send private message
Mallrats
Guru
Guru


Joined: 15 Jul 2002
Posts: 414
Location: Cleveland Ohio

PostPosted: Fri Dec 12, 2003 5:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
irf2003
Veteran
Veteran


Joined: 10 Sep 2003
Posts: 1078

PostPosted: Fri Dec 12, 2003 7:41 pm    Post subject: Reply with quote

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:-
Code:

genkernel --config

try it


Last edited by irf2003 on Fri Dec 12, 2003 7:50 pm; edited 2 times in total
Back to top
View user's profile Send private message
ledskof
Apprentice
Apprentice


Joined: 22 Oct 2002
Posts: 209

PostPosted: Fri Dec 12, 2003 7:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mallrats
Guru
Guru


Joined: 15 Jul 2002
Posts: 414
Location: Cleveland Ohio

PostPosted: Fri Dec 12, 2003 7:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
irf2003
Veteran
Veteran


Joined: 10 Sep 2003
Posts: 1078

PostPosted: Fri Dec 12, 2003 7:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
ledskof
Apprentice
Apprentice


Joined: 22 Oct 2002
Posts: 209

PostPosted: Fri Dec 12, 2003 7:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
irf2003
Veteran
Veteran


Joined: 10 Sep 2003
Posts: 1078

PostPosted: Fri Dec 12, 2003 8:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
ledskof
Apprentice
Apprentice


Joined: 22 Oct 2002
Posts: 209

PostPosted: Fri Dec 12, 2003 8:09 pm    Post subject: Reply with quote

o, I misread. I thought he said it was pointing at r7. I see it now :D
Back to top
View user's profile Send private message
ewan.paton
Veteran
Veteran


Joined: 29 Jul 2003
Posts: 1219
Location: glasgow, scotland

PostPosted: Sat Dec 13, 2003 8:45 am    Post subject: Reply with quote

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
View user's profile Send private message
Skrot
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2003
Posts: 141
Location: Adelaide, Australia

PostPosted: Sat Dec 13, 2003 10:20 am    Post subject: Reply with quote

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
View user's profile Send private message
ewan.paton
Veteran
Veteran


Joined: 29 Jul 2003
Posts: 1219
Location: glasgow, scotland

PostPosted: Sat Dec 13, 2003 2:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
sethleon
Guru
Guru


Joined: 14 Dec 2003
Posts: 398
Location: Germany

PostPosted: Sun Dec 14, 2003 6:24 pm    Post subject: genkernel :( Reply with quote

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 :wink:
_________________
Mess with the best, die like the rest.
Back to top
View user's profile Send private message
Decker
Tux's lil' helper
Tux's lil' helper


Joined: 05 Oct 2003
Posts: 98
Location: Germany

PostPosted: Mon Dec 15, 2003 8:25 am    Post subject: Reply with quote

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
View user's profile Send private message
sethleon
Guru
Guru


Joined: 14 Dec 2003
Posts: 398
Location: Germany

PostPosted: Mon Dec 15, 2003 11:01 am    Post subject: Reply with quote

genkernel roots it ya,
but if you do not use it
/boot will not be mounted :wink:
_________________
Mess with the best, die like the rest.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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