LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-11-2014, 03:48 AM   #1
ayyasprings
Member
 
Registered: Aug 2014
Posts: 118

Rep: Reputation: Disabled
Root file system components adding tutorial


Hi,

Is there any detailed (nearest to be complete reference) tutorial explaining how to add root file system components for an embedded board which has to be cross compiled, before creating rootfs image and where can i get that? If multiple sources satisfying that is also ok.Please help!

Last edited by ayyasprings; 09-11-2014 at 08:56 AM. Reason: added additional information for the doubt
 
Old 09-12-2014, 04:41 PM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,920
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Member Response

Hi,

ARM Cross Compilation
;
Quote:
Building an ARM GCC Toolchain from Source

This article will explain how to build a cross compiling toolchain for the ARM platform and how to cross compile various programs and libraries.
Before I go ahead and build the toolchain for arm from scratch, I just wanted to introduce some of the precompiled GNU GCC toolchains available for ARM such as CodeSourcery G++ Lite or Yagarto, using a precompiled toolchain leaves you at the mercy of someone else’s whims and fancies about what features to include, what libraries to use, etc. Depending on precompiled toolchains also means that you’re depending on their authors to regularly update them when new releases of GCC become available
The above reference should get you started.
Hope this helps.
Have fun & enjoy!
 
Old 09-15-2014, 03:10 AM   #3
ayyasprings
Member
 
Registered: Aug 2014
Posts: 118

Original Poster
Rep: Reputation: Disabled
Hi onebuck,

I dont need cross compilation tutorial. I want to add the components like libraries, device files, busybox, binaries in the root filesystem and build the root filesystem image and port into the embedded hardware.

If anybody knows the source please help.
 
Old 09-15-2014, 10:28 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,920
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Member Response

Hi,

You can do the cross on a faster host then move & setup with the new kernel, libs, modules onto the embed system then setup configs as necessary. Or just build on the much slower embed. You should develop the toolchain to enhance usage on the embed or grab the manufactures/supplier's set.
 
Old 09-15-2014, 11:01 AM   #5
ayyasprings
Member
 
Registered: Aug 2014
Posts: 118

Original Poster
Rep: Reputation: Disabled
Hi onebuck,

I have cross compilation toolchain, with that I have built the bootloader ,kernel image and modules in the host system already before my post of this thread. Now I need to add components to root filesystem.So I need detailed tutorial(s) for that and then I have to create rootfs image.

Please help!
 
Old 09-15-2014, 12:24 PM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,920
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Member Response

Hi,

As I said before "You can do the cross on a faster host then move & setup with the new kernel, libs, modules onto the embed system then setup configs as necessary." After copying the necessary kernel files/directories libs,modules to the embed you would then need to reconfigure the bootloader/makerootfs. Or just compile on the embed which will take a much longer period. You should be able to modify the 'MAKEFILE' Line to show 'EXTRAVERSION=' something unique so that you do not modify the base install. This can be done on a faster host or the embed to produce a unique kernel and libs with modules. After compile you would then need to configure the boot loader/makerootfs to reflect the desired configuration.

Old for rootfs you can look at rootfs utility scripts;
Quote:
embedded rootfs utility Behan Webster Tue, 29 Jul 2008 19:29:36 -0700

A quick announcement of the release of elbs, or the "Embedded Linux Build System" (it seemed like a good name at the time I started writing it...) So far it's just a few utilities that I wrote to make a few of my own projects easier.
If you already have the toolchain for the embed then some form of rootfs creation should be available for the embed or on a host pc.

Hope this helps.
 
Old 11-06-2014, 08:19 AM   #7
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,874
Blog Entries: 13

Rep: Reputation: 4928Reputation: 4928Reputation: 4928Reputation: 4928Reputation: 4928Reputation: 4928Reputation: 4928Reputation: 4928Reputation: 4928Reputation: 4928Reputation: 4928
As others have said, you likely already have a set of RFS construct utilities as part of a toolchain.

This isn't a situation where one can randomly offer over some complete tutorial which is perfectly customized for your particular situation and environment. You haven't mentioned the processor, the kernel version, or anything except that it's for an embedded board. Offerers of advice can come close providing you offer some information on what particular board you're working with as well as the environment.

How is your RFS created now? How do you create a new disk for a new system?
 
  


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 would like a file system tutorial 009jim Linux - Newbie 4 06-19-2014 09:02 AM
Adding a root mirror drive to existing RHEL5 system wkrossman Red Hat 5 11-11-2010 09:31 AM
Adding optional components to Fedora Core 5 from CD-Rom or CD-Images MRMadhav Linux - Software 6 04-23-2006 01:04 AM
Adding java components dwight Programming 2 03-25-2005 04:23 PM
Boot Error: Root file system /dev/root adtomar Linux - Networking 0 12-27-2004 11:50 AM

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

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