From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-embedded+bounces-2780-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1L340t-0002vu-Co
	for garchives@archives.gentoo.org; Thu, 20 Nov 2008 07:31:43 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id D4016E036A;
	Thu, 20 Nov 2008 07:31:41 +0000 (UTC)
Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.159])
	by pigeon.gentoo.org (Postfix) with ESMTP id 714D8E036A
	for <gentoo-embedded@lists.gentoo.org>; Thu, 20 Nov 2008 07:31:41 +0000 (UTC)
Received: by fg-out-1718.google.com with SMTP id d23so352413fga.14
        for <gentoo-embedded@lists.gentoo.org>; Wed, 19 Nov 2008 23:31:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:message-id:date:from:to
         :subject:in-reply-to:mime-version:content-type
         :content-transfer-encoding:content-disposition:references;
        bh=4ZpFGqOY3dqie5ysTQx/eJKamjbS5toKyh1EPL0oUnk=;
        b=q+PhmEHaW6SdM0fb3sJcd/KSMNmFTudyPc/Lo3DVEHh6kTp58ldv1z+yX21OKmy5Cf
         Ctm8ANbXi+na1fV08cInqpdQuSUpYA62/75aJi0bpRjPlm8LRPmXnJ0arljyTBjXnUjU
         xwHbtUPlPAA1lcCvYrXS8FvsgUVpXtKFKl45s=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=message-id:date:from:to:subject:in-reply-to:mime-version
         :content-type:content-transfer-encoding:content-disposition
         :references;
        b=bU+Kt5G2UfYJg6WBaDK/wowJFGl+4zyNsHldxuF05xihbIqcWK8aGcACTW6oO5QT9I
         yQuiobrlL+OJZA9yh9b66kGLFKRmDQ2tFDRkBvUxMUPN9ScphzWFtvvHSLbyVzXxgSlf
         xUsFEU0OBoZ1b5Pak14rK5Yc86iI16kXRbtKU=
Received: by 10.181.192.10 with SMTP id u10mr620296bkp.185.1227166299023;
        Wed, 19 Nov 2008 23:31:39 -0800 (PST)
Received: by 10.181.27.16 with HTTP; Wed, 19 Nov 2008 23:31:38 -0800 (PST)
Message-ID: <27dfa3d0811192331t7426a819k6fd0802754059b9e@mail.gmail.com>
Date: Thu, 20 Nov 2008 16:31:38 +0900
From: "Daniel Stonier" <d.stonier@gmail.com>
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] Configuration of an embedded system
In-Reply-To: <20081120105052.GC2577@tarpman.is-a-geek.org>
Precedence: bulk
List-Post: <mailto:gentoo-embedded@lists.gentoo.org>
List-Help: <mailto:gentoo-embedded+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-embedded+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-embedded+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-embedded.gentoo.org>
X-BeenThere: gentoo-embedded@lists.gentoo.org
Reply-to: gentoo-embedded@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <8349216a0810100607s9f70ab4tbead2eb697e7e1e3@mail.gmail.com>
	 <20081115054727.GE21400@nibiru.local>
	 <001d01c94a37$e4331720$ac994560$@com>
	 <20081120105052.GC2577@tarpman.is-a-geek.org>
X-Archives-Salt: 6891eab7-f262-49b7-9043-685e6ee5ab5c
X-Archives-Hash: 9f2cb7069db0d95e1e7d118882cbf307

2008/11/20 Ryan Tandy <tarpman@gmail.com>:
> On Wed, Nov 19, 2008 at 11:13:46AM -0000, Gareth McClean wrote:
>> a) Do any open source projects target the initial setup of an embedded
>> system i.e. basics like manually configuring an Ethernet port, configuration
>> of wireless networking or possibly other essentials like hostname, timezone,
>> etc?
>
> ...
>> b) If not, do you perform your 'out-of-the-box setup' i.e. did you create
>> your own set of tools using packages like awk, sed, perl etc?
>
> Again, depending on the scale of the project, I use either a stripped
> down Gentoo system or a simple Busybox-based system.
>
I just set up a control board and was also wondering about the best way to
create a runtime root. Since a control board only requires a few packages,
busybox ended up being really simple. I put the kernel and rootfs in ram
and let the user manually extend it by mounting a drive
on /usr/local where they can dump any extra binaries and libs they want.
But I wouldn't recommend it for a system where you wanted to pile on
packages up to the point of needing an x server.

I also tried gentoo's crossdev to create a root fs, thinking that would be
really easy just to xmerge in the right packages. But you end up with alot
of cruft that way, and the other problem is most ebuilds aren't set up to
work with cross-compiling out of the box (lots of bugs), so xmerge falls
over alot.

The other option I tried is openembedded. Which for me, was using a sledge
hammer on a tiny nail. Probably really good as your embedded project scales
up though - it gives you a way of defining your filesystem/package
configuration.

>> c) How are you communicating with the user during the installation process?
>
> Most of the systems I'm used to aren't designed to be installed by a
> user - at least the software side of things.
>
>> c) Are there any intentions to migrate the Linux 'system configuration' into
>> a machine readable format like XML.
>
> No.  Do you have any idea how long it takes to read and write XML?
>
>> Ignore that that might sound like a call to implement the equivalent
>> of the windows registry
>
> It doesn't, although it does sound like unnecessary overhead.
>
>> and focus on the fact I am concerned about the potential issues of
>> processing unstructured, human readable text files
>
> Which issues?  All of the base system configuration files seem fairly
> structured to me.  At any rate I'd much rather be parsing simple text
> files than XML.  Which files are you having trouble with?
>
>> and want an easy/reliable way to programmatically change the system
>> configuration and manage future system updates.
>
> Most people that I know of solve these problems with shell or
> perl/python/language-of-the-moment scripts.
>
> Bear in mind that these are just my opinions; other people on the list
> will doubtless disagree with them. :)
>
> Thanks,
> Ryan
>
>