@JanKonecny
I tried reformatting my SD Card according to the guide you posted. Instead of putting preloader-mkpimage.bin on the A2 then u-boot.img on the VFAT partition, I simply placed u-boot-with-spl.sfp on A2. ( u-boot-with-spl.sfp contains both preloader and uboot per this guide) Building Bootloader for Stratix 10 and Agilex | Documentation | RocketBoards.org
I only went up to step 7 and had a couple differences based on the files I generated from the first guide.
I got the following output when I booted.
U-Boot SPL 2019.04-00246-g0c3e6f623d-dirty (Dec 27 2019 - 13:35:52 -0500)
Trying to boot from MMC1U-Boot 2019.04-00246-g0c3e6f623d-dirty (Dec 27 2019 - 13:35:52 -0500)
CPU: Altera SoCFPGA Platform
FPGA: Altera Cyclone V, SE/A5 or SX/C5 or ST/D5, version 0x0
BOOT: SD/MMC Internal Transceiver (3.0V)
Watchdog enabled
DRAM: 1 GiB
MMC: dwmmc0@ff704000: 0
Loading Environment from MMC… *** Warning - bad CRC, using default environmentIn: serial
Out: serial
Err: serial
Model: Altera SOCFPGA Cyclone V SoC Development Kit
Net:
Warning: ethernet@ff702000 (eth0) using random MAC address - a2:77:81:44:49:7a
eth0: ethernet@ff702000
Hit any key to stop autoboot: 0
309 bytes read in 4 ms (75.2 KiB/s)Executing script at 02000000
— Programming FPGA —
7007204 bytes read in 363 ms (18.4 MiB/s)
Command ‘load’ failed: Error -6
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1…
28016 bytes read in 6 ms (4.5 MiB/s)
starting USB…
USB0: scanning bus 0 for devices… 2 USB Device(s) found
scanning usb for storage devices… 0 Storage Device(s) found
ethernet@ff702000 Waiting for PHY auto negotiation to complete… TIMEOUT !
Could not initialize PHY ethernet@ff702000
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
ethernet@ff702000 Waiting for PHY auto negotiation to complete… TIMEOUT !
The issue is clearly not how the SD Card is formatted. I would think the issue has to do with either
- The format of the RBF
- How U-Boot is attempting to load the RBF into the Cyclone V FPGA portion
- Differences between u-boot-with-spl.sfp and u-boot.img/preloader-mkpimage.bin
Do you agree? What could be my next step for debug? If you find the u-boot source with the error codes, please let me know. I tried surfing the github, but could not find it with searches.