Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel 2.6.1
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
nbrown
Tux's lil' helper
Tux's lil' helper


Joined: 26 Oct 2002
Posts: 140
Location: Somewhere in the NE

PostPosted: Fri Feb 06, 2004 2:57 pm    Post subject: Reply with quote

Thanks, but I already have MS-DOS Partition Type compiled in. Any other ideas?

-nbrown
Back to top
View user's profile Send private message
michaelb
l33t
l33t


Joined: 06 Jun 2002
Posts: 686
Location: Ann Arbor, MI

PostPosted: Fri Feb 06, 2004 5:08 pm    Post subject: Reply with quote

Are you mounting /boot before copying the new kernel image over? Are you sure?

I've seen more folks than I can count getting nailed by this when trying to upgrade kernels. The other biggies are, make sure the symlink is correct, ie /urs/src/linux actually points to the proper source tree, and making sure you are doing a complete, clean compile.

The next thing I would try is copy the known good config file you have for 2.4.20 to your home dir, then
Code:
# cd /urs/src/linux
# make mrproper
# cp ~/.config .
# make oldconfig
# make menuconfig
Go thru every single option in menuconfig to double and triple check that everything you want is compiled in, or set as a module, then compile again.
_________________
Behold, The power of SEARCH!
Back to top
View user's profile Send private message
nbrown
Tux's lil' helper
Tux's lil' helper


Joined: 26 Oct 2002
Posts: 140
Location: Somewhere in the NE

PostPosted: Fri Feb 06, 2004 6:33 pm    Post subject: Reply with quote

I tried the make oldconfig option. I didn't think there would be that big of a difference between 2.4.20 and 2.4.22, so I just did make oldconfig and then make dep etc. It didn't boot, so I went through each and every option step by step and it still wouldn't boot. I'm beginning to feel pretty stupid. There must be something simple that I"m missing, but I'm very sure that I have all of the needed hardware support compiled in. Btw, after I comiled my 2.4.22 kernel, I did a gvimdiff of the new .config and my working 2.4.20 .config and couldn't find anything suspicious.

Common errors that people have suggested that I have already compiled in:
/devfs
/devfs mount at boot
MS-DOS Style Partions
ext2 support
ext3 support (all my partitions are ext3)
IDE ATA hard drive support
VIA motherboard support


Can anyone think of anything else that might be throwing me off? The thing that really bugs me is the fact that 2.4.20 runs and 2.4.22 doesn't with the same options. I guess I can understand the 2.6 problems, but shouldn't those two be close enough? I'm getting close to giving up and just sticking with 2.4.20 or trying an install from scratch, but I'd really rather not.

-nbrown
Back to top
View user's profile Send private message
sheevan
n00b
n00b


Joined: 19 Dec 2002
Posts: 16

PostPosted: Sat Feb 07, 2004 12:22 am    Post subject: Same problem, but solved it Reply with quote

Hello all,
Well since this 2.6.0 beta, and all you want, is out, i never could get a kernel to work. Had the same problem : kernel panic can't load root blablabla.

well it's dumb but it is just an option that i have in my kernels 2.4.x, and that doesn't work the same with the 2.6.x series. i just remove the : file system -> partition types -> advances partition selection [ ]
I had the : Windows logical Disk Manger , option enable. But as it the only one in the list, I just disable the Advances partition selection.

Compiled the kernel, reboot and it works.... at last..

hope it helps...
:P :P :P :P
Back to top
View user's profile Send private message
nbrown
Tux's lil' helper
Tux's lil' helper


Joined: 26 Oct 2002
Posts: 140
Location: Somewhere in the NE

PostPosted: Mon Feb 16, 2004 2:26 am    Post subject: Reply with quote

I haven't been here in a while, but I finally had time to play with the kernel today and got it to work. The way I did it was to download the experimental 2.6 live-cd and use it's config. From there I'm slowing removing things, but I haven't quite pinpointed what the option was. If I figure it out I will let you all know.

-nbrown
Back to top
View user's profile Send private message
Mogelhead
n00b
n00b


Joined: 01 Mar 2004
Posts: 12
Location: Örebro, Sweden

PostPosted: Mon Mar 01, 2004 11:15 pm    Post subject: Reply with quote

michaelb wrote:
Okay, assuming you compiled your 2.6 kernel with the command
Code:
# make && make modules modules_install
you want to
Code:
# mount /boot
# cp /usr/src/linux-2.6.1-gentoo/arch/i386/boot/bzImage /boot/kernel-2.6
Then, in grub.conf, replace the word vmlinuz with kernel-2.6 and you should be good to go. You want to be using the bzImage of the 2.6 kernel with that setup, and you're not.


Yes! It solved my problem.

Every time I booted a message showed telling me Gentoo needs devsfs compiled into the kernel. I thought it was strange because I knew I compiled it in the second time. But that was not the problem, I forgot to mount /boot before copying the new kernel.

Thanks!
Back to top
View user's profile Send private message
bigsmoke
Tux's lil' helper
Tux's lil' helper


Joined: 09 Aug 2003
Posts: 92
Location: The city of Groningen in The Netherlands

PostPosted: Tue Mar 02, 2004 3:30 pm    Post subject: /sbin/installkernel Reply with quote

Yes, forgetting to mount /boot can be a real pain in the ass ...

I'm wondering how many people actually let the kernel install itself by using

Code:
make all modules_install install


I love it that way.
Since make install calls /bin/installkernel to do the actual work, I've modified /sbin/installkernel to mount and umount /boot before it copies the new kernel.

The script also runs mkboot, which sadly doesn't work with GRUB. Does anyone know a non-interactive way to install grub? I hate having to always go through the following motion:

Code:

# mount /boot
# grub

grub> root (hd1,1)
grub> setup

_________________
Gentoo's kind community
has build up an immunity
for the kind of rash
that makes others bash(1)
the newer GNU/Linux user,
a man(1) that is inapt
to flawlessly adapt,
and therefore called a luser.
Back to top
View user's profile Send private message
michaelb
l33t
l33t


Joined: 06 Jun 2002
Posts: 686
Location: Ann Arbor, MI

PostPosted: Tue Mar 02, 2004 6:04 pm    Post subject: Reply with quote

You only need to install grub once. After that it's just a matter of editing the grub.conf file.
_________________
Behold, The power of SEARCH!
Back to top
View user's profile Send private message
bigsmoke
Tux's lil' helper
Tux's lil' helper


Joined: 09 Aug 2003
Posts: 92
Location: The city of Groningen in The Netherlands

PostPosted: Tue Mar 02, 2004 8:03 pm    Post subject: Huh? Reply with quote

michaelb wrote:
You only need to install grub once. After that it's just a matter of editing the grub.conf file.


But when I make changes to grub.conf, don't I need to run setup in the grub shell to incorporate the changes?

Are you saying that I've been rerunning grub in vain for all this time? Does it read the grub.conf during boot-time? I must have been using LILO for too long, if I understand you right :?
_________________
Gentoo's kind community
has build up an immunity
for the kind of rash
that makes others bash(1)
the newer GNU/Linux user,
a man(1) that is inapt
to flawlessly adapt,
and therefore called a luser.
Back to top
View user's profile Send private message
michaelb
l33t
l33t


Joined: 06 Jun 2002
Posts: 686
Location: Ann Arbor, MI

PostPosted: Tue Mar 02, 2004 8:53 pm    Post subject: Reply with quote

That is correct. The only thing grub imbeds on the MBR is a pointer to the grub.conf file. That's what the whole Stage business is about. Stage 1 points to stage 2 (or stage 1.5, which in turn points to 2). Stage 2 is where the actual work is done, and it parses your grub.conf file on the fly. See the Grub Manual for more information.
_________________
Behold, The power of SEARCH!
Back to top
View user's profile Send private message
bigsmoke
Tux's lil' helper
Tux's lil' helper


Joined: 09 Aug 2003
Posts: 92
Location: The city of Groningen in The Netherlands

PostPosted: Tue Mar 02, 2004 9:09 pm    Post subject: Reply with quote

michaelb wrote:
That is correct. The only thing grub imbeds on the MBR is a pointer to the grub.conf file. That's what the whole Stage business is about. Stage 1 points to stage 2 (or stage 1.5, which in turn points to 2). Stage 2 is where the actual work is done, and it parses your grub.conf file on the fly. See the Grub Manual for more information.


Nice! I must have misunderstood that part of the manual (I've been reading the whole info manual at least twice). You make me a happy man! This completely made my day; I'm now much more impressed with GRUB than I already was 8)

Now I'm off to adopt the /sbin/installkernel script so that it automatically puts all the different kernel versions in /boot that match a simple expression, like "bzImage-*", in grub.conf... That'll be the icing for this cake.
_________________
Gentoo's kind community
has build up an immunity
for the kind of rash
that makes others bash(1)
the newer GNU/Linux user,
a man(1) that is inapt
to flawlessly adapt,
and therefore called a luser.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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