Forum Discussion

CAlex's avatar
CAlex
Icon for Contributor rankContributor
2 years ago

How to set the SPL and the sdimage correctly with baremetal applications

Hi,

I'm working on cycloneV soc with the newest soceds 20.1 so the bsp-editor cant be used as a uboot setting.

I want to start the baremetal application from a sdcard.

SDimage:

A2: u-boot-with-spl.sfp

vfat: excution.bin

I set the uboot as cycloneVdefconfig and trying to use menuconfig to set the uboot settings.

I enable the FAT in SPL setting, set the File to load for U-boot from the filesystem to excution.bin.

In Boot options->Boot media, I enabled the support for booting from SD/EMMC option and let others go as default.

I make the uboot, which gave me two warning, the setting change the ECAM clk but the sfp was made successful.

Next I use the mkimage -A arm -T standalone -c 0x0100_0000 -e 0x0100_0040 to add the special head to the bin file.

The address 0x01000000 is the same as the Uboot setting called "Address in memory to use by default".

I made the image through make_sdimage_p3.py set the board correctly.

Here is the return:


U-Boot SPL 2022.10-24688-g541b6afcb1-dirty (Jun 14 2023 - 14:32:10 +0800)
DDRCAL: Scrubbing ECC RAM (1024 MiB).
DDRCAL: SDRAM-ECC initialized success with 579 ms
Trying to boot from MMC1

U-Boot SPL 2022.10-24688-g541b6afcb1-dirty (Jun 14 2023 - 14:32:10 +0800)
DDRCAL: Scrubbing ECC RAM (1024 MiB).
DDRCAL: SDRAM-ECC initialized success with 579 ms
Trying to boot from MMC1

U-Boot SPL 2022.10-24688-g541b6afcb1-dirty (Jun 14 2023 - 14:32:10 +0800)
DDRCAL: Scrubbing ECC RAM (1024 MiB).
DDRCAL: SDRAM-ECC initialized success with 579 ms
Trying to boot from MMC1

U-Boot SPL 2022.10-24688-g541b6afcb1-dirty (Jun 14 2023 - 14:32:10 +0800)
DDRCAL: Scrubbing ECC RAM (1024 MiB).
DDRCAL: SDRAM-ECC initialized success with 578 ms
Trying to boot from MMC1

The spl didnt start the uboot or the bin file.

Now I dont know how to fix that problem,

whats the correct set for the Uboot?

what's the correct -a and -e address?

Looking forward to your kindly help,please

Reguards.

25 Replies