From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3250 invoked by alias); 7 Aug 2009 20:39:59 -0000 Received: (qmail 3241 invoked by uid 22791); 7 Aug 2009 20:39:58 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_44,RCVD_IN_SORBS_WEB,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-bw0-f207.google.com (HELO mail-bw0-f207.google.com) (209.85.218.207) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 07 Aug 2009 20:39:51 +0000 Received: by bwz3 with SMTP id 3so1690630bwz.2 for ; Fri, 07 Aug 2009 13:39:48 -0700 (PDT) Received: by 10.204.98.148 with SMTP id q20mr146986bkn.135.1249677587815; Fri, 07 Aug 2009 13:39:47 -0700 (PDT) Received: from smtp.gmail.com ([93.84.57.238]) by mx.google.com with ESMTPS id 18sm3078277fks.10.2009.08.07.13.39.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 07 Aug 2009 13:39:47 -0700 (PDT) Date: Fri, 07 Aug 2009 20:39:00 -0000 From: Sergei Gavrikov To: eCos devel list Cc: Uwe Kindler Subject: Just enough OS for eCos Message-ID: <20090807203948.GA16329@ubuntu.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-IsSubscribed: yes Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2009-08/txt/msg00008.txt.bz2 Hello A day ago Uwe Kindler cried in ecos-patches (I and some one more asked about in a past in discuss-list) Uwe> If there would be a preconfigured VM linux image available Uwe> on the eCos homapage with all tools installed and a working Uwe> synthetic target I would immediatelly start testing ;O) And I thought, Why we have not Just enough OS for eCos? http://en.wikipedia.org/wiki/Just_enough_operating_system I mean an installation which would let anyone (well, any one who is experienced, familiar with Linux) to get JeOS for building tests for eCos Linux target (and may be more?). IMO, it would be great to start such an appliance here: http://ecos.sourceware.org/contrib.html I had success with building the images which were suitable even for VMWare Player (It's free and Windows guys in the most use it, not KVM or QEmu). A cool thing was in that what I used the Ubuntu's ubuntu-vm-builder: https://help.ubuntu.com/8.04/serverguide/C/ubuntu-vm-builder.html That is just a script which downloads, installs distro (JeOS) and at the end creates a disk image. I don't know, may be Debian, OpenSuSE, CentOS have the same tool. Well, what would we put into such a JeCos box? Note: I type: jeos, jecos. JeCos is not typo I kept this abbr in my mind for some reason :-) I think that would be build-essential, tcl, tcl-dev packages, eCos 3.0, and i386-elf toolchain, ccache. Does we need X-server? IMO, we would not install it. AFAIK, it's possible to run tests for synthetic under gdb using -nw, -io args. If I wrong, tell me why. I know that 7-zipped image (vmware appliance, vmware disk) could be just a few tens of Mb. Well, why did I point on ubuntu-vm-builder? That's just a script. I knew about it. Well, may be I did not discover America for you. Excuse then the snippets the below. If you run script with default settings, e.g., ubuntu-vm-builder vmw6 hardy --mirror You can get jeos.7z (jeos.vmx, root.vmdk) in ~45M. That will be http://en.wikipedia.org/wiki/Ubuntu_JeOS And when I used own settings, e.g., ubuntu-vm-builder vmw6 hardy \ --mirror http://ftp.byfly.by/ubuntu \ --domain local \ --hostname jeos \ --user user \ --pass password \ --mem 512 \ --swap 1024 \ --opt 4096 \ --addpkg unattended-upgrades \ --addpkg psmisc \ --addpkg acpid \ --addpkg openssh-server \ --addpkg build-essential \ --addpkg ccache \ --addpkg tcl8.4 \ --addpkg tcl8.4-dev \ --addpkg vim I got 31M jecos.7z (jeos.vmx, root.vmdk). Then I needed just to click on root.vmdk to run JeOS VM with VMWare Player under ... X. Then using ssh connection, I could add any deb packages and eCos itself there. Well, that was just a try. Unfortunately (fortunately) I have not Windows installed. So, I cannot say what you can click on root.vmdk under Vista (or 7) and you will run Ubuntu JeOS. I could not test it. But, may be some one have both OS installed and he will try it, and then he will share JeCos vmdk with others. Well, you can say, it's odd thing, let's they install Linux and get it all then, if they want. What are advantages with JeCos? I thought: the same kernel, the same toolchain, the same gdb, the same userspace, the same Tcl, etc. And then you would say, Hey, download our image from here http://www.vmware.com/appliances/ and try to build that example. What is disadvantage. It will be slow, but I used ccache, you know that is very robust tool if you rebuild eCos again, again and again. Excuse me if it looks like off-topic for this list and I did waste your time. Then, I'm sorry. But, I hope this post would inspire some one to build Just enough OS/eCos appliance. All, Have a good weekend :-) Regards, Sergei