JFrye2
New Contributor
6 years agoProgramming CycloneV FPGA from U-Boot SPL
I have a DE1-SoC board from Terasic. I am trying to boot a Linux kernel that can talk to the hardware in the FPGA portion. I am trying to verify that my FPGA is programmed during the boot cycle. I am currently following this workflow.
https://rocketboards.org/foswiki/Documentation/BuildingBootloader
My bootlogs show no indication that the FPGA is being programmed by the preloader before the kernel is decompressed and started.
U-Boot SPL 2019.04-00246-g0c3e6f623d-dirty (Dec 20 2019 - 22:19:44 -0500)
Trying to boot from MMC1
U-Boot 2019.04-00246-g0c3e6f623d-dirty (Dec 20 2019 - 22:19:44 -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 environment
In: 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
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
157 bytes read in 1 ms (153.3 KiB/s)
1: Linux Default
Retrieving file: /extlinux/../zImage
4700440 bytes read in 241 ms (18.6 MiB/s)
append: root=/dev/mmcblk0p2 rw rootwait earlyprintk console=ttyS0,115200n8
Retrieving file: /extlinux/../socfpga_cyclone5_socdk.dtb
28016 bytes read in 3 ms (8.9 MiB/s)
## Flattened Device Tree blob at 02000000
Booting using the fdt blob at 0x2000000
Loading Device Tree to 03ff6000, end 03fffd6f ... OK
Starting kernel ...When I start readinng fpga_manager sysfs files, they suggest the FPGA is not powered on
root@cyclone5:~# cat /sys/class/fpga_manager/fpga0/state
power offDoes anyone know how to verify that the FPGA is programmed by the bootloader and if not, then how to program it with the bootloader