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!

AR# 55517

PetaLinux 2012.12 - Compilation errors occur when compiling Zynq FSBL in PetaLinux Tools Flow


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
compilation terminated.
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.

AR# 55517
Date Created 04/11/2013
Last Updated 01/30/2014
Status Active
Type General Article
  • SoC
  • XA Zynq-7000
  • Zynq-7000
  • PetaLinux
  • PetaLinux - 2012.12
  • PetaLinux - 2012.09
Boards & Kits
  • Zynq-7000 All Programmable SoC Boards and Kits
  • Zynq-7000 All Programmable SoC Video and Imaging Kit
  • Zynq-7000 All Programmable SoC ZC702 Evaluation Kit
  • Zynq-7000 All Programmable SoC ZC706 Evaluation Kit