Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Build 64 bit kernel on 32 bit kernel

Status
Not open for further replies.

ady2012

MIS
Jun 6, 2010
108
US
I want to build 64 bit kernel on 32 bit kernel.

Any suggestion to do it ?
 
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.
 
which dev tools did I need it before I ompiled 64bit kernel ?
Because I can compile 32 bit kernel on 32 bit Linux os.
Thanks
 
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.

Annihilannic.
 
Ok thanks.I will install 64 bit linux distro and try to compile new 64 bit kernel on 64 bit linux os.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top