public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Henrik Nordström" <henrik@henriknordstrom.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] load file to memory in standalone program
Date: Sun, 19 May 2013 01:35:38 +0200	[thread overview]
Message-ID: <1368920138.23379.14.camel@localhost> (raw)
In-Reply-To: <COL126-W15B9EDAC5841A2C364A531B6AD0@phx.gbl>

l?r 2013-05-18 klockan 15:14 +0000 skrev Scott A:
> Hi,I am attempting to read a set of files from the fat file system
> into a location in memory.This is easy using the command interface
> using something likefatload mmc 0:1 0x48000000 file.txt
> However i want to do this in a standalone program. Is there a function
> call available to do this in a standalone program.if so could someone
> give an example.

The standalone API do not include filesystem operations, only raw device
operations.

I think it would be a great addition to add generic filesystem
operations to the standalone API. The fs_read() and fs_write() functions
should be possible to export via the standalone API as-is, but should
probably be wrapped a little bit to select which filesystem/partition to
operate on, similar to do_load() but without the u-boot env magics or
variable arguments.

any specification of filesystem type in the API (if needed) should be
done in string form to ensure a long term stable API I think.

Regards
Henrik

  reply	other threads:[~2013-05-18 23:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-18 15:14 [U-Boot] load file to memory in standalone program Scott A
2013-05-18 23:35 ` Henrik Nordström [this message]
2013-05-21 12:33   ` Wolfgang Denk
2013-05-21 12:29 ` Wolfgang Denk

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=1368920138.23379.14.camel@localhost \
    --to=henrik@henriknordstrom.net \
    --cc=u-boot@lists.denx.de \
    /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