LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 06-10-2015, 11:33 AM   #1
gavicharla
LQ Newbie
 
Registered: Jun 2015
Posts: 1

Rep: Reputation: Disabled
Post how to make linux distro from scratch


i know this question has been asked many times ...yet there is no clear answer ...i am a c,c++,python developer with intermediate programming skills ..i want to develop my own linux distro that can potentially run on low powered system yet gives a powerful experience ...hardware examples are like chip(the 9$ computer) and raspberry pi the first version ..so to extend computer reach to villages ... so do please answer my question pretty informatively ..thanks in advance
 
Old 06-10-2015, 12:06 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Quote:
...yet there is no clear answer ...
yep..there is NO "that's the way to do it"...you have...(tadaaaa) choice.
Buildroot, unpack a distro and go from there or...go the LFS way...
I unpacked the ISO of Tiny core and went from there. I also tried the LFS aproach...gave neat results...
The question remains however: "to what end?"...because, there are quite some distros to choose from already
Thor

Last edited by ButterflyMelissa; 06-10-2015 at 12:08 PM.
 
1 members found this post helpful.
Old 06-10-2015, 12:08 PM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Just so you know, this is a very big topic.

First start by searching for hits on the term "embedded linux development" there are tons of references, and I don't have a real preference except to say don't buy swamp land in Florida as a reaction to any advertisement search hits. The better point there is "don't buy anything" all information is free, and while there also is information available for purchase, I feel you should review the voluminous free information first before you decide to purchase content, so you can evaluate the worth of any purchased content.

What you'll find is that the total summary of running Linux is defined as using:
  1. Bootloader
  2. Linux Kernel
  3. Root File System (RFS)
Then it becomes the varieties of:
  1. How to select a bootloader
  2. Whether to build/customize a bootloader or use a standard one
  3. How to customize the Linux kernel
  4. How to build the Linux kernel
  5. How to customize drivers either by selection, configuration, or modification/re-compilation
  6. How to establish or obtain a root file system and manage it
  7. That this all matters on a "per processor" basis a moderate amount, especially when you consider the $9 computer which is ARM based versus x86 architecture
At some point during all this, you should install a Linux desktop distribution to a full up system computer, such as a moderately modern laptop or a desktop system. A very helpful package to install is build-essentials, and it may be already on there depending on the distribution. Then you can learn how to compile, how to use the tools for building and understand how this process works. You can also read up on how to just recompile the kernel for the particular distribution you have installed and play around with that to ensure you understand enough about the topic.

Next I'd purchase one of the cheap, hobbyist boards such as the Raspberry Pi or the BeagleBone Black and use the kernel and distribution they provide. Install the tools so that you can recompile that kernel. Install the tools so that you can recompile that bootloader. Learn about how to build your own RFS and place it on that hobby target.

Along the way you'll have numerous, more specific questions and I encourage you that once you start getting these more specific questions to absolutely create more threads.
 
1 members found this post helpful.
Old 06-11-2015, 04:18 AM   #4
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
You can try CLFS (Cross Linux From Scratch) to build your own base system. And follow CBLFS/BLFS plus help from other projects and web search to build a custom full fledged distro.
 
1 members found this post helpful.
  


Reply



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
Is it possible to make a Linux From Scratch distro on a raspberry pi Gu7g34r Linux From Scratch 9 12-13-2012 07:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 11:40 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