From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?QW5kcsOpIFNjaGFsbGVy?= Date: Thu, 05 Feb 2015 20:07:11 +0100 Subject: [U-Boot] SPL: undefined reference 'file_fat_write' Message-ID: <54D3BF5F.6040704@googlemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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?