From: Behan Webster <behanw@websterwood.com>
To: linux-embedded@vger.kernel.org
Subject: embedded rootfs utility
Date: Tue, 29 Jul 2008 22:18:37 -0400 [thread overview]
Message-ID: <488FCF7D.5010005@websterwood.com> (raw)
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.
However, most notably it contains a utility called "elbs-rootfs" which
makes it easy to create an embedded rootfs for any architecture
supported by the Debian projecy (or Ubuntu Linux). The idea is to get a
rootfs up and working quickly via nfs (or a flash drive) which allows
you to install any debian package and/or to do native development. This
is (not yet) meant as a tool to make your final rootfs fit on a small
flash partition.
For those of you who are interested, it does the following: builds a
first stage debootstrap directory using a dist/mirror of your choice,
and then tweaks it so you can boot it natively to be able to run the
second stage debootstrap scripts. Yes, you can do all these things
manually, however, this does it all for you in a few minutes (with
reasonable defaults for available options). The only annoying bit is it
must be run as root, as it needs to be able to set file
permissions/ownerships and such.
For example (as root):
# elbs rootfs --arch mips --baud 19200 --dist etch /nfs/myrootfs
I: Building rootfs in /nfs/myrootfs
I: Installing etch/mips from http://http.us.debian.org/debian
<snip>
I: debootstrap succeeded
I: MAKEDEV in /nfs/myrootfs/dev
<snip>
I: create /nfs/myrootfs/etc/group
Boot your target with /nfs/myrootfs as your rootfs, then run the
finish script on the target
The directory /nfs/myrootfs will now contain a stage-one (unconfigured)
debootstrap installation of arch mips from debian/etch, modified to
allow you to connect to a serial console ttyS0 at 19200 baud (as
specified on the command line above).
You then need to boot your target using this rootfs and run the
finish.sh script which will complete the installation.
# sh /finish.sh
You should now have a fully configured rootfs for your target which is
capable of native compiling (amongst other things).
You can find elbs at http://debian.websterwood.com/elbs/
The help text can be found here
http://debian.websterwood.com/elbs/elbs-rootfs.html
Alternatively, for you Debian/Ubuntu users, add these to your
sources.list and # apt-get install elbs
deb http://debian.websterwood.com/ sid main
or
deb http://debian.websterwood.com/ hardy main
For those of you at OLS2008 who attended the MIPS or CELF BoFs, this is
the utility I promised I would release.
I hope some of you find this helpful.
Yes, I know this is, in principal, very similar to what emdebian's
emsandbox does. In my defense, I wasn't aware of emsandbox when I wrote
this, and whereas emsandbox uses special emdebian packages, elbs-rootfs
uses vanilla debian packages which is what I chose to use on the project
that kicked this all off.
I'll be adding more to this as I get to it. Bug reports, feature
requests, and patches welcomed.
--
Behan Webster
behanw@websterwood.com
next reply other threads:[~2008-07-30 2:18 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-30 2:18 Behan Webster [this message]
2008-07-30 14:09 ` embedded rootfs utility Grant Likely
2008-07-30 15:12 ` Marco Stornelli
2008-07-30 15:40 ` Behan Webster
2008-08-06 11:50 ` Geert Uytterhoeven
2008-08-08 17:03 ` Behan Webster
2008-08-14 6:29 ` Grant Likely
2008-08-14 14:35 ` Behan Webster
2008-08-14 16:35 ` Grant Likely
2008-08-14 19:20 ` Behan Webster
2008-08-14 19:25 ` Grant Likely
2008-08-14 19:32 ` Behan Webster
2008-08-18 11:30 ` Geert Uytterhoeven
2008-08-18 16:00 ` Grant Likely
2008-08-19 1:44 ` Module init for compiled in vs loaded modules Fundu
2008-08-19 4:29 ` Amol Lad
2008-08-19 16:11 ` T Ziomek
2008-08-10 15:14 ` embedded rootfs utility Michelle Konzack
2008-08-24 16:14 ` Behan Webster
2008-09-17 18:13 ` ELBS mindshare Grant Likely
2008-09-17 18:23 ` Robert Schwebel
2008-09-17 19:48 ` Bill Traynor
2008-09-17 20:27 ` Robert Schwebel
2008-09-17 22:09 ` Grant Likely
2008-09-20 19:20 ` Michelle Konzack
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=488FCF7D.5010005@websterwood.com \
--to=behanw@websterwood.com \
--cc=linux-embedded@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).