EricOpitz
New Contributor
5 months agoAgilex 5 QSPI Probe fails
Dear all,
I'm working on getting RSU running on the Agilex 5 Arrow AXE5-Eagle dev kit.
My problem regards the new version QPDS25.1. With this version I can not probe the QSPI flash. Using the old version QPDS24.2 it worked fine.
I'm following the official tutorial for the AXE5 eagle dev kit:
I've followed the tutorial exactly. When I'm booting with 24.2:
- In the U-Boot log I see "SF: Detected mt25qu02g with page size 256 Bytes, erase size 64 KiB, total 256 MiB". This shows that the JEDEG id can be read from the flash and it is recognized.
- In the Linux boot log I see "
[ 1.442103] spi-nor spi0.0: mt25qu02g (262144 Kbytes)
[ 1.448305] 2 fixed-partitions partitions found on MTD device 108d2000.spi.0
[ 1.455340] Creating 2 MTD partitions on "108d2000.spi.0":
[ 1.460817] 0x000000000000-0x000003fe0000 : "Boot and fpga data"
[ 1.468038] 0x000003fe0000-0x000010000000 : "Root Filesystem - JFFS2"
"
This also shows that the flash can be accessed from linux and the device shows up as /dev/mtd0
When following the 25.1 tutorial:
- I did not apply the section "Configure the FPGA with a Device Tree Overlay". But I don't think this influences communication with QSPI.
- In the U-Boot log I see no log message regarding the flash.
- In the Linux boot log I see no log message regarding the flash.
- In the U-Boot console:
$ sf probe
"Synchronous Abort" handler, esr 0x96000010, far 0x108d2000
...
I noticed that in 25.1 in the socfpga_agilex5_axe5_eagle.dts (linux-socfpga) and socfpga_agilex5.dtsi (u-boot-socfpga) have the qspi status = "disabled". I manually set it to "okay". I've recompiled u-boot, generated the linux .dtb and flashed the QSPI using JTAG. During boot, Linux now has a kernel panic, so this doesn't fix the problem.
I'm aware of the Altera tutorial for RSU (https://altera-fpga.github.io/rel-25.1/embedded-designs/agilex-5/e-series/premium/rsu/ug-rsu-agx5e-soc/#building-u-boot). Unfortunately, I don't have the premium dev kit, so I can't follow it exactly.
Kind Regards,
Eric Opitz
Hi Eric
In 25.1 a new feature was introduced to control if you want to allow or prevent to grant the ownership of the QSPI to the HPS.
https://cdrdv2-public.intel.com/853092/ug-813762-853092.pdf
See section 4.2.1 and 4.12.
Check in your hardware design if the QSPI ownership is assigned to the HPS. If this is not the case, then the SDM will reject the MBOX_QSPI_DIRECT mailbox.
Thanks
Rolando