All of lore.kernel.org
 help / color / mirror / Atom feed
From: "André Schaller" <an.schall@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] SPL: undefined reference 'file_fat_write'
Date: Thu, 05 Feb 2015 20:07:11 +0100	[thread overview]
Message-ID: <54D3BF5F.6040704@googlemail.com> (raw)

Dear all,

I am trying to write a file to SD card in spl_mmc.c. During compilation
gcc moans: undefined reference 'file_fat_write'. I don't understand why.
Directly after the (original) code in mmc_load_image_fat():

err = file_fat_read(payloadname,
                (u8 *)spl_image.load_addr, 0);

I insert the following code:

file_fat_write("foo", "foo", 3);

Why doesn't gcc know this function as it is also declared in
include/fat.h just as file_fat_read() is?

Did someone manage to write to fat out of the SPL?

Best,
Andr?

                 reply	other threads:[~2015-02-05 19:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=54D3BF5F.6040704@googlemail.com \
    --to=an.schall@googlemail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.