Sure, my computer supported 64 bit kernel.
If I installed 32 bit kernel.
How can I compile new 64 bit kernel on 32 bit kernel?
Because I want to custom linux kernel from kernel source code.
Thanks
As Ben tried to point out to you, even if the hardware supports the 64 bit instruction set, you need to be running a set of development tools that is 64 bit aware. This includes not only the compiler and linker, but also all of the support libraries.
With you mention of wanting to build a custom Linux kernel, my suggestion would be to look at the book Linux From Scratch, LFS. The book shows you the steps required to cross-compile and build (which is what you are wanting to do) a Linux system. It will show you how to get the proper development tools and how to create the environment that is isolated from your existing 32 bit system.
All of them! Compiler, linker, all dependent libraries, etc.
Seriously, this is not a task for the faint-hearted... unless you know what you're doing or are prepared to spend a lot of time learning and following documents like LFS (as Noway2 mentioned), you would be much better off installing a 64-bit system in the first place, or using a LiveCD as BBB suggested.
It is far too complicated for someone to describe how to set up a cross-compilation environment in a few forum posts here. I wouldn't attempt it myself unless the target platform was something that I couldn't install Linux on already.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.