public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] RedBoot's load and fileio
@ 2009-09-08  9:01 Sergei Gavrikov
  2009-09-08  9:23 ` Ross Younger
  0 siblings, 1 reply; 3+ messages in thread
From: Sergei Gavrikov @ 2009-09-08  9:01 UTC (permalink / raw)
  To: eCos discuss-list

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-09-08 10:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-08  9:01 [ECOS] RedBoot's load and fileio Sergei Gavrikov
2009-09-08  9:23 ` Ross Younger
2009-09-08 10:20   ` Sergei Gavrikov

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