element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
ZUBoard ZUBoard 1CG how to add a user application in QSPI boot image?
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 4 replies
  • Subscribers 328 subscribers
  • Views 1123 views
  • Users 0 members are here
  • bootgen
  • qspi
  • ZUBoard
Related

ZUBoard 1CG how to add a user application in QSPI boot image?

jeff_kim
jeff_kim over 2 years ago

Hello,

avnet/hdl/projects/zub1cg_sbc_base_2022_1 and avnet/petalinux/projects/zub1cg_sbc_base_2022_1 are installed in Ubuntu 18.04.

SD boot and QSPI boot worked well with the petalinux images. The boot_qspi_mmc.sh script was used for QSPI boot image w/o any problem.

I want to execute a RPU application or APU application at QSPI boot. So, I added the Mtest_a53.elf to the existing script as below. (highlighted in yellow color) However, the image didn't show any prints over the uart console.

The bootgen.bif file and xsct error log are as follows. Please help me to run the user application at QSPI boot.

Thanks.

  • the modified boot_qspi_mmc.sh script

petalinux-package --boot --fsbl ./images/linux/zynqmp_fsbl.elf --add ./images/linux/Mtest_a53.elf --cpu=a53-0 --fpga ./images/linux/system.bit --uboot -o BOOT_LINUX_APU_UBOOT_QSPI.BIN --force --boot-device flash --add ./images/linux/avnet-boot/avnet_mmc.scr --offset 0x01e80000

~/pkg/petalinux/2022.1/tools/xsct/bin/program_flash -f ./BOOT_LINUX_APU_UBOOT_QSPI.BIN -offset 0 -flash_type qspi-x4-single -fsbl ./images/linux/zynqmp_fsbl.elf

  • bootgen.bif file

the_ROM_image:
{
[bootloader, destination_cpu=a53-0] /home/ubuntu/avnet/petalinux/projects/zub1cg_sbc_base_2022_1/images/linux/zynqmp_fsbl.elf
[pmufw_image] /home/ubuntu/avnet/petalinux/projects/zub1cg_sbc_base_2022_1/images/linux/pmufw.elf
[destination_device=pl] /home/ubuntu/avnet/petalinux/projects/zub1cg_sbc_base_2022_1/images/linux/system.bit
[destination_cpu=a53-0, exception_level=el-3, trustzone] /home/ubuntu/avnet/petalinux/projects/zub1cg_sbc_base_2022_1/images/linux/bl31.elf
[destination_cpu=a53-0, load=0x00100000] /home/ubuntu/avnet/petalinux/projects/zub1cg_sbc_base_2022_1/images/linux/system.dtb
[destination_cpu=a53-0, exception_level=el-2] /home/ubuntu/avnet/petalinux/projects/zub1cg_sbc_base_2022_1/images/linux/u-boot.elf
[destination_cpu=a53-0] /home/ubuntu/avnet/petalinux/projects/zub1cg_sbc_base_2022_1/images/linux/Mtest_a53.elf
[destination_cpu=a53-0, offset=0x01e80000] /home/ubuntu/avnet/petalinux/projects/zub1cg_sbc_base_2022_1/images/linux/avnet-boot/avnet_mmc.scr
}

  • xsct register dump at QSPI boot

source boot_registers_log_rev1_0.tcl
======================================================================
== Registers Dump
BOOT_MODE_USER = FF5E0200: 00000002
BOOT_MODE_POR = FF5E0204: 00000222
RESET_REASON = FF5E0220: 00000021
PMU_GLOBAL.PWR_STATE = FFD80100: 00FFFC83
PWR_SUPPLY_STATUS = FFD8010C: 00000007
CSU_BR_ERROR = FFD80528: 80002400
ERROR_STATUS_1 = FFD80530: 00000000
ERROR_STATUS_2 = FFD80540: 04000000
csu_status = FFCA0000: 00000000
csu_ft_status = FFCA0018: 00000000
CSU_ISR = FFCA0020: 00008024
pcap_status = FFCA3010: 00000A02
tamper_status = FFCA5000: 00000000
jtag_chain_status = FFCA0034: 00000003
jtag_sec = FFCA0038: 000001FF
1 PS TAP
2 PMU
13* MicroBlaze PMU (Sleeping after reset. No clock)
3 PL
4 PSU
5 RPU (Reset)
6 Cortex-R5 #0 (RPU Reset)
7 Cortex-R5 #1 (RPU Reset)
8 APU (L2 Cache Reset)
9 Cortex-A53 #0 (APU Reset)
10 Cortex-A53 #1 (APU Reset)
CONFIG STATUS: 0
CRC ERROR (Bits [0]): 0
DECRYPTOR ENABLE (Bits [1]): 0
PLL LOCK STATUS (Bits [2]): 0
DCI MATCH STATUS (Bits [3]): 0
END OF STARTUP (EOS) STATUS (Bits [4]): 0
GTS_CFG_B STATUS (Bits [5]): 0
GWE STATUS (Bits [6]): 0
GHIGH STATUS (Bits [7]): 0
MODE PIN M[0] (Bits [8]): 0
MODE PIN M[1] (Bits [9]): 0
MODE PIN M[2] (Bits [10]): 0
INIT_B INTERNAL SIGNAL STATUS (Bits [11]): 0
INIT_B PIN (Bits [12]): 0
DONE INTERNAL SIGNAL STATUS (Bits [13]): 0
DONE PIN (Bits [14]): 0
IDCODE ERROR (Bits [15]): 0
SECURITY ERROR (Bits [16]): 0
SYSTEM MONITOR OVER-TEMP ALARM STATUS (Bits [17]): 0
CFG STARTUP STATE MACHINE PHASE (Bits [20:18]): 0
SECURITY_STATUS (Bits [23:21]): 0
RESERVED (Bits [24]): 0
CFG BUS WIDTH DETECTION (Bits [26:25]): 0
SECURITY AUTH ERROR (Bits [27]): 0
PUDC_B PIN (Bits [28]): 0
BAD PACKET ERROR (Bits [29]): 0
CFGBVS PIN (Bits [30]): 0
RESERVED (Bits [31]): 0
xsct% Info: tcfchan#9 closed

  • Sign in to reply
  • Cancel
Parents
  • Lorencrook40
    Lorencrook40 over 2 years ago
    This reply was deleted.
    • Cancel
    • Cancel
  • shabaz
    0 shabaz over 1 year ago in reply to Lorencrook40

    User needs deletion as well as his messages (embedded spam in white text)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • shabaz
    0 shabaz over 1 year ago in reply to Lorencrook40

    User needs deletion as well as his messages (embedded spam in white text)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube