From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27030 invoked by alias); 8 Sep 2009 09:01:33 -0000 Received: (qmail 26747 invoked by uid 22791); 8 Sep 2009 09:01:31 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_72,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-bw0-f228.google.com (HELO mail-bw0-f228.google.com) (209.85.218.228) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 08 Sep 2009 09:01:23 +0000 Received: by bwz28 with SMTP id 28so2903520bwz.30 for ; Tue, 08 Sep 2009 02:01:20 -0700 (PDT) Received: by 10.204.25.152 with SMTP id z24mr12958625bkb.44.1252400480176; Tue, 08 Sep 2009 02:01:20 -0700 (PDT) Received: from localhost ([93.84.63.166]) by mx.google.com with ESMTPS id p17sm8247699fka.12.2009.09.08.02.01.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 08 Sep 2009 02:01:19 -0700 (PDT) Date: Tue, 08 Sep 2009 09:01:00 -0000 From: Sergei Gavrikov To: eCos discuss-list Message-ID: <20090908090117.GA7098@sg-laptop> Mail-Followup-To: eCos discuss-list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-IsSubscribed: yes 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: [ECOS] RedBoot's load and fileio X-SW-Source: 2009-09/txt/msg00071.txt.bz2 Hello Does anybody know what was a reason to suppress in RedBoot an ability to load files in RAM from a file on the mounted filesystem(s)? A while ago I was looking for something like Redboot>load /bin/shell Redboot>go keeping in a mind that application would be placed on jffs2 and it was surprise for me that I cannot do it, because such an ability commented out in load.c (it is here: load.c:do_load():782). When I did remove the comment and change that check as `s/fileio_mounted/mount_count/' it was possible to use the ability to load a stuff directly from the filesystem. In RedBoot's ChangeLog:2003-11-27 I saw a record from David Woodhouse * cdl/redboot.cdl, fs/fileio.c, include/fs/fileio.h, src/load.c: Support for mounting and loading files from fileio file systems such as JFFS2. and I found nothing about a rejecting the ability. Any comments from eCos veterans and RedBoot's experts? Of course, XYZMODEM, TFTP, and HTTP are nice load methods for a debug cycle, but, we really have not a method to load and run applications (except `exec' for Linux kernel) from the filesystem, have we? My test was done for JFFS2 FS and it worked (well, JFFS2 can be bloat for some targets), but somebody would use, for example, ROMFS FS. Must we use a load method from FIS only (and if we must, then why) for such cases (mount, load and go)? Excuse me, if I missed something. Thank you for the comments, Sergei -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss