UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Participant dlee32
Participant
481 Views
Registered: ‎05-30-2018

ZCU111 fails to boot from SD card?

I have a new ZCU111 rev 1.0 board and it does not seem to boot Linux from the SD card.

The USB serial COM port does not return any output at all (COM 20). The system controller does show up on COM port 22 but nothing else indicating that FSBL or UBOOT was able to execute. Furthermore, the red LED INIT_B remains red (seen here)

https://www.xilinx.com/support/documentation/boards_and_kits/zcu111/xtp490-zcu111-quickstart.pdf

We've tried different SD card images (default shipping SD card from Xilinx and our own). We suspect that the SD card slot is not functioning. We also made sure that SW6 was set correctly as shown here:

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/57606309/ZCU111+RFSoC+RF+Data+Converter+Evaluation+Tool+Getting+Started+Guide#ZCU111RFSoCRFDataConverterEvaluationToolGettingStartedGuide-MicroSDCardPreparation

 

We did some further testing and I was able to boot the FSBL and PMU over JTAG by following these instructions.

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/66551810/Creating+FSBL+PMUFW+from+XSCT+2018.3+for+ZCU111+and+boot+over+JTAG

image.png

Following the instructions and the files provided we were able to program the bit-stream, upload the PMU onto the Microblaze and load the FSBL into the ARM processor.

Furthermore, in Vivado, we do see the device show up over JTAG

VivadoJTAG.jpg

So, we think that the board is functioning, but perhaps the SD card reader on the ZCU111 eval kit is broken. Is there something we can do to further confirm ?

VivadoJTAG.jpg
0 Kudos
11 Replies
Moderator
Moderator
453 Views
Registered: ‎04-18-2011

Re: ZCU111 fails to boot from SD card?

It seems its damaged if nothing at all boots from it. 

Is there a way to run an application on the ps that detects the card? 

I would contact your distributor and see about returning it if is in warranty

Keith

 

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Participant dlee32
Participant
436 Views
Registered: ‎05-30-2018

Re: ZCU111 fails to boot from SD card?

Hi Keith, thanks for the reply.

Unfortunately I'm not sure how to detect the SD card from the PS side with the FSBL alone. I think one approach would be to somehow load a second stage boot loader such as U-Boot over JTAG. From there, i might be able to run some commands from the U-boot shell (such as "mmc list") to access the SD card or file-system - but I dont know if this is possible over JTAG.

Are there any examples on how to load U-boot over JTAG specifically for the ZCU111? I see examples of other Zynq-7000 boards but not for RFSoC

0 Kudos
Moderator
Moderator
429 Views
Registered: ‎09-12-2007

Re: ZCU111 fails to boot from SD card?

Yes, you can use JTAG (xsct) to boot u-boot, and then use u-boot to boot the kernel over TFTP:

#Disable Security gates to view PMU MB target
targets -set -filter {name =~ "PSU"}
 
#By default, JTAG security gates are enabled
#This disables security gates for DAP, PLTAP and PMU.
mwr 0xffca0038 0x1ff
after 500
 
#Load and run PMU FW
targets -set -filter {name =~ "MicroBlaze PMU"}
dow xpfw.elf
con
after 500
 
#Reset A53, load and run FSBL
targets -set -filter {name =~ "Cortex-A53 #0"}
rst -processor
dow fsbl_a53.elf
con
 
#Give FSBL time to run
after 5000
stop
 
#Other SW...
dow u-boot.elf
dow bl31.elf
con
after 5000
stop

Participant dlee32
Participant
420 Views
Registered: ‎05-30-2018

Re: ZCU111 fails to boot from SD card?

Hi Stephen. I was able to get up to the point of downloading U-boot and that's when it failed. Here's the output

 

xsct% connect
tcfchan#1
xsct% targets
  1  PS TAP
     2  PMU
     3  PL
  4  PSU
     5  RPU (Reset)
        6  Cortex-R5 #0 (RPU Reset)
        7  Cortex-R5 #1 (RPU Reset)
     8  APU
        9  Cortex-A53 #0 (Running)
       10  Cortex-A53 #1 (Power On Reset)
       11  Cortex-A53 #2 (Power On Reset)
       12  Cortex-A53 #3 (Power On Reset)
xsct% targets -set -filter {name =~ "PSU"}
xsct% mwr 0xffca0038 0x1ff
xsct% after 500
xsct% targets -set -filter {name =~ "MicroBlaze PMU"}
xsct% dow pmufw.elf
Downloading Program -- C:/ZCU111_JTAG_Bootup/Uboot/pmufw.elf
        section, .vectors.reset: 0xffdc0000 - 0xffdc0007
        section, .vectors.sw_exception: 0xffdc0008 - 0xffdc000f
        section, .vectors.interrupt: 0xffdc0010 - 0xffdc0017
        section, .vectors.hw_exception: 0xffdc0020 - 0xffdc0027
        section, .text: 0xffdc0050 - 0xffdd01f7
        section, .rodata: 0xffdd01f8 - 0xffdd233f
        section, .data: 0xffdd2340 - 0xffdd63b7
        section, .sdata2: 0xffdd63b8 - 0xffdd63b7
        section, .sdata: 0xffdd63b8 - 0xffdd63b7
        section, .sbss: 0xffdd63b8 - 0xffdd63b7
        section, .bss: 0xffdd63c0 - 0xffdda44b
        section, .srdata: 0xffdda44c - 0xffddad5b
        section, .stack: 0xffddad5c - 0xffddbd5f
        section, .xpbr_serv_ext_tbl: 0xffddf6e0 - 0xffddfadf
100%    0MB   0.2MB/s  00:00
Setting PC to Program Start Address 0xffdcf754
Successfully downloaded C:/ZCU111_JTAG_Bootup/Uboot/pmufw.elf
xsct% Info: MicroBlaze PMU (target 13) Stopped at 0xffdcf5c8 (Stop)
xsct% con
Info: MicroBlaze PMU (target 13) Running (Sleeping. No clock)
xsct% after 500
xsct% targets -set -filter {name =~ "Cortex-A53 #0"}
xsct% rst -processor
Info: Cortex-A53 #0 (target 9) Stopped at 0xfffc0000 (Reset Catch)
xsct% dow zynqmp_fsbl.elf
Downloading Program -- C:/ZCU111_JTAG_Bootup/Uboot/zynqmp_fsbl.elf
        section, .text: 0xfffc0000 - 0xfffd2103
        section, .init: 0xfffd2140 - 0xfffd2173
        section, .fini: 0xfffd2180 - 0xfffd21b3
        section, .note.gnu.build-id: 0xfffd21b4 - 0xfffd21d7
        section, .rodata: 0xfffd2200 - 0xfffd4677
        section, .sys_cfg_data: 0xfffd4680 - 0xfffd4e67
        section, .mmu_tbl0: 0xfffd5000 - 0xfffd500f
        section, .mmu_tbl1: 0xfffd6000 - 0xfffd7fff
        section, .mmu_tbl2: 0xfffd8000 - 0xfffdbfff
        section, .data: 0xfffdc000 - 0xfffdd1af
        section, .sbss: 0xfffdd1b0 - 0xfffdd1bf
        section, .bss: 0xfffdd1c0 - 0xfffdf37f
        section, .heap: 0xfffdf380 - 0xfffdf77f
        section, .stack: 0xfffdf780 - 0xfffe177f
        section, .dup_data: 0xfffe1780 - 0xfffe292f
        section, .handoff_params: 0xfffe9e00 - 0xfffe9e87
        section, .bitstream_buffer: 0xffff0040 - 0xfffffc3f
100%    0MB   0.2MB/s  00:00
Setting PC to Program Start Address 0xfffc0000
Successfully downloaded C:/ZCU111_JTAG_Bootup/Uboot/zynqmp_fsbl.elf
xsct% con
Info: Cortex-A53 #0 (target 9) Running
xsct% after 5000
xsct% stop
Info: Cortex-A53 #0 (target 9) Stopped at 0xfffcf93c (External Debug Request)
xsct% dow u-boot.elf
Downloading Program -- C:/ZCU111_JTAG_Bootup/Uboot/u-boot.elf
        section, .data: 0x08000000 - 0x080bf7a7
aborting, 1 pending requests...
Failed to download C:/ZCU111_JTAG_Bootup/Uboot/u-boot.elf
Memory write error at 0x8000000. MMU fault at VA 0x8000000. Translation fault, second level

 

The files I used were from a working customized Petalinux 2018.3 image I am using for ZCU111 with slight modifications to U-boot (header file). bl13.elf, pmufw.elf, u-boot.elf and zynqmp_fsbl.elf were all generated from Petalinux's build output (images/linux/ folder).

Next I tried binaries produced from a TRD Petalinux project (2018.3 - Non multi-tile sync example) - unfortunately I get the same error of an MMU fault.

Any suggestions?

0 Kudos
Moderator
Moderator
413 Views
Registered: ‎09-12-2007

Re: ZCU111 fails to boot from SD card?

works for me:

jtag_boot.PNG

Can you send your u-boot?

 

 

0 Kudos
Participant dlee32
Participant
409 Views
Registered: ‎05-30-2018

Re: ZCU111 fails to boot from SD card?

I've attached the files I used for the above test.

Can you also send me the files that you used?

 

I think it would be fair to say that if I cannot get your files to work the board should be returned.

0 Kudos
Moderator
Moderator
396 Views
Registered: ‎09-12-2007

Re: ZCU111 fails to boot from SD card?

My files are attached.

0 Kudos
Moderator
Moderator
391 Views
Registered: ‎09-12-2007

Re: ZCU111 fails to boot from SD card?

I am seeing the same issue with your

fileserror.PNG

0 Kudos
Participant dlee32
Participant
368 Views
Registered: ‎05-30-2018

Re: ZCU111 fails to boot from SD card?

The fsbl file was missing but I re-useed the same one from a TRD. I still get the same error with the files you provided.

xsct% source jtag_boot.tcl
Downloading Program -- C:/ZCU111_JTAG_Bootup/FromXilMsg/pmufw.elf
        section, .vectors.reset: 0xffdc0000 - 0xffdc0007
        section, .vectors.sw_exception: 0xffdc0008 - 0xffdc000f
        section, .vectors.interrupt: 0xffdc0010 - 0xffdc0017
        section, .vectors.hw_exception: 0xffdc0020 - 0xffdc0027
        section, .text: 0xffdc0050 - 0xffdd01d7
        section, .rodata: 0xffdd01d8 - 0xffdd231f
        section, .data: 0xffdd2320 - 0xffdd6397
        section, .sdata2: 0xffdd6398 - 0xffdd6397
        section, .sdata: 0xffdd6398 - 0xffdd6397
        section, .sbss: 0xffdd6398 - 0xffdd6397
        section, .bss: 0xffdd63a0 - 0xffdda42b
        section, .srdata: 0xffdda42c - 0xffddad3b
        section, .stack: 0xffddad3c - 0xffddbd3f
        section, .xpbr_serv_ext_tbl: 0xffddf6e0 - 0xffddfadf
100%    0MB   0.2MB/s  00:00
Setting PC to Program Start Address 0xffdcf738
Successfully downloaded C:/ZCU111_JTAG_Bootup/FromXilMsg/pmufw.elf
Info: MicroBlaze PMU (target 3) Running (Sleeping. No clock)
Info: Cortex-A53 #0 (target 10) Stopped at 0xffff0000 (Reset Catch)
Downloading Program -- C:/ZCU111_JTAG_Bootup/FromXilMsg/zynqmp_fsbl.elf
        section, .text: 0xfffc0000 - 0xfffd0e2b
        section, .init: 0xfffd0e40 - 0xfffd0e73
        section, .fini: 0xfffd0e80 - 0xfffd0eb3
        section, .note.gnu.build-id: 0xfffd0eb4 - 0xfffd0ed7
        section, .rodata: 0xfffd0f00 - 0xfffd13b7
        section, .sys_cfg_data: 0xfffd13c0 - 0xfffd1ba7
        section, .mmu_tbl0: 0xfffd2000 - 0xfffd200f
        section, .mmu_tbl1: 0xfffd3000 - 0xfffd4fff
        section, .mmu_tbl2: 0xfffd5000 - 0xfffd8fff
        section, .data: 0xfffd9000 - 0xfffda1af
        section, .sbss: 0xfffda1b0 - 0xfffda1bf
        section, .bss: 0xfffda1c0 - 0xfffdc37f
        section, .heap: 0xfffdc380 - 0xfffdc77f
        section, .stack: 0xfffdc780 - 0xfffde77f
        section, .dup_data: 0xfffde780 - 0xfffdf92f
        section, .handoff_params: 0xfffe9e00 - 0xfffe9e87
        section, .bitstream_buffer: 0xffff0040 - 0xfffffc3f
100%    0MB   0.2MB/s  00:00
Setting PC to Program Start Address 0xfffc0000
Successfully downloaded C:/ZCU111_JTAG_Bootup/FromXilMsg/zynqmp_fsbl.elf
Info: Cortex-A53 #0 (target 10) Running
Info: Cortex-A53 #0 (target 10) Stopped at 0xfffccb50 (External Debug Request)
Downloading Program -- C:/ZCU111_JTAG_Bootup/FromXilMsg/u-boot.elf
        section, .data: 0x08000000 - 0x080bf587
aborting, 1 pending requests...
Failed to download C:/ZCU111_JTAG_Bootup/FromXilMsg/u-boot.elf
Memory write error at 0x8000000. MMU fault at VA 0x8000000. Translation fault, second level

I think I will try to return the board now

0 Kudos
Moderator
Moderator
362 Views
Registered: ‎09-12-2007

Re: ZCU111 fails to boot from SD card?

The issue here isn't a HW issue and is a SW issue prob due to exception levels.

I could see the same issue with your files 

Participant dlee32
Participant
327 Views
Registered: ‎05-30-2018

Re: ZCU111 fails to boot from SD card?

Another thing I tried was using Petalinux ( a different PC running Linux ) to download the kernel image. Same problem - i can get past the PMUFW and FSBL but it fails during the Image part. Here's the log below:

/local/petalinux_projects/ZCU111_2018_3/rfsoc_petalinux_bsp/zcu111_2018_3_MTS# petalinux-boot --jtag --kernel
INFO: Launching XSDB for file download and boot.
INFO: This may take a few minutes, depending on the size of your image.
rlwrap: warning: your $TERM is 'xterm' but rlwrap couldn't find it in the terminfo database. Expect some problems.: Inappropriate ioctl for device
INFO: Downloading ELF file: /local/petalinux_projects/ZCU111_2018_3/rfsoc_petalinux_bsp/zcu111_2018_3_MTS/images/linux/pmufw.elf to the target.
INFO: Downloading ELF file: /local/petalinux_projects/ZCU111_2018_3/rfsoc_petalinux_bsp/zcu111_2018_3_MTS/images/linux/zynqmp_fsbl.elf to the target.
INFO: Loading image: /local/petalinux_projects/ZCU111_2018_3/rfsoc_petalinux_bsp/zcu111_2018_3_MTS/images/linux/Image at 0x00080000
Memory write error at 0x80000. MMU fault at VA 0x80000. Translation fault, second level
    invoked from within
"::tcf::eval -progress {
            apply {{info} {
                switch -- [lindex $info 0] {
                    "info" {
                        puts -nonewline "\r[lindex $info 1]"
                    }
                    "warning" {
                        puts "\n[lindex $info 1]"
                    }
                    "data" {
                        puts -nonewline "\r[lindex $info 1] of [lindex $info 2] complete"
                    }
                    "done" {
                        puts "\n[lindex $info 1]"
                    }
                }
                flush stdout
                ::xsdb::abort_check
            }}} {::tcf::cache_enter tcfchan#0 {tcf_cache_eval {download_cache_client ::tcfclient#0::arg}}}"
    (procedure "::tcf::cache_eval_with_progress" line 2)
    invoked from within
"::tcf::cache_eval_with_progress $params(chan) [list download_cache_client $argvar] {
            apply {{info} {
                switch -- [lindex $info 0] {
                    "info" ..."
    (procedure "dow" line 78)
    invoked from within
"dow -data "/local/petalinux_projects/ZCU111_2018_3/rfsoc_petalinux_bsp/zcu111_2018_3_MTS/images/linux/Image" 0x00080000"
    (file "/tmp/tmp.Ra2L2NODlP" line 23)

INFO: The XSDB log is as follows
attempting to launch hw_server

****** Xilinx hw_server v2018.3
  **** Build date : Nov 15 2018-19:35:59
    ** Copyright 1986-2018 Xilinx, Inc. All Rights Reserved.

INFO: hw_server application started
INFO: Use Ctrl-C to exit hw_server application

INFO: To connect to this hw_server instance use url: TCP:127.0.0.1:3121

Downloading Program -- /local/petalinux_projects/ZCU111_2018_3/rfsoc_petalinux_bsp/zcu111_2018_3_MTS/images/linux/pmufw.elf
        section, .vectors.reset: 0xffdc0000 - 0xffdc0007
        section, .vectors.sw_exception: 0xffdc0008 - 0xffdc000f
        section, .vectors.interrupt: 0xffdc0010 - 0xffdc0017
        section, .vectors.hw_exception: 0xffdc0020 - 0xffdc0027
        section, .text: 0xffdc0050 - 0xffdd0237
        section, .rodata: 0xffdd0238 - 0xffdd237f
        section, .data: 0xffdd2380 - 0xffdd63f7
        section, .sdata2: 0xffdd63f8 - 0xffdd63f7
        section, .sdata: 0xffdd63f8 - 0xffdd63f7
        section, .sbss: 0xffdd63f8 - 0xffdd63f7
        section, .bss: 0xffdd6400 - 0xffdda48b
        section, .srdata: 0xffdda48c - 0xffddad9b
        section, .stack: 0xffddad9c - 0xffddbd9f
        section, .xpbr_serv_ext_tbl: 0xffddf6e0 - 0xffddfadf
100%    0MB   0.2MB/s  00:00
Setting PC to Program Start Address 0xffdcf78c
Successfully downloaded /local/petalinux_projects/ZCU111_2018_3/rfsoc_petalinux_bsp/zcu111_2018_3_MTS/images/linux/pmufw.elf
Downloading Program -- /local/petalinux_projects/ZCU111_2018_3/rfsoc_petalinux_bsp/zcu111_2018_3_MTS/images/linux/zynqmp_fsbl.elf
        section, .text: 0xfffc0000 - 0xfffd0e2b
        section, .init: 0xfffd0e40 - 0xfffd0e73
        section, .fini: 0xfffd0e80 - 0xfffd0eb3
        section, .note.gnu.build-id: 0xfffd0eb4 - 0xfffd0ed7
        section, .rodata: 0xfffd0f00 - 0xfffd13b7
        section, .sys_cfg_data: 0xfffd13c0 - 0xfffd1ba7
        section, .mmu_tbl0: 0xfffd2000 - 0xfffd200f
        section, .mmu_tbl1: 0xfffd3000 - 0xfffd4fff
        section, .mmu_tbl2: 0xfffd5000 - 0xfffd8fff
        section, .data: 0xfffd9000 - 0xfffda1af
        section, .sbss: 0xfffda1b0 - 0xfffda1bf
        section, .bss: 0xfffda1c0 - 0xfffdc37f
        section, .heap: 0xfffdc380 - 0xfffdc77f
        section, .stack: 0xfffdc780 - 0xfffde77f
        section, .dup_data: 0xfffde780 - 0xfffdf92f
        section, .handoff_params: 0xfffe9e00 - 0xfffe9e87
        section, .bitstream_buffer: 0xffff0040 - 0xfffffc3f
100%    0MB   0.1MB/s  00:00
Setting PC to Program Start Address 0xfffc0000
Successfully downloaded /local/petalinux_projects/ZCU111_2018_3/rfsoc_petalinux_bsp/zcu111_2018_3_MTS/images/linux/zynqmp_fsbl.elf
aborting, 1 pending requests...
Failed to download /local/petalinux_projects/ZCU111_2018_3/rfsoc_petalinux_bsp/zcu111_2018_3_MTS/images/linux/Image
0 Kudos