Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Uname shows wrong kernel version!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
bd
Apprentice
Apprentice


Joined: 12 Mar 2003
Posts: 172
Location: Onsala, SWEDEN

PostPosted: Wed Mar 19, 2003 6:09 pm    Post subject: Uname shows wrong kernel version! Reply with quote

Hi!

When i run "uname -r" it says that i got the 2.4.18 kernel, but i dont. :evil:
I use the 2.4.20-gentoo-r1 kernel!! This makes a lot of trouble for me. As an exampe, I cant load modules because modprobe said that the dependencies folder didn't exist.
:idea: It didnt, so I made a symbolic link from 2.4.18 to 2.4.20-gentoo-r1 in that folder. That gives me a message saying that the modules is wrong kernel version. :(

What should i do?


Thanks in advance!

Sorry for my English! :lol:


Last edited by bd on Wed Mar 19, 2003 6:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
gilesjuk
Guru
Guru


Joined: 11 Feb 2003
Posts: 412
Location: Staffordshire, UK

PostPosted: Wed Mar 19, 2003 6:12 pm    Post subject: Re: Uname shows wrong kernel version! Reply with quote

what does

more /proc/version

say?
_________________
^<^>^<^>^
G. Jones
-=-=-=-=-=-
Back to top
View user's profile Send private message
bd
Apprentice
Apprentice


Joined: 12 Mar 2003
Posts: 172
Location: Onsala, SWEDEN

PostPosted: Wed Mar 19, 2003 6:20 pm    Post subject: Reply with quote

more /proc/version gives me
Code:
Linux version 2.4.18 (root@midas) (gcc version 2.95.3 20010315 (release)) #4 Fri May 31 01:25:31 PDT 2002


:?: Why is it root@midas???

Thanks in advance!!
Back to top
View user's profile Send private message
gilesjuk
Guru
Guru


Joined: 11 Feb 2003
Posts: 412
Location: Staffordshire, UK

PostPosted: Wed Mar 19, 2003 6:45 pm    Post subject: Reply with quote

Root@midas is the username that was logged in when building the kernel, midas being the machine that built it.

You must be using someone else's kernel.

Your lilo or grub.conf isn't pointing to your kernel.

You did make dep && make clean modules modules_install bzImage
??

then copied the bzImage from /usr/src/linux/arch/i386/boot to /boot?
_________________
^<^>^<^>^
G. Jones
-=-=-=-=-=-
Back to top
View user's profile Send private message
bd
Apprentice
Apprentice


Joined: 12 Mar 2003
Posts: 172
Location: Onsala, SWEDEN

PostPosted: Wed Mar 19, 2003 7:17 pm    Post subject: Reply with quote

That isn't my machine-name.

Yes i did:
Code:
make dep && make clean bzImage modules modules_install
cp /usr/src/linux/arch/i386/boot/bzImage /boot

and yes i mounted my boot-partition before.

I also tried to:
Code:
make mrproper
before.


If you look in https://forums.gentoo.org/viewtopic.php?t=41602 you will see that i cant boot without a Slackware bootdisc. Maybe i use another kernel when i do so and the fault is in my kernel. I dont know. All this seems strange to me.

THANKS IN ADVANCE!!!!!!!
Back to top
View user's profile Send private message
gilesjuk
Guru
Guru


Joined: 11 Feb 2003
Posts: 412
Location: Staffordshire, UK

PostPosted: Wed Mar 19, 2003 7:21 pm    Post subject: Reply with quote

Erm, if you're using a bootdisc you're using the kernel on the bootdisk.

Make another bootdisk and it will have your kernel on it.
_________________
^<^>^<^>^
G. Jones
-=-=-=-=-=-
Back to top
View user's profile Send private message
arkhan_jg
Apprentice
Apprentice


Joined: 18 Mar 2003
Posts: 199
Location: Dorset, UK

PostPosted: Wed Mar 19, 2003 7:32 pm    Post subject: Reply with quote

But of course, the gentoo kernel is buggered, which is why he's using a slackware disk...

Which also explains why the slackware boot disk works - it's NOT using the gentoo kernel.

All I can suggest is to
a) have another go at recompiling the gentoo kernel, paying special attention to the processor type

or

b) use the kernel off the livecd rc1 that works

or possibly

c) check the slackware boot disk grub file, look for kernel options like noapic, and try those on the gentoo kernel
_________________
make menuconfig not war
Back to top
View user's profile Send private message
gilesjuk
Guru
Guru


Joined: 11 Feb 2003
Posts: 412
Location: Staffordshire, UK

PostPosted: Wed Mar 19, 2003 7:43 pm    Post subject: Reply with quote

Then don't use the Gentoo kernel.

I would be more inclined to blame GCC for the problems, Slackware uses a prehistoric version of GCC compared to Gentoo as that version is "tried and tested".
_________________
^<^>^<^>^
G. Jones
-=-=-=-=-=-
Back to top
View user's profile Send private message
bd
Apprentice
Apprentice


Joined: 12 Mar 2003
Posts: 172
Location: Onsala, SWEDEN

PostPosted: Wed Mar 19, 2003 8:28 pm    Post subject: Reply with quote

Hmmm...

:?: When i boot from the slackware boot-floppy and tells it to boot from my gentoo partitions the booting looks like a gentoo boot. I dont know how much in the booting that is kernel but when i boot slackware doesn't have those green "boxes" with a OK inside but the gentoo-boot has. So is it the slackware or the gentoo kernel i use?

:?: When i recompile the kernel i can't find a specific option for pentium 2. What things are i supposed to choose. I use the gentoo-sources, shall i try another, if so, which?

:?: What from the rc1disc do i need to copy. Is it the whole folder in /usr/src and if it is shall i make a new symlink to linux from the "new" kernel? Do i need to run mrproper before i compile the new kernel?

Thanks for all answers, it looks like i finally can use Gentoo!! Im happppy!!!! :lol:

And yes, I'm not good at english.
Back to top
View user's profile Send private message
K0byB0y
n00b
n00b


Joined: 01 Mar 2003
Posts: 56
Location: New York, NY

PostPosted: Wed Mar 19, 2003 9:11 pm    Post subject: Reply with quote

You might also want to make sure that the symbolic link "linux" under /usr/src points to the correct linux sources. Also when you do a "make menuconfig" on the upper left corner of the screen it should say the kernel version you are configuring.
_________________
perl -e 'print pack("H*", "4B6F6279426F79407961686F6F2E636F6D")'
Back to top
View user's profile Send private message
bd
Apprentice
Apprentice


Joined: 12 Mar 2003
Posts: 172
Location: Onsala, SWEDEN

PostPosted: Wed Mar 19, 2003 9:49 pm    Post subject: Reply with quote

Thanks!
Back to top
View user's profile Send private message
Sierra
n00b
n00b


Joined: 13 Mar 2003
Posts: 48

PostPosted: Wed Mar 19, 2003 11:45 pm    Post subject: Reply with quote

There should be an option in the kernel for Pentium II--look for Pentium Pro/Celeron/Pentium II.

If you are having trouble with the gentoo-sources kernel, try vanilla-sources (the stock kernel). It doesn't have as much optimization, but may be easier to start with.
Back to top
View user's profile Send private message
bd
Apprentice
Apprentice


Joined: 12 Mar 2003
Posts: 172
Location: Onsala, SWEDEN

PostPosted: Thu Mar 20, 2003 6:30 am    Post subject: Reply with quote

Do i need to uninstall the gentoo.sources in some way or is it just to install vanilla?

Thanks in advance!
Back to top
View user's profile Send private message
bd
Apprentice
Apprentice


Joined: 12 Mar 2003
Posts: 172
Location: Onsala, SWEDEN

PostPosted: Fri Mar 21, 2003 7:27 pm    Post subject: Reply with quote

I made it with vanilla. Cant find a choise for devfs support though. Is there support for devfs in the kernel.

THANKS FOR ALL THE HELP!!!

Cant wait until all my stuff is emerged.
Back to top
View user's profile Send private message
Regor
Guru
Guru


Joined: 06 Aug 2002
Posts: 545
Location: 39° 2' 48" N, 120° 59' 2" W

PostPosted: Sat Mar 22, 2003 9:19 am    Post subject: Reply with quote

File systems -> /dev file system support
Back to top
View user's profile Send private message
bd
Apprentice
Apprentice


Joined: 12 Mar 2003
Posts: 172
Location: Onsala, SWEDEN

PostPosted: Wed Jun 18, 2003 7:50 pm    Post subject: Reply with quote

Well, i had that selected, but when i was booting somewhere i read that i hadn't activated devfs support.

After going back to winxp :twisted: and then returning to Gentoo (the keyboard didn't like my vomits when windows wanted to reboot all the time) everything worked just fine.

THANKS FOR ALL HELP I'VE GOT FROM YOU ALL!!
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
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