public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Ross Younger <wry@ecoscentric.com>
To: eCos discuss-list <ecos-discuss@ecos.sourceware.org>
Subject: Re: [ECOS] RedBoot's load and fileio
Date: Tue, 08 Sep 2009 09:23:00 -0000	[thread overview]
Message-ID: <4AA6226F.3030107@ecoscentric.com> (raw)
In-Reply-To: <20090908090117.GA7098@sg-laptop>

Hi Sergei,

> 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)? 

Support for loading from fileio is present, but hiding; I think what you
found was the old code. It really lives in fs/fileio.c, switched on by the
option CYGPKG_REDBOOT_FILEIO.

All you should need to do is add CYGPKG_IO_FILEIO to your config, and
resolve any conflicts, before you build RedBoot. Then, the syntax "load -m
fileio /some/file" is what you're looking for.

It all Just Worked for me when I tried it out a few months ago. (I was using
a YAFFS filesystem and my NAND library, but there's no reason why jffs2
shouldn't work.)


Ross

-- 
Embedded Software Engineer, eCosCentric Limited.
Barnwell House, Barnwell Drive, Cambridge CB5 8UU, UK.
Registered in England no. 4422071.                  www.ecoscentric.com

   >>>> Visit us at ESC-UK  http://www.embedded.co.uk <<<<
   >>>> Oct 7-8 on Stand 433 at FIVE ISC, Farnborough <<<<

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

  reply	other threads:[~2009-09-08  9:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-08  9:01 Sergei Gavrikov
2009-09-08  9:23 ` Ross Younger [this message]
2009-09-08 10:20   ` Sergei Gavrikov

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=4AA6226F.3030107@ecoscentric.com \
    --to=wry@ecoscentric.com \
    --cc=ecos-discuss@ecos.sourceware.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 read-only IMAP folder(s) and NNTP newsgroup(s).