* [U-Boot] SPL: undefined reference 'file_fat_write'
@ 2015-02-05 19:07 André Schaller
0 siblings, 0 replies; only message in thread
From: André Schaller @ 2015-02-05 19:07 UTC (permalink / raw)
To: u-boot
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?
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-02-05 19:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-05 19:07 [U-Boot] SPL: undefined reference 'file_fat_write' André Schaller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox