cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
john_black_xil
Visitor
Visitor
179 Views
Registered: ‎07-01-2021

Vitis 2021.1 problem in build fsbl for zynqmp

Hello.

I want to build FSBL in Vitis 2021.1. I've generated a *.xsa file in Vivado and import it to Vitis. Like last versions, I make a project and build, however, I face errors:

make all
'Building file: ../src/psu_init.c'
'Invoking: ARM v8 gcc compiler'
aarch64-none-elf-gcc -DARMA53_64 -Wall -O0 -g3 -c -fmessage-length=0 -MT"src/psu_init.o" -Os -flto -ffat-lto-objects -ID:/projects/yasin/vitiz_21_1/top/export/top/sw/top/standalone_psu_cortexa53_0/bspinclude/include -MMD -MP -MF"src/psu_init.d" -MT"src/psu_init.o" -o "src/psu_init.o" "../src/psu_init.c"
../src/psu_init.c:15:10: fatal error: xil_io.h: No such file or directory
15 | #include <xil_io.h>
| ^~~~~~~~~~
compilation terminated.
make: *** [src/subdir.mk:99: src/psu_init.o] Error 1

What makes me surprised is that compiling *.xsa files is not without error. I printed here just the error parts:

...

"Running Make libs in psu_cortexa53_0/libsrc/hsp_ctrl_t1_v1_0/src"

make -C psu_cortexa53_0/libsrc/hsp_ctrl_t1_v1_0/src -s libs "SHELL=CMD" "COMPILER=aarch64-none-elf-gcc" "ASSEMBLER=aarch64-non
e-elf-as" "ARCHIVER=aarch64-none-elf-ar" "COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-g -Wall -Wextra -fno-tree-loop-distri
bute-patterns -Os -flto -ffat-lto-objects"

"Compiling hsp_ctrl_t1..."

aarch64-xilinx-elf-gcc.exe: error: *.c: Invalid argument
aarch64-xilinx-elf-gcc.exe: fatal error: no input files
compilation terminated.
make[2]: *** [Makefile:18: libs] Error 1
make[1]: *** [Makefile:46: psu_cortexa53_0/libsrc/hsp_ctrl_t1_v1_0/src/make.libs] Error 2
make: *** [Makefile:18: all] Error 2
make: Leaving directory 'D:/projects/yasin/vitiz_21_1/top/zynqmp_fsbl/zynqmp_fsbl_bsp'

make -C zynqmp_fsbl_bsp

make[1]: Entering directory 'D:/projects/yasin/vitiz_21_1/top/zynqmp_fsbl/zynqmp_fsbl_bsp'

make --no-print-directory seq_libs

"Running Make include in psu_cortexa53_0/libsrc/axidma_v9_13/src"

...

"Running Make libs in psu_cortexa53_0/libsrc/hsp_ctrl_t1_v1_0/src"

make -C psu_cortexa53_0/libsrc/hsp_ctrl_t1_v1_0/src -s libs "SHELL=CMD" "COMPILER=aarch64-none-elf-gcc" "ASSEMBLER=aarch64-non
e-elf-as" "ARCHIVER=aarch64-none-elf-ar" "COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-g -Wall -Wextra -fno-tree-loop-distri
bute-patterns -Os -flto -ffat-lto-objects"

"Compiling hsp_ctrl_t1..."

aarch64-xilinx-elf-gcc.exe: error: *.c: Invalid argument
aarch64-xilinx-elf-gcc.exe: fatal error: no input files
compilation terminated.
make[3]: *** [Makefile:18: libs] Error 1
make[2]: *** [Makefile:46: psu_cortexa53_0/libsrc/hsp_ctrl_t1_v1_0/src/make.libs] Error 2
make[1]: *** [Makefile:18: all] Error 2
make[1]: Leaving directory 'D:/projects/yasin/vitiz_21_1/top/zynqmp_fsbl/zynqmp_fsbl_bsp'

make: *** [Makefile:30: zynqmp_fsbl_bsp/psu_cortexa53_0/lib/libxil.a] Error 2
Building the zynqmp_pmufw application.
make: Entering directory 'D:/projects/yasin/vitiz_21_1/top/zynqmp_pmufw/zynqmp_pmufw_bsp'

make --no-print-directory seq_libs

"Running Make include in psu_pmu_0/libsrc/axidma_v9_13/src"

...

"Running Make libs in psu_pmu_0/libsrc/hsp_ctrl_t1_v1_0/src"

make -C psu_pmu_0/libsrc/hsp_ctrl_t1_v1_0/src -s libs "SHELL=CMD" "COMPILER=mb-gcc" "ASSEMBLER=mb-as" "ARCHIVER=mb-ar" "COMPIL
ER_FLAGS= -O2 -c -mcpu=v9.2 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-g -ff
unction-sections -fdata-sections -Wall -Wextra -fno-tree-loop-distribute-patterns -Os -flto -ffat-lto-objects"

"Compiling hsp_ctrl_t1..."

microblaze-xilinx-elf-gcc.exe: error: *.c: Invalid argument
make[2]: *** [Makefile:18: libs] Error 1
make[1]: *** [Makefile:46: psu_pmu_0/libsrc/hsp_ctrl_t1_v1_0/src/make.libs] Error 2
make: *** [Makefile:18: all] Error 2
make: Leaving directory 'D:/projects/yasin/vitiz_21_1/top/zynqmp_pmufw/zynqmp_pmufw_bsp'

make -C zynqmp_pmufw_bsp

make[1]: Entering directory 'D:/projects/yasin/vitiz_21_1/top/zynqmp_pmufw/zynqmp_pmufw_bsp'

make --no-print-directory seq_libs

"Running Make include in psu_pmu_0/libsrc/axidma_v9_13/src"

...

"Running Make libs in psu_pmu_0/libsrc/hsp_ctrl_t1_v1_0/src"

make -C psu_pmu_0/libsrc/hsp_ctrl_t1_v1_0/src -s libs "SHELL=CMD" "COMPILER=mb-gcc" "ASSEMBLER=mb-as" "ARCHIVER=mb-ar" "COMPIL
ER_FLAGS= -O2 -c -mcpu=v9.2 -mlittle-endian -mxl-barrel-shift -mxl-pattern-compare -mxl-soft-mul" "EXTRA_COMPILER_FLAGS=-g -ff
unction-sections -fdata-sections -Wall -Wextra -fno-tree-loop-distribute-patterns -Os -flto -ffat-lto-objects"

"Compiling hsp_ctrl_t1..."

microblaze-xilinx-elf-gcc.exe: error: *.c: Invalid argument
make[3]: *** [Makefile:18: libs] Error 1
make[2]: *** [Makefile:46: psu_pmu_0/libsrc/hsp_ctrl_t1_v1_0/src/make.libs] Error 2
make[1]: *** [Makefile:18: all] Error 2
make[1]: Leaving directory 'D:/projects/yasin/vitiz_21_1/top/zynqmp_pmufw/zynqmp_pmufw_bsp'

make: *** [Makefile:30: zynqmp_pmufw_bsp/psu_pmu_0/lib/libxil.a] Error 2
Building the BSP Library for domain - standalone_psu_cortexa53_0 on processor psu_cortexa53_0
make --no-print-directory seq_libs

"Running Make include in psu_cortexa53_0/libsrc/axidma_v9_13/src"

...

"Running Make libs in psu_cortexa53_0/libsrc/hsp_ctrl_t1_v1_0/src"

make -C psu_cortexa53_0/libsrc/hsp_ctrl_t1_v1_0/src -s libs "SHELL=CMD" "COMPILER=aarch64-none-elf-gcc" "ASSEMBLER=aarch64-non
e-elf-as" "ARCHIVER=aarch64-none-elf-ar" "COMPILER_FLAGS= -O2 -c" "EXTRA_COMPILER_FLAGS=-g -Wall -Wextra -fno-tree-loop-distri
bute-patterns -Os -flto -ffat-lto-objects"

"Compiling hsp_ctrl_t1..."

aarch64-xilinx-elf-gcc.exe: error: *.c: Invalid argument
aarch64-xilinx-elf-gcc.exe: fatal error: no input files
compilation terminated.
make[2]: *** [Makefile:18: libs] Error 1
make[1]: *** [Makefile:46: psu_cortexa53_0/libsrc/hsp_ctrl_t1_v1_0/src/make.libs] Error 2
make: *** [Makefile:18: all] Error 2
Failed to build the bsp sources for domain - standalone_psu_cortexa53_0
Failed to generate the platform.
Reason: Failed to build the zynqmp_fsbl application.
invoked from within
"::tcf::eval -progress {apply {{msg} {puts $msg}}} {tcf_send_command tcfchan#0 xsdb eval s es {{platform active top; platform generate }}}"
(procedure "::tcf::send_command" line 4)
invoked from within
"tcf send_command $::xsdb::curchan xsdb eval s es [list "platform active $PLATFORM_NAME; platform generate $target"]"
invoked from within
"if { $iswindows == 1 } {

set XSDB_PORT [lindex $argv 0]
set PLATFORM_NAME [lindex $argv 1]
set arglen [llength $argv]
set lastind..."
(file "C:/Xilinx/Vitis/2021.1\scripts\vitis\util\buildplatform.tcl" line 11)

I did not change source code files. Does anybody know anything relevant to this issue?

Thanks a lot.

0 Kudos
3 Replies
pvempati
Xilinx Employee
Xilinx Employee
157 Views
Registered: ‎01-03-2017

Hi @john_black_xil ,

I guess you are using windows10 OS right?

Can you share the XSA ?

0 Kudos
john_black_xil
Visitor
Visitor
112 Views
Registered: ‎07-01-2021

hello! thanks for the reply.

Yes, that's correct! 

The file is here:

https://www.dropbox.com/s/wtewk9mv1u7xua2/top.xsa?dl=0

thanks!

0 Kudos
pvempati
Xilinx Employee
Xilinx Employee
73 Views
Registered: ‎01-03-2017

Hi @john_black_xil ,

I am able to reproduce this issue, this is due to one driver IP is not compiling. 

I will check and provide if there is any workaround for this.