From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15797 invoked by alias); 26 Jun 2007 11:14:22 -0000 Received: (qmail 15779 invoked by uid 22791); 26 Jun 2007 11:14:17 -0000 X-Spam-Check-By: sourceware.org Received: from wx-out-0506.google.com (HELO wx-out-0506.google.com) (66.249.82.224) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 26 Jun 2007 11:14:15 +0000 Received: by wx-out-0506.google.com with SMTP id h26so1783597wxd for ; Tue, 26 Jun 2007 04:14:13 -0700 (PDT) Received: by 10.90.95.11 with SMTP id s11mr5070756agb.1182856452825; Tue, 26 Jun 2007 04:14:12 -0700 (PDT) Received: by 10.90.69.11 with HTTP; Tue, 26 Jun 2007 04:14:12 -0700 (PDT) Message-ID: Date: Wed, 27 Jun 2007 09:48:00 -0000 From: "xiaolu zhao" To: ecos-discuss In-Reply-To: <20070614154512.GB1594@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070614154512.GB1594@lunn.ch> Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] how to check my modifications to the kernel without a board? X-SW-Source: 2007-06/txt/msg00249.txt.bz2 Because my command-line ecosconfig does not work, I tried to use graphic configtool to try the tests suggested by andrew. But I met some problems: 1. If I want to run the eCos on the vmware, I think I need a .bin file to generate the floppy image and load to the vmware. When I use redboot, I know there is a option in the config file to choose ("Redboot ROM monitor/Redboot HAL options/Build RedBoot binary image") and I can get a bin file in the generated install folder. But without redbboot, I do not know how to generate the bin file? 2. I want to try the tests cases using configtool. but it seems the hardware platform should be connected, does it? Does that mean if I want to do the test, I should run the vmware at the same time? Would you like to give me some advice about these problems? Thank you so much! On 6/14/07, Andrew Lunn wrote: > On Thu, Jun 14, 2007 at 05:14:18PM +0200, xiaolu zhao wrote: > > Hi, I met a big problem, would you like to give me some advices? > > > > I did some modifications to the ecos Kernel code(like in sched.cxx, > > thread.hxx etc.). But I have no a real hardware board. So I want to > > use VMware as a virtual machine to see the results.Is it possible? > > Should be, but i have never done it myself. However, i would actually > recommend using the synthetic target on Linux. > > > I tried the redbbot on the Vmware and the "hello.c" example works. But > > after I modified the kernel code and rebuild the ecos using the > > configtool, it did not give any compilation complaints. I know it is > > impossible, there should be a lot of errors in the code. Does Redbbot > > have nothing to do with the ecos kernel files? > > Redboot does not use the kernel. > > > If the redboot has nothing to do with the kernels, how can I check my > > modificaiton to the kernel files with VMare? > > I would suggest you use the kernel test cases. These are good tests to > see if your changes have broken anything. > > Try doing: > > ecosconfig new pc_rltk8139 > edit ecos.ecc and change CYG_HAL_STARTUP to floppy > ecosconfig tree > make -s tests > > Once you have fixed all the compiler error you can run the test cases > in install/tests/kernel/current. > > Andrew > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss