Forum Discussion
Hi Alex
Are you using the raw format partition like I suggested?
I have tried out the vfat partition and found that it is not possible to load the SPL.
With the raw format, I am able to see the SPL logs and the logs of the baremetal.
When you compiled the baremetal application did you move the start address to be 0x1000040?
Regards
Jingyang, Teh
Regards
Jingyang, Teh
Hi
Yes,I used the raw format.
I changed the default linker by changing all 0x0010_0040 to 0x0100_0040 to make the address fit the SPL setting address,
then I cahnged the 0x80_0000 to 0x0020_0000, to move the stack out of the way just in case.
Next,I made the hello.c to app.axf and use
" arm-eabi-objcopy -O binary app.axf app.bin"
to build the bin file.
Then I use mkimage -A arm -T standalone -C none -a 0x01000040 -e 0x01000040 -n "bare-metal image" -d app.bin app.img
to get the img file.
I made the SPL(which is working well) and combine the img and u-boot-splx4.sfp together with order:
cat app.img u-boot-splx4.sfp > final.bin.
I used the make_sdimage_p3.py to make the SD image.
After that,I used the rufus to copy the bin into the sdcard and started the board.
After several times of
"
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
"
The hello world! string didnt appear.
I've tried to study the example of "unhosted" but the linker file is totally different from the default ones.
If convenient, could you please give me your hello world project with all bin,axf,linker file and img file.
Or if you need my project I 'll give mine to you.
Reguards.