cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
270 Views
Registered: ‎07-05-2020

OS hangs after BL31 - Custom Hardware

I have built an image by exporting the hardware description from Vivado then went through the below steps:

petalinux-config --get-hw-description=<Vivado_Export_to_SDK_Directory> #Nothing changed in the configuration
petalinux-build
petalinux-package --prebuilt --fpga <FPGA bitstream> # To test the OS using qemu and it worked
petalinux-package --boot --fsbl <FSBL_ELF> --fpga <BITSTREAM> --u-boot --pmufw <PMUFW_ELF> # To test the OS using JTAG
petalinux-boot --jtag --kernel --fpga -v # To boot from the hardware
INFO: sourcing build tools
INFO: Use bitstream: "/home/user/petalinux/Test/images/linux/system.bit.
INFO: Please use --fpga --bitstream <BITSTREAM> to specify a bitstream if you want to use other bitstream.
XSDB Script:

connect
puts stderr "INFO: Configuring the FPGA..."
puts stderr "INFO: Downloading bitstream: /home/user/petalinux/Test/images/linux/system.bit to the target."
fpga "/home/user/petalinux/Test/images/linux/system.bit"
targets -set -nocase -filter {name =~ "*PSU*"}
mask_write 0xFFCA0038 0x1C0 0x1C0
targets -set -nocase -filter {name =~ "*MicroBlaze PMU*"}

catch {stop}; after 1000
puts stderr "INFO: Downloading ELF file: /home/user/petalinux/Test/images/linux/pmufw.elf to the target."
dow  "/home/user/petalinux/Test/images/linux/pmufw.elf"
after 2000
con
targets -set -nocase -filter {name =~ "*APU*"}
mwr 0xffff0000 0x14000000
mask_write 0xFD1A0104 0x501 0x0
targets -set -nocase -filter {name =~ "*A53*#0"}

source /home/user/petalinux/Test/project-spec/hw-description/psu_init.tcl
puts stderr "INFO: Downloading ELF file: /home/user/petalinux/Test/images/linux/zynqmp_fsbl.elf to the target."
dow  "/home/user/petalinux/Test/images/linux/zynqmp_fsbl.elf"
after 2000
con
after 4000; stop; catch {stop}; psu_ps_pl_isolation_removal; psu_ps_pl_reset_config
targets -set -nocase -filter {name =~ "*A53*#0"}
puts stderr "INFO: Downloading ELF file: /home/user/petalinux/Test/images/linux/u-boot.elf to the target."
dow  "/home/user/petalinux/Test/images/linux/u-boot.elf"
after 2000
targets -set -nocase -filter {name =~ "*A53*#0"}
puts stderr "INFO: Downloading ELF file: /home/user/petalinux/Test/images/linux/bl31.elf to the target."
dow  "/home/user/petalinux/Test/images/linux/bl31.elf"
after 2000
con
exit
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-256color' but rlwrap couldn't find it in the terminfo database. Expect some problems.: Inappropriate ioctl for device
attempting to launch hw_server

****** Xilinx hw_server v2019.2
  **** Build date : Oct 23 2019 at 23:11:29
    ** Copyright 1986-2019 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

INFO: Configuring the FPGA...
INFO: Downloading bitstream: /home/user/petalinux/Test/images/linux/system.bit to the target.

initializing
  0%    0MB   0.0MB/s  ??:?? ETA
  5%    0MB   0.8MB/s  ??:?? ETA
  7%    0MB   0.6MB/s  ??:?? ETA
 10%    0MB   0.5MB/s  ??:?? ETA
 12%    0MB   0.5MB/s  ??:?? ETA
 14%    1MB   0.4MB/s  ??:?? ETA
 17%    1MB   0.4MB/s  00:14 ETA
 19%    1MB   0.4MB/s  00:14 ETA
 21%    1MB   0.4MB/s  00:14 ETA
 24%    1MB   0.4MB/s  00:14 ETA
 26%    2MB   0.4MB/s  00:14 ETA
 29%    2MB   0.4MB/s  00:13 ETA
 31%    2MB   0.4MB/s  00:13 ETA
 34%    2MB   0.4MB/s  00:13 ETA
 36%    2MB   0.4MB/s  00:12 ETA
 39%    2MB   0.4MB/s  00:12 ETA
 41%    3MB   0.4MB/s  00:11 ETA
 44%    3MB   0.4MB/s  00:11 ETA
 46%    3MB   0.4MB/s  00:10 ETA
 49%    3MB   0.4MB/s  00:10 ETA
 51%    3MB   0.4MB/s  00:09 ETA
 54%    4MB   0.4MB/s  00:09 ETA
 56%    4MB   0.4MB/s  00:08 ETA
 59%    4MB   0.4MB/s  00:08 ETA
 61%    4MB   0.4MB/s  00:07 ETA
 64%    4MB   0.4MB/s  00:07 ETA
 67%    4MB   0.4MB/s  00:06 ETA
 69%    5MB   0.4MB/s  00:06 ETA
 71%    5MB   0.4MB/s  00:05 ETA
 74%    5MB   0.4MB/s  00:05 ETA
 76%    5MB   0.4MB/s  00:04 ETA
 78%    5MB   0.4MB/s  00:04 ETA
 81%    6MB   0.4MB/s  00:03 ETA
 83%    6MB   0.4MB/s  00:03 ETA
 85%    6MB   0.4MB/s  00:03 ETA
 88%    6MB   0.4MB/s  00:02 ETA
 90%    6MB   0.4MB/s  00:02 ETA
 92%    6MB   0.4MB/s  00:01 ETA
 94%    7MB   0.4MB/s  00:01 ETA
 97%    7MB   0.4MB/s  00:00 ETA
 99%    7MB   0.4MB/s  00:00 ETA
100%    7MB   0.4MB/s  00:21    
INFO: Downloading ELF file: /home/user/petalinux/Test/images/linux/pmufw.elf to the target.

Downloading Program -- /home/user/petalinux/Test/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 - 0xffdd13b7
	section, .rodata: 0xffdd13b8 - 0xffdd34cf
	section, .data: 0xffdd34d0 - 0xffdd77c7
	section, .sdata2: 0xffdd77c8 - 0xffdd77c7
	section, .sdata: 0xffdd77c8 - 0xffdd77c7
	section, .sbss: 0xffdd77c8 - 0xffdd77c7
	section, .bss: 0xffdd77e0 - 0xffddb80b
	section, .srdata: 0xffddb80c - 0xffddc12f
	section, .stack: 0xffddc130 - 0xffddd12f
	section, .xpbr_serv_ext_tbl: 0xffddf6e0 - 0xffddfadf

  0%    0MB   0.0MB/s  ??:?? ETA
 32%    0MB   0.1MB/s  ??:?? ETA
 65%    0MB   0.1MB/s  ??:?? ETA
100%    0MB   0.1MB/s  00:01    
Setting PC to Program Start Address 0xffdd05cc
Successfully downloaded /home/user/petalinux/Test/images/linux/pmufw.elf
INFO: Downloading ELF file: /home/user/petalinux/Test/images/linux/zynqmp_fsbl.elf to the target.

Downloading Program -- /home/user/petalinux/Test/images/linux/zynqmp_fsbl.elf
	section, .text: 0xfffc0000 - 0xfffce9b7
	section, .init: 0xfffce9c0 - 0xfffce9f3
	section, .fini: 0xfffcea00 - 0xfffcea33
	section, .note.gnu.build-id: 0xfffcea34 - 0xfffcea57
	section, .rodata: 0xfffcea80 - 0xfffcef27
	section, .sys_cfg_data: 0xfffcef40 - 0xfffcf7d7
	section, .mmu_tbl0: 0xfffd0000 - 0xfffd000f
	section, .mmu_tbl1: 0xfffd1000 - 0xfffd2fff
	section, .mmu_tbl2: 0xfffd3000 - 0xfffd6fff
	section, .data: 0xfffd7000 - 0xfffd839f
	section, .sbss: 0xfffd83a0 - 0xfffd83bf
	section, .bss: 0xfffd83c0 - 0xfffda67f
	section, .heap: 0xfffda680 - 0xfffdaa7f
	section, .stack: 0xfffdaa80 - 0xfffdca7f
	section, .dup_data: 0xfffdca80 - 0xfffdde1f
	section, .handoff_params: 0xfffe9e00 - 0xfffe9e87
	section, .bitstream_buffer: 0xffff0040 - 0xfffffc3f

  0%    0MB   0.0MB/s  ??:?? ETA
 16%    0MB   0.0MB/s  ??:?? ETA
 33%    0MB   0.0MB/s  ??:?? ETA
 49%    0MB   0.0MB/s  ??:?? ETA
 66%    0MB   0.0MB/s  ??:?? ETA
 82%    0MB   0.0MB/s  00:00 ETA
 99%    0MB   0.0MB/s  00:00 ETA
100%    0MB   0.0MB/s  00:04    
Setting PC to Program Start Address 0xfffc0000
Successfully downloaded /home/user/petalinux/Test/images/linux/zynqmp_fsbl.elf
INFO: Downloading ELF file: /home/user/petalinux/Test/images/linux/u-boot.elf to the target.

Downloading Program -- /home/user/petalinux/Test/images/linux/u-boot.elf
	section, .data: 0x08000000 - 0x080ada9e

  0%    0MB   0.0MB/s  ??:?? ETA
  2%    0MB   0.0MB/s  ??:?? ETA
  4%    0MB   0.0MB/s  ??:?? ETA
  6%    0MB   0.0MB/s  ??:?? ETA
  9%    0MB   0.0MB/s  ??:?? ETA
 11%    0MB   0.0MB/s  00:23 ETA
 13%    0MB   0.0MB/s  00:22 ETA
 16%    0MB   0.0MB/s  00:22 ETA
 18%    0MB   0.0MB/s  00:21 ETA
 20%    0MB   0.0MB/s  00:20 ETA
 23%    0MB   0.0MB/s  00:20 ETA
 25%    0MB   0.0MB/s  00:19 ETA
 27%    0MB   0.0MB/s  00:19 ETA
 29%    0MB   0.0MB/s  00:18 ETA
 32%    0MB   0.0MB/s  00:17 ETA
 34%    0MB   0.0MB/s  00:17 ETA
 36%    0MB   0.0MB/s  00:16 ETA
 39%    0MB   0.0MB/s  00:15 ETA
 41%    0MB   0.0MB/s  00:15 ETA
 43%    0MB   0.0MB/s  00:14 ETA
 46%    0MB   0.0MB/s  00:14 ETA
 48%    0MB   0.0MB/s  00:13 ETA
 50%    0MB   0.0MB/s  00:12 ETA
 52%    0MB   0.0MB/s  00:12 ETA
 55%    0MB   0.0MB/s  00:11 ETA
 57%    0MB   0.0MB/s  00:11 ETA
 59%    0MB   0.0MB/s  00:10 ETA
 62%    0MB   0.0MB/s  00:09 ETA
 64%    0MB   0.0MB/s  00:09 ETA
 66%    0MB   0.0MB/s  00:08 ETA
 69%    0MB   0.0MB/s  00:08 ETA
 71%    0MB   0.0MB/s  00:07 ETA
 73%    0MB   0.0MB/s  00:06 ETA
 76%    0MB   0.0MB/s  00:06 ETA
 78%    0MB   0.0MB/s  00:05 ETA
 80%    0MB   0.0MB/s  00:05 ETA
 82%    0MB   0.0MB/s  00:04 ETA
 85%    0MB   0.0MB/s  00:03 ETA
 87%    0MB   0.0MB/s  00:03 ETA
 89%    0MB   0.0MB/s  00:02 ETA
 92%    0MB   0.0MB/s  00:02 ETA
 94%    0MB   0.0MB/s  00:01 ETA
 96%    0MB   0.0MB/s  00:00 ETA
 99%    0MB   0.0MB/s  00:00 ETA
100%    0MB   0.0MB/s  00:26    
Setting PC to Program Start Address 0x08000000
Successfully downloaded /home/user/petalinux/Test/images/linux/u-boot.elf
INFO: Downloading ELF file: /home/user/petalinux/Test/images/linux/bl31.elf to the target.

Downloading Program -- /home/user/petalinux/Test/images/linux/bl31.elf
	section, .text: 0xfffea000 - 0xffff1fff
	section, .rodata: 0xffff2000 - 0xffff2fff
	section, .data: 0xffff3000 - 0xffff6777
	section, stacks: 0xffff6780 - 0xffff787f
	section, .bss: 0xffff7880 - 0xffff8613
	section, xlat_table: 0xffff9000 - 0xffffdfff
	section, coherent_ram: 0xffffe000 - 0xffffefff

  0%    0MB   0.0MB/s  ??:?? ETA
 17%    0MB   0.0MB/s  ??:?? ETA
 35%    0MB   0.0MB/s  ??:?? ETA
 53%    0MB   0.0MB/s  ??:?? ETA
 71%    0MB   0.0MB/s  ??:?? ETA
 89%    0MB   0.0MB/s  ??:?? ETA
100%    0MB   0.0MB/s  00:03    
Setting PC to Program Start Address 0xfffea000
Successfully downloaded /home/user/petalinux/Test/images/linux/bl31.elf

Below is the board terminal:

Board TerminalBoard Terminal

 

 

 

 

 

Could someone please support me on why the OS is not booting? If more information is required for debugging, please guide me.

0 Kudos
Reply
2 Replies
Highlighted
Xilinx Employee
Xilinx Employee
262 Views
Registered: ‎09-17-2019

Hi @MBaik,

Is it possible for you to migrate this design on our evaluation board?

Thanks & Regards,
Shubhangi

Highlighted
Visitor
Visitor
179 Views
Registered: ‎07-05-2020

Hi @smahalle,

We have validated the process of building an OS on ZCU102 and it booted successfully. But, we have a custom hardware. Therefore, different hardware design in Vivado.

Is there something to debug?  as far as we know the OS should boot after downloading the bl31.elf

Best regards,

Murad

0 Kudos
Reply