LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-03-2007, 07:59 AM   #1
kanwar_rajan
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora Core 6 x64 , Bluewhite64
Posts: 32

Rep: Reputation: 15
Porting a Linux disto to a new architecture - how


Hello,
I posted this query in the Linux_General forum, but I guess, this will be a more appropriate one.

Can anybody guide me to some documents, as to how to port a Linux Distribution to a new architecture.

For example, if some distribution is not available for a particular architecture (ex. Slackware on x86_64), then I understand I can get the sources for all the packages in the distribution.

After that, how to proceed with the recompilation, packaging etc..

Regards,
Kanwar
 
Old 07-03-2007, 06:45 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
You would either compile them on a machine of said architecture, or cross compile them to the target arch from another system. Then package everything up so it can be easily installed, and combine it all with an appropriate kernel.

Of course, that is the very simple version of it. You are looking at hundreds of hours of work here. Depending on how complicated you want to get, you could easily exceed the point where a single person could handle it within an acceptable time-frame.

As for documentation, this is not the sort of thing that is covered in a single document. You first need to get a good handle on the basic principles and techniques of compiling software from source (with special emphasis on cross-compilation and optimization) and packaging software into installable binary packages. The latter will depend on what distribution you are trying to port over. Slackware for example uses a very simple package format (you could even create Slackware packages with standard Linux commands) but other distributions are considerably more complex.

Last edited by MS3FGX; 07-03-2007 at 06:50 PM.
 
Old 07-04-2007, 09:40 AM   #3
kanwar_rajan
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora Core 6 x64 , Bluewhite64
Posts: 32

Original Poster
Rep: Reputation: 15
thanks for the reply...

actually.. i understand about the concepts of the package compiling etc..

i was actually unable to locate the installer sources... i guess those will also need to be tweaked or modified ..

regarding the large number of packages... i am planning to strip down the distro and remove the packages that are not required..

so, can you lead me to the installer sources.. so that i can start with this and understand and plan the strategy to be followed...

regards,
kanwar
 
Old 07-04-2007, 07:59 PM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
The source for each program is going to be located on the site for that particular program. You are going to have to do a lot of leg work to grab everything.

Unless you are basing it of a distribution that provides the source for each program, like Slackware (discs 3 and 4). Actually you could use the source included with Slackware to build pretty much anything you want, as the source is not patched or modified in Slackware, as it is with some other distributions.
 
Old 07-07-2007, 06:48 PM   #5
Vitalie Ciubotaru
Member
 
Registered: Dec 2005
Location: Osaka, Japan
Distribution: Ubuntu Trinity
Posts: 153

Rep: Reputation: 30
It's not exactly the answer to your question, but as you posted in the LFS forum ...
You can get a very good idea of cross-compiling a very simple Linux system by looking at Cross Linux From Scratch
 
  


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
adding new disto to the existing xp and linux micro_xii Linux - Newbie 7 02-25-2007 07:02 PM
Will I Be OK With A Newbie Guide To Fedora Core 6 As First Linux Disto? aaron4katie Fedora 14 12-30-2006 07:31 AM
LXer: Porting Unix apps to Linux: Tackling architecture and platform ... LXer Syndicated Linux News 0 07-10-2006 05:03 PM
Can't get linux (Disto SUSE 8.2 and XP to dual boot, it goes straight into Linux unrealhippie Linux - Distributions 15 05-07-2004 10:49 AM
Really need help finding Linux disto fast mogwhy Linux - Distributions 5 03-02-2003 01:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:07 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration