LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 12-05-2012, 12:08 AM   #1
Gu7g34r
LQ Newbie
 
Registered: Dec 2012
Posts: 4

Rep: Reputation: Disabled
Is it possible to make a Linux From Scratch distro on a raspberry pi


I have never actually completed a LFS distro so I will not say that I know that much about it but it seems to me that it is a perfect candidate for a raspberry pi distro.

I reasently read a review of linux on raspberry pi's. The reviewer said that there are remarkably few linux distros for it, although the ones that are there are full distros. Anyway I thought if that was the case it would be the perfect time to make a LFS distro on it.

Because source code does not care what arch you have, it is all taken care of by the compiler. You could use the exact same instructions for the pi as for a full desktop.

However on reading the LFS instructions it says that LFS is supposed to be used on an intel type cpu. Raspberry pi's use ARM cpus, which would make it inelligable according to what I read.

So can LFS work on Raspberry pi's or are they just too different?
 
Old 12-05-2012, 12:11 AM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,111

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
i don't see why it wouldn't, as long as you have a system that can serve as a host for the initial build of the base system.
 
Old 12-05-2012, 12:23 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,649
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
You may want to have a look at CLFS (Cross-Compiled Linux From Scratch), but the ARM port is currently under development.
CLFS: http://trac.cross-lfs.org/
Book for ARM-CLFS: http://cross-lfs.org/view/clfs-embedded/arm/
 
Old 12-05-2012, 11:48 PM   #4
Gu7g34r
LQ Newbie
 
Registered: Dec 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks

So it should be possible to make a LFS distro on a raspberry pi if I cross compile, although the ARM port is under development at the moment.
 
Old 12-06-2012, 11:24 AM   #5
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,111

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
cross compiling is one way, another way would be to simply find a bootable live distribution that has the appropriate development tools and do a standard LFS install
 
Old 12-06-2012, 04:49 PM   #6
jefro
Guru
 
Registered: Mar 2008
Posts: 12,073

Rep: Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518Reputation: 1518
I might be tempted to try using a different system using an emulator to build it then move it. Might not have enough space, ram and speed to do it on the PI.
 
Old 12-06-2012, 11:06 PM   #7
Gu7g34r
LQ Newbie
 
Registered: Dec 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
OK

frieza: there are Linux distros for raspberry pi's but most are turning into specialized distros. Also I thought that the source files used for LFS were intel cpu specific, I heard a rumor that they had assembler code in them.

jefro: I am poor and a dunce, so anything expencive or tricky is pretty much impossible for me, so I dont think I would be able to use an emulator.

I dont actually have a raspberry pi but I was thinking of getting one, that is why I posted this thread. But now I dont think I will get one. Maybe this post will help someone.
 
Old 12-06-2012, 11:23 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,649
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
Quote:
Originally Posted by Gu7g34r View Post
there are Linux distros for raspberry pi's but most are turning into specialized distros.
If you want to run an all purpose distribution on a Raspberry Pi just use Debian or Slackware (Armedslack).
 
Old 12-07-2012, 12:07 AM   #9
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,111

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
Originally Posted by Gu7g34r View Post
OK

frieza: there are Linux distros for raspberry pi's but most are turning into specialized distros. Also I thought that the source files used for LFS were intel cpu specific, I heard a rumor that they had assembler code in them.

jefro: I am poor and a dunce, so anything expencive or tricky is pretty much impossible for me, so I dont think I would be able to use an emulator.

I dont actually have a raspberry pi but I was thinking of getting one, that is why I posted this thread. But now I dont think I will get one. Maybe this post will help someone.
not that i'm aware of, i have built an lfs distro on an X86_64, though i believe the live cd was intel/x86-64 specific, the question would be finding a general purpose distribution capable of hosting the initial build of the kernel/gcc/toolchain, though as pointed out, this may take a while on a relatively slow processor that is the ARM in a raspberry pi
 
Old 12-13-2012, 08:30 PM   #10
Gu7g34r
LQ Newbie
 
Registered: Dec 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you that clears every thing up for me.
 
  


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
I want to make a linux from scratch mraisy Linux From Scratch 1 04-24-2005 02:38 PM


All times are GMT -5. The time now is 10:13 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration