Jump to content
  • 0

Arty-Z7 20 - Petalinux QSPI boot


toddsharpe

Question

I've got an arty z7 that I've got booting petalinux with SD and jtag booting. However, I'm having trouble getting it to qspi boot, or more specifically getting the boot+kernel image petalinux builds to fit on 16MB qspi. Seems a default Petalinux is about 16MB kernel and 5MB Boot.bin, I've tried shaving my image down, its currently 10.3MB image.ub and 5.2mb boot.bin so I guess it should barely fit? I'm following the steps at: https://docs.xilinx.com/r/2021.2-English/ug1144-petalinux-tools-reference-guide/Steps-to-Boot-a-PetaLinux-Image-on-Hardware-with-QSPI-or-OSPI but this doesn't leave room for boot.scr. Has anybody done this successfully?

Quote

flash_type=spi
boot=0 0x500000
kernel=0x500000 0xA80000

Curious your petalinux config/uboot steps to program flash.

Another hint something isn't working - typing those sf commands and rebooting arty-z7 doesn't seem to remove the demo blinky app from arty-z7 (after selecting qspi boot).

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Hi @toddsharpe

does writing BOOT.BIN at the begging of QSPI boots into u-boot ? when qspi jumper is set?

u-boot loads boot.scr and loads image.ub according to instructions in boot.scr
if boot.scr has a wrong address for image.ub(is a FIT) the entire process fails.

 

According to
https://docs.xilinx.com/r/2021.2-English/ug1144-petalinux-tools-reference-guide/Configuring-U-Boot-Boot-Script-boot.scr

expected boot.scr address is 0xFC0000

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...