This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

  • TI Thinks Resolved

U-boot SPL: undefined reference 'file_fat_write'SPL: undefined reference 'file_fat_write'

Intellectual 580 points

Replies: 1

Views: 1115

Dear all,

I am working with denx u-boot and PandaBoard.

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é
  • Hi Andre,

    Can you share exactly what is your goal to make fat writes within  the mmc_load_image_fat function?

    check if you have the following define working CONFIG_FAT_WRITE (fs.c) you can also try and remove the #ifdef limitation.

    Regards,

    Boyko

    Please click the Verify Answer button on this post if it answers your question.

    Be sure to read the OMAP4 and OMAP5 Forum Guidelines and FAQ

This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.