LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-07-2005, 02:04 AM   #1
Basel
Member
 
Registered: Feb 2004
Location: United States
Distribution: Ubuntu 10.10
Posts: 319

Rep: Reputation: 30
Question How can I cross compile the kernel?


Hello,

Could anyone one help me to cross compile kernel 2.6.13 on Slackware 10.1? I am currently building LFS-7.0-cross-lfs-20050905 and I need a crossed compiled kernel to continue.
 
Old 09-07-2005, 04:23 AM   #2
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
I take it you're still trying to compile an x86_64 system? =)

For cross compilation, try here: http://kegel.com/crosstool/

Make sure you read the documentation carefully. It's all there. Hell, it'll even make you a true canadian-cross if you want it to!

For x86 --> x86_64 try here:

ftp://ftp.cs.tohoku-gakuin.ac.jp/pub...How2Make.amd64

I'm 90% sure that's the page that finally got my system running on a 64-bit kernel *and* that had a fully native 64-bit toolchain. I ballsed up somewhere after getting it running, however, which is why I moved on to Slamd64 (see here: http://www.kaear.co.uk/projectdisp.asp?ID=59), but in theory it'll work.

Typically I read this board at work without my home favourites - so I'm always forgetting the links I've used in the past (that are stored at home).

Don't forget to apply the right patches for the toolchain you're building, and also, be aware that the native toolchain (the versions) you're using to build with will affect what version of new toolchain you can build.

Good luck,

- Piete.
 
Old 09-07-2005, 04:51 AM   #3
Basel
Member
 
Registered: Feb 2004
Location: United States
Distribution: Ubuntu 10.10
Posts: 319

Original Poster
Rep: Reputation: 30
Thanks Piete for your help.

I think I followed the wrong guide for building LFS and I ended up with this problem. I followed the instructions under Version 7.0-cross-lfs-20050902-x86_64-Multilib when I should have followed the instructions under Version 7.0-cross-lfs-20050902-x86 since my build system is x86.
Please correct me if I am wrong.
 
Old 09-07-2005, 05:44 AM   #4
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
That depends what the goal is.

If you want to go from an x86 host system to an x86_64-LFS system, then 64bit Multilib looks good.

If you just want the experience of LFS, then, yeah, it looks like you're reading the wrong manual =)
 
Old 09-07-2005, 06:06 AM   #5
Basel
Member
 
Registered: Feb 2004
Location: United States
Distribution: Ubuntu 10.10
Posts: 319

Original Poster
Rep: Reputation: 30
Thanks again Piete,

In fact I managed to build LFS 6.1 last week.
As of Version-70, I tought that the x86 is for systems that run a 32bit OS but I was wrong. Do you recommend me to start with a pure 64 bit first or to continue with the multilib system.
 
Old 09-07-2005, 06:23 AM   #6
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
Again, it depends on the goal. If you've already built LFS, then you probably don't need to build a newer version from scratch (that would be x86 only, assuming your host system was 32-bit, ie: Slackware).

Building a pure 64 system is easier done from a 64-bit host system. So I would advise hacking on with your multilib version to get a system running that can run 64-bit instructions before moving on.

You'll end with a bi-arch system with multilib, which in my opinion is no bad thang!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel cross-compile(i386 to sparc) jiyun0121 Debian 1 10-20-2005 07:00 AM
How to cross compile? jiyun0121 Linux - General 3 09-01-2005 06:15 PM
Cross Compile Kernel. zaicheke Linux - General 1 01-10-2005 11:39 PM
Kernel Cross-Compile pentium->i486 marcelocp Slackware 0 10-20-2004 02:22 PM
How to cross-compile? karfei00 Linux - Laptop and Netbook 2 06-03-2004 09:56 AM


All times are GMT -5. The time now is 09:13 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration