If I attempt to compile the Zynq FSBL, compilation errors similar to the following occur when compiling the Zynq FSBL BSP:
make: *** [ps7_cortexa9_0/lib/libxil.a] Error 2
Or, the following error occurs when compiling the Zynq FSBL itself:
Invoking: ARM gcc compiler
arm-xilinx-eabi-gcc -Wall -O0 -g3 -c -fmessage-length=0 -I../../fsbl_bsp/ps7_cortexa9_0/include -MMD -MP -MF"src/ddr_init.d" -MT"src/ddr_init.d" -o"src/ddr_init.o" "../src/ddr_init.c"
../src/ddr_init.c:62:20: fatal error: xil_io.h: No such file or directory
make: *** [src/ddr_init.o] Error 1
These compilaton errors occur because the Zynq FSBL is not configured properly. Specifically, the Zynq FSBL is configured to use "petalinux" as the OS Platform in the BSP configuration. The Zynq FSBL should be configured with "standalone" as the target OS Platform. The PetaLinux documentation (PetaLinux Board Bringup Guide) will be updated in a future release to make this more clear.
The easiest way to resolve this issue is to remove both the FSBL software project and its associated BSP, being sure to check the box that says "delete project contents on disk" in the Delete Resources window. Then, create a new Zynq FSBL project using "standalone" as the OS Platform.
|Boards & Kits||