Forum Discussion
Looks like the old U-Boot 2021.04 version you are using may behave differently. Please use the one I mentioned above, the U-Boot 2025.07. You can get the SD card from https://releases.rocketboards.org/2025.10/gsrd/a10_gsrd/sdimage.tar.gz, and add your application.axf to the FAT partition.
If you prefer a small SD card image, that does not have the kernel and rootfs inside, you can build one by using the instructions below. I have used Ubuntu 22.04, but it should work the same also in WSL:
cd $TOP_FOLDER
sudo rm -rf sd_card && mkdir sd_card && cd sd_card
wget https://releases.rocketboards.org/release/2020.11/gsrd/tools/make_sdimage_p3.py
sed -i 's/\"\-F 32\",//g' make_sdimage_p3.py
chmod +x make_sdimage_p3.py
wget https://releases.rocketboards.org/2025.10/gsrd/a10_gsrd/u-boot-splx4.sfp
mkdir fatfs && cd fatfs
wget https://releases.rocketboards.org/2025.10/gsrd/a10_gsrd/fit_spl_fpga.itb
wget https://releases.rocketboards.org/2025.10/gsrd/a10_gsrd/u-boot.img
cp $TOP_FOLDER/intel-socfpga-hwlib/examples/A10/Altera-SoCFPGA-HardwareLib-Timer-A10-GNU/application.axf .
cd ..
sudo python3 ./make_sdimage_p3.py -f \
-P u-boot-splx4.sfp,num=3,format=raw,size=10M,type=A2 \
-P fatfs/*,num=1,format=vfat,size=20M \
-s 32M \
-n sdcard_a10.img
If you want faster iteration time, and not to have to udpate the SD card each time you change something, you can download the application.axf over network, via TFTP. I use Linux, but there are Windows TFTP servers too, for example https://pjo2.github.io/tftpd64/. See below an example of such usage, note that you will have to replace server ip with your own value:
=> setenv autoload no
=> dhcp
Speed: 1000, full duplex
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
DHCP client bound to address 192.168.1.157 (1011 ms)
=> setenv serverip 192.168.1.101
=> tftp 0x10000000 application.axf
Speed: 1000, full duplex
Using ethernet@ff800000 device
TFTP from server 192.168.1.101; our IP address is 192.168.1.157
Filename 'application.axf'.
Load address: 0x10000000
Loading: ##################
5.1 MiB/s
done
Bytes transferred = 258864 (3f330 hex)
=> bootelf 0x10000000
=> go 0x00100040
## Starting application at 0x00100040 ...
INFO: Frequency = 300000000.
INFO: Period = 1500 millisecond(s).
INFO: Counter = 450000000.
RESULT: Example completed successfully.
Hello,
Thank you for your reply, the first sd image you sent was too big and won't fit in the sd, but I followed the next steps and build the files "sdcar_a10.img" & "u-boot-splx4.sfp" in a linux VM, but I sitll getting the same error:
=> load mmc 0:1 0x10000000 application.axf
188384 bytes read in 12 ms (15 MiB/s)
=> bootelf 0x10000000
data abort
pc : [<3ffc69e2>] lr : [<3ffc6a13>]
reloc pc : [<01047a22>] lr : [<01047a53>]
sp : 3bf76f60 ip : 00000010 fp : 00000002
r10: 3ffeb6d8 r9 : 3bf7cee0 r8 : 10000000
r7 : 00000028 r6 : 00000002 r5 : 10000000 r4 : fc000046
r3 : 00000018 r2 : 00000000 r1 : 10000040 r0 : 10000040
Flags: Nzcv IRQs off FIQs off Mode SVC_32 (T)
Code: 6a2c 442c fb07 4406 (68a3) 079b
Resetting CPU ...
resetting ...
U-Boot SPL 2021.04 (Sep 02 2021 - 08:43:37 +0000)
U-Boot SPL 2021.04 (Sep 02 2021 - 08:43:37 +0000)
DDRCAL: Success
DDRCAL: Scrubbing ECC RAM (1024 MiB).
- KianHinT_altera2 months ago
Frequent Contributor
Hi keloke98
May I know what is the sdcard size that you have? The sdcard image size is around 2GB so if you're using a 4GB card that comes with the kit, it should be able to flash in. Need to rename the wic -> .img and using win32DiskImager to write the image to the card.
I noticed that your uboot is still on the old version 2021.04, could you recheck again whether you have program the sdcard correctly after you have generated the sdcard_a10.img per Radu steps?
Thanks
Regards
Kian
- KianHinT_altera1 month ago
Frequent Contributor
Hi Keloke98,
Just wondering whats the status for this case? Are you able to resolve the issue on your end?
Thanks
Regards
Kia
- KianHinT_altera1 month ago
Frequent Contributor
Hi Keloke98,
I will set this case to closure and transition this thread to community support since there is no further question.
Thanks
Regards
Kian