cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
crwhite
Visitor
Visitor
287 Views
Registered: ‎03-31-2021

rootfs on DDR4 (PL memory) hangs on first stage

I tried changing the primary memory in petalinux-config from psu_ddr to ddr4, but when I turn the board on it hangs after the First Stage:

Xilinx Zynq MP First Stage Boot Loader
Release 2018.3 May 5 2021 - 16:15:45
NOTICE: ATF running on XCZU7EG/EV/silicon v4/RTL5.1 at 0xfffea000
NOTICE: BL31: Secure code at 0x0
NOTICE: BL31: Non secure code at 0x10080000
NOTICE: BL31: v1.5(release):xilinx-v2018.2-919-g08560c36
NOTICE: BL31: Built : 19:48:48, May 5 2021

The board design is able to access ddr4 (edit: accessed through PL) through my own self tests, and when I boot with rootfs on the ps ddr everything works. I am using Petalinux 2018.3 for this.

Do I need to change other settings to make it boot? Thanks in advance!

Tags (3)
0 Kudos
4 Replies
stephenm
Xilinx Employee
Xilinx Employee
262 Views
Registered: ‎09-12-2007

what is DDR4? is this on the PL?

0 Kudos
crwhite
Visitor
Visitor
252 Views
Registered: ‎03-31-2021

Yes, it is a SODIMM module accessed through the PL! 

0 Kudos
stephenm
Xilinx Employee
Xilinx Employee
246 Views
Registered: ‎09-12-2007

Are you doing petalinux-package --boot --fpga system.bit --uboot. ie is the bit added to the BOOT.BIN?

Can you objdump the uboot (this is what the ATF will hadoff too). and check if this is placed in DDR4?

0 Kudos
crwhite
Visitor
Visitor
227 Views
Registered: ‎03-31-2021

I do run the petalinux-package command, yes. As I said, it does work for the default (PS DDR based) configuration.

I've done an objdump of u-boot.elf, which is attached, but I don't see any text matches for ddr4. The base address for the ddr4 is 0x0048 0000 0000 though, and the u-boot is setting netstart=0x48 1000 0000.

 

After repackaging, the output when I boot the board is the following:

Xilinx Zynq MP First Stage Boot Loader
Release 2018.3 May 4 2021 - 21:51:08
NOTICE: ATF running on XCZU7EV/silicon v4/RTL5.1 at 0xfffea000
NOTICE: BL31: Secure code at 0x0
NOTICE: BL31: Non secure code at 0x10080000
NOTICE: BL31: v1.5(release):xilinx-v2018.2-919-g08560c36
NOTICE: BL31: Built : 19:56:24, May 6 2021
PMUFW: v1.1


U-Boot 2018.01 (May 06 2021 - 19:56:50 +0000) Xilinx ZynqMP ZCU104 revC

I2C: ready
DRAM: 32 GiB

0 Kudos