SPL Preloader from U-boot to boot from SD FAT partition - Big Size

Hello,

Is it possible to generate SPL Preloader in U-boot sources using QTS Files so it is able to boot U-boot from
SDCard FAT partition?

When I enable the CONFIG_SPL_FAT_SUPPORT in uboot the size of SPL is around 250 000 bytes.
When i do not enable CONFIG_SPL_FAT_SUPPORT size is ~~ 55 000 bytes. (so it is still in max range)

I mean When I generate preloader-mpkimage via altera bsp-editor, It can boot also from FAT SD partition and its size is still OK.

Thanks
TO

I dont understand quite well the Question.
Here I explain how I generated the preloader to boot the u-boot from FAT32 partition.
https://github.com/robertofem/CycloneVSoC-examples/tree/master/SD-operating-system/Angstrom-v2013.12#6—generate-and-test-the-preloader
You only have to activate SD support, select 1 as fat boot partition and write the name of the u-boot file in the FAT partition, in my case is called u-boot.img.

Regards!

Hi,
I forgot to specify it more.
Yes this is how I am doing it in U-Boot 2013 and it is working OK.

But I am going little beyond and I am generating preloader binary in U-boot 2016+.
Based on QTS Files from hand-off files.

Process QTS-generated files into U-Boot compatible ones.
http://git.denx.de/?p=u-boot.git;a=blob;f=doc/README.socfpga;h=cae0ef1a214653915d94fb74b40cd8b4596fed28;hb=HEAD

There the SPL Settings need to be enabled in u-boot config.

And there is the problem that preloader binary get very big after FAT Support is enabled.

TO