problem with my kernel
Hi to all
I am tring to install gentoo 3.2.1-gentoo-r2 and i have problem with my kernel. When i execute this command: time make -j2 i have this error usr/initramfs_data.S:1:0: error: CPU you selected does not support x86-64 instruction set I have tried all the processor families but i have the same error :( I have pentium r cpu Here is my cpu: Code:
processor : 0 |
Either select a proper processor family under "Processor Type and Features" in kernel config (you could use generic x86-64) or post the config you're trying to compile that kernel with so we could see what may be the problem.
Does it compile with default config? |
Hi :)
your gcc could help to find the right CPU model for you :) Try execute: Quote:
Hope it helps... |
Are you using a source tree that you previously used in some other architecture? This can happen sometimes when you've used x86 on a 64 bits cpu, and later you decide to migrate.
Leftovers could be cleaned up with "make clean", or more in depth, with "make mrproper", but that will erase your .config file as well, so be sure to back it up. If you want to use it, in any case, make sure you use "make oldconfig" after putting it back after the cleaning, to fix any inconsistency. If that's not it, I would erase the whole tree, and redownload and install it again. Of course, always save your .config if you tuned it yourself. Otherwise, just use genkernel. |
what is in your /etc/make.conf
|
Settings in make.conf only are only for portage. Just invoking "make" in command line won't source that file. So, the CFLAGS in there are really not relevant (and that error message has nothing to do with them anyway).
|
This is what I do know, I can download a kernel from kernel.org and place it in puppylinux run make menuconfig and get every processor from i386 to the 64 bit processors, take the same clean kernel put it on slackware64 or any other 64bit system and only get options for 64bit processors. So if the op has a 32bit processor and only getting options for 64bit processors then the options for processor has to be determined by something external to the kernel itself such as a make configuration file of some sort. When initially installing gentoo the type of arch installing on is set in the /etc/make file, so was thinking that might be the problem.
|
Quote:
Of course, it could also be just regular file system corruption, or a manually messed .config file. I can't be sure. |
Are you installing Gentoo or is this a running installation and is it 32bit or 64bit. If this an installation gone wrong, what is your host system 32bit or 64bit. I can some sort of duplicate the error the op is getting by using
Quote:
Quote:
|
Quote:
Code:
# These settings were set by the catalyst build script that automatically |
But, as the output in your first post shows, your kernel sources are at least partly configured for x86_64. I already told you above the reasons why this can happen, and the procedures on how to fix this. You could also just try "make oldconfig". The script might or might not work depending on what the exact problem is. In any case, if it doesn, it will probably ask you a few things so it can configure your kernel properly.
|
Quote:
Could you tell me exactly what i have to do??? |
What did you do to configure your kernel?
Did you use genkernel as suggested in the handbook, or are you using some other method? Did you configure it by hand or did you copy it from some other installation? Is Gentoo already installed or are you still in the trance of installing it? I really need some input to be able to help you. |
Quote:
I cofigured the kernel by hand!! I have downloaded this gentoo architecture amd64!!! Is it the right achitecture for my cpu??? |
Quote:
Code:
make menuconfig Quote:
What I'd do, is the following. First, erase the whole kernel tree. If you did the chroot step, that should usually be /usr/src/linux. Then, install the sources again. That'd be: Code:
emerge gentoo-sources |
All times are GMT -5. The time now is 05:12 PM. |