Forum Discussion
Hi,
Yes, preloader-mkimage.bin is generated from u-boot-spl file.
For .axf to .bin you can use mkimage utility or
In eclipse, the post-build steps (under Build Steps tab in the C/C++ Build Settings):
fromelf --bincombined ${ProjName}.axf --output=${ProjName}.bin
Please find below link to compile the SPL and preloader for baremetal application.
https://www.rocketboards.org/foswiki/Documentation/PreloaderUbootCustomization131
We also have AN709, where it is explain for booting from SD card-Custom partition & FAT partition.
Let me know if you have any query on this.
Regards
Tiwari
Hi,
Sorry I didnt explain my confusion clearly,
I'm now using SOC EDS 20.1 and cycloneV soc, so BSP-editor is not working any more.
Your resource is for 13.1 or earilier if Im correct.
according to :
Building Bootloader for Cyclone V and Arria 10 | Documentation | RocketBoards.org
"
For Cyclone V SoC and Arria V SoC, the handoff information created by Quartus compilation comes in several formats: C source code, XML and binary files. Bsp-editor takes this information and turns it into source code which is used to build U-Boot. For older versions of SoC EDS, the user could set various U-Boot parameters in bsp-editor. For the current version of SoC EDS, they have no effect.
"
So I have to set the Uboot myself.
According to AN709, which is 1.5.2. Booting from SD/MMC – Custom Partition (intel.com) I posted in my updates.
"
- Make sure to select the following options:
- Check the option spl.boot.BOOT_FROM_SDMMC
- Uncheck the other boot options (spl.boot.BOOT_FROM_RAM, spl.boot.BOOT_FROM_QSPI, spl.boot.BOOT_FROM_NAND)Note: spl.boot.SDMMC_NEXT_BOOT_IMAGE = 0x40000. This is the location where the bare-metal application image is stored.
- Check the option spl.boot.SDRAM_SCRUBBING and spl.boot.SDRAM_SCRUB_REMAIN_REGION. This zeroes out the SDRAM, preventing any ECC errors to occur during bare-metal program execution.
- Uncheck the option spl.boot.WATCHDOG_ENABLE. This is because we are not kicking the watchdog in our bare-metal application.
- Compile the Preloader. This creates the file preloader-mkpimage.bin.
"
I need to know how to set these settings in Uboot.
Now I didnt find the location to set:
spl.boot.SDMMC_NEXT_BOOT_IMAGE = 0x40000.
spl.boot.SDRAM_SCRUBBING
spl.boot.SDRAM_SCRUB_REMAIN_REGION
And I didnt know the mkimage -a xxxxx meaning as well.
reguards.