View previous topic :: View next topic |
Author |
Message |
bd Apprentice
Joined: 12 Mar 2003 Posts: 172 Location: Onsala, SWEDEN
|
Posted: Wed Mar 19, 2003 6:09 pm Post subject: Uname shows wrong kernel version! |
|
|
Hi!
When i run "uname -r" it says that i got the 2.4.18 kernel, but i dont.
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.
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!
Last edited by bd on Wed Mar 19, 2003 6:15 pm; edited 1 time in total |
|
Back to top |
|
|
gilesjuk Guru
Joined: 11 Feb 2003 Posts: 412 Location: Staffordshire, UK
|
Posted: Wed Mar 19, 2003 6:12 pm Post subject: Re: Uname shows wrong kernel version! |
|
|
what does
more /proc/version
say? _________________ ^<^>^<^>^
G. Jones
-=-=-=-=-=- |
|
Back to top |
|
|
bd Apprentice
Joined: 12 Mar 2003 Posts: 172 Location: Onsala, SWEDEN
|
Posted: Wed Mar 19, 2003 6:20 pm Post subject: |
|
|
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 |
|
|
gilesjuk Guru
Joined: 11 Feb 2003 Posts: 412 Location: Staffordshire, UK
|
Posted: Wed Mar 19, 2003 6:45 pm Post subject: |
|
|
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 |
|
|
bd Apprentice
Joined: 12 Mar 2003 Posts: 172 Location: Onsala, SWEDEN
|
Posted: Wed Mar 19, 2003 7:17 pm Post subject: |
|
|
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: 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 |
|
|
gilesjuk Guru
Joined: 11 Feb 2003 Posts: 412 Location: Staffordshire, UK
|
Posted: Wed Mar 19, 2003 7:21 pm Post subject: |
|
|
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 |
|
|
arkhan_jg Apprentice
Joined: 18 Mar 2003 Posts: 199 Location: Dorset, UK
|
Posted: Wed Mar 19, 2003 7:32 pm Post subject: |
|
|
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 |
|
|
gilesjuk Guru
Joined: 11 Feb 2003 Posts: 412 Location: Staffordshire, UK
|
Posted: Wed Mar 19, 2003 7:43 pm Post subject: |
|
|
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 |
|
|
bd Apprentice
Joined: 12 Mar 2003 Posts: 172 Location: Onsala, SWEDEN
|
Posted: Wed Mar 19, 2003 8:28 pm Post subject: |
|
|
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!!!!
And yes, I'm not good at english. |
|
Back to top |
|
|
K0byB0y n00b
Joined: 01 Mar 2003 Posts: 56 Location: New York, NY
|
Posted: Wed Mar 19, 2003 9:11 pm Post subject: |
|
|
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 |
|
|
bd Apprentice
Joined: 12 Mar 2003 Posts: 172 Location: Onsala, SWEDEN
|
Posted: Wed Mar 19, 2003 9:49 pm Post subject: |
|
|
Thanks! |
|
Back to top |
|
|
Sierra n00b
Joined: 13 Mar 2003 Posts: 48
|
Posted: Wed Mar 19, 2003 11:45 pm Post subject: |
|
|
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 |
|
|
bd Apprentice
Joined: 12 Mar 2003 Posts: 172 Location: Onsala, SWEDEN
|
Posted: Thu Mar 20, 2003 6:30 am Post subject: |
|
|
Do i need to uninstall the gentoo.sources in some way or is it just to install vanilla?
Thanks in advance! |
|
Back to top |
|
|
bd Apprentice
Joined: 12 Mar 2003 Posts: 172 Location: Onsala, SWEDEN
|
Posted: Fri Mar 21, 2003 7:27 pm Post subject: |
|
|
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 |
|
|
Regor Guru
Joined: 06 Aug 2002 Posts: 545 Location: 39° 2' 48" N, 120° 59' 2" W
|
Posted: Sat Mar 22, 2003 9:19 am Post subject: |
|
|
File systems -> /dev file system support |
|
Back to top |
|
|
bd Apprentice
Joined: 12 Mar 2003 Posts: 172 Location: Onsala, SWEDEN
|
Posted: Wed Jun 18, 2003 7:50 pm Post subject: |
|
|
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 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 |
|
|
|