[meta-xilinx] u-boot fpga command silently fails on zcu102 SD boot

Monaghan, Michael L. (GSFC-5870) michael.l.monaghan at nasa.gov
Tue Apr 23 16:51:05 PDT 2019


Hello all,

When booting from SD on the zcu102, the u-boot `fpga` command appears silently fails to configure the PL. The done led does not illuminate and the command returns 1.

Everything was built on the thud branch.

Here's a console snippet from u-boot to help illustrate the problem. I appended a full log starting from power on to the end of this email for additional reference.
================================================================================
ZynqMP> fatload mmc 0 100000 download.bit                             
reading download.bit
26510901 bytes read in 1750 ms (14.4 MiB/s)
ZynqMP> fpga loadb 0 100000 26510901                                  
  design filename = "design_1_wrapper;UserID=0XFFFFFFFF;Version=2018.2"
  part number = "xczu9eg-ffvb1156-2-e"
  date = "2019/04/16"
  time = "18:42:14"
  bytes in bitstream = 26510780
zynqmp_align_dma_buffer: Align buffer at 0000000000100079 to 00000000000fff80(swap 0)
ZynqMP> echo $?
1
ZynqMP> fpga info 0 
Xilinx Device
Descriptor @ 0x000000007ffa9a68
Family:        	ZynqMP PL
Interface type:	csu_dma configuration interface (ZynqMP)
Device Size:   	1 bytes
Cookie:        	0x0 (0)
Device name:   	zu9eg
Device Function Table @ 0x000000007ff8a0a8
PCAP status	0x6
ZynqMP>
================================================================================

Not sure if its related, but I am building the PMU firmware from meta-xilinx using the "zynqmp-pmu" machine as detailed here https://github.com/Xilinx/meta-xilinx/blob/thud/meta-xilinx-bsp/README.building.md. I have also applied the PMU firmware patch mentioned in the readme to load the XPm_ConfigObject at boot https://github.com/lucaceresoli/zynqmp-pmufw-builder/blob/master/0001-Load-XPm_ConfigObject-at-boot.patch.

Any ideas?

Thanks,
Michael Monaghan



Power on log
================================================================================
U-Boot SPL 2018.01 (Mar 22 2019 - 19:35:10)
EL Level:	EL3
Trying to boot from MMC1
reading u-boot.bin
reading atf-uboot.ub
reading atf-uboot.ub
NOTICE:  ATF running on XCZU9EG/silicon v4/RTL5.1 at 0xfffea000
NOTICE:  BL31: Secure code at 0x0
NOTICE:  BL31: Non secure code at 0x8000000
NOTICE:  BL31: v1.5(release):xilinx-v2018.3
NOTICE:  BL31: Built : 23:22:09, Mar 18 2019
PMUFW:	v1.1


U-Boot 2018.01 (Mar 22 2019 - 19:35:10 +0000) Xilinx ZynqMP ZCU102 rev1.0

I2C:   ready
DRAM:  4 GiB
EL Level:	EL2
Chip ID:	zu9eg
MMC:   sdhci at ff170000: 0 (SD)
*** Warning - bad CRC, using default environment

In:    serial at ff000000
Out:   serial at ff000000
Err:   serial at ff000000
Bootmode: LVL_SHFT_SD_MODE1
Net:   ZYNQ GEM: ff0e0000, phyaddr c, interface rgmii-id

Warning: ethernet at ff0e0000 (eth0) using random MAC address - 56:9a:a0:85:99:2b
eth0: ethernet at ff0e0000
Hit any key to stop autoboot:  0 
ZynqMP>
================================================================================



More information about the meta-xilinx mailing list