Author Topic: TE0820 test board example booting and running from QSPI  (Read 499 times)

DR

  • Active Member
  • *
  • Posts: 8
TE0820 test board example booting and running from QSPI
« on: April 01, 2022, 05:46:13 AM »
Hello Trenz fans,
We are excited to use this excellent hardware. Very well done.

I have gone through the tutorials for loading and booting the test_board reference design (petalinux) on the SD card.
However, we need the SD slot for connecting the u-blox JODY-W2 wifi module.

Two questions:
1) I have been struggling to create a BOOT.bin that boots and runs the test_board reference design entirely from QSPI.
Here is my bif order from the compiled images:
zynqmp_fsbl.elf
pmufw.elf
system.bit
bl31.elf
u-boot.elf
image.ub
boot.scr

However, this BOOT.bin just hangs and does not appear to boot
I must be missing a step to create the BOOT.bin
Any pointers on how to proceed would be helpful.
Has anyone else been able to boot and run from QSPI without the SD card?

2) Since we need a device plugged into the SD slot for the wifi module, we have a problem with the TE0701 carrier always wants to try to boot from the SD card
Is there an easy way to force boot from the QSPI when the SD card slot sees a device present?

Thank you for your help.

Dave Rector

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1969
Re: TE0820 test board example booting and running from QSPI
« Reply #1 on: April 04, 2022, 07:22:14 AM »
Hi,
does simple hello world boot? Can you test one time our prebuilt Hello TE0820 boot bin from reference design?
Did you set correct boot mode?
br
John

DR

  • Active Member
  • *
  • Posts: 8
Re: TE0820 test board example booting and running from QSPI
« Reply #2 on: April 04, 2022, 06:51:36 PM »
Hello John,

Thanks for the help.
Yes - I can get the TE0820 and the TE0701 carrier to boot any of the reference designs and prebuilt images using the SD card.

But so far have not been able to build a BOOT.bin that boots entirely from the QSPI.
My understanding is that if there is no SD card plugged in, then it will boot from QSPI automatically.

I received a nice response from RichardH, and will go through the web pages he suggests.

This leads me to my next problem - once I get the BOOT.bin to boot from the QSPI, then my next challenge will be to get the TE0820 to boot from QSPI when my wifi card is plugged into the SD slot. Since the "SD present" signal is driven by the SD card, and also the switch to QSPI booting, is there an easy way to force the TE0820 to boot from QSPI when the SD Present signal is asserted?

Thanks again.
Dave


JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1969
Re: TE0820 test board example booting and running from QSPI
« Reply #3 on: April 05, 2022, 07:12:01 AM »
Hi,
Quote
My understanding is that if there is no SD card plugged in, then it will boot from QSPI automatically.
Not directly. In genereral you must change Boot mode from SD to QSPI. Otherwise boot ROM stops. TE0701 firmware has boot mode pin connected to CD Pin of the SD card, so boot mode switch to QSPI with this carrier when you remove the SD Card.

Hello World Boot.bin is the same for SD and QSPI.
Linux is nearly the same, you must extend this boot.bin with the files from linux and configure your linux/uboot that they search on flash instead of SD card for these files.

Quote
This leads me to my next problem - once I get the BOOT.bin to boot from the QSPI, then my next challenge will be to get the TE0820 to boot from QSPI when my wifi card is plugged into the SD slot. Since the "SD present" signal is driven by the SD card, and also the switch to QSPI booting, is there an easy way to force the TE0820 to boot from QSPI when the SD Present signal is asserted?
TE0701 CPLD source code is available on the download area, you can change functionality like you want.
Update instructions and link to download:
https://wiki.trenz-electronic.de/display/PD/TE0701+CPLD+Firmware
br
John